Skip to content

Commit f5814a4

Browse files
feat(vpc): add support for default-route-propagation-enabled (scaleway#4720)
Co-authored-by: Rémy Léone <[email protected]>
1 parent f604dfa commit f5814a4

File tree

4 files changed

+28
-10
lines changed

4 files changed

+28
-10
lines changed

cmd/scw/testdata/test-all-usage-vpc-private-network-create-usage.golden

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@ USAGE:
66
scw vpc private-network create [arg=value ...]
77

88
ARGS:
9-
name=<generated> Name for the Private Network
10-
[project-id] Project ID to use. If none is passed the default project ID will be used
11-
[tags.{index}] Tags for the Private Network
12-
[subnets.{index}] Private Network subnets CIDR
13-
[vpc-id] VPC in which to create the Private Network
14-
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
9+
name=<generated> Name for the Private Network
10+
[project-id] Project ID to use. If none is passed the default project ID will be used
11+
[tags.{index}] Tags for the Private Network
12+
[subnets.{index}] Private Network subnets CIDR
13+
[vpc-id] VPC in which to create the Private Network
14+
[default-route-propagation-enabled] Defines whether default v4 and v6 routes are propagated for this Private Network
15+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
1516

1617
FLAGS:
1718
-h, --help help for create

cmd/scw/testdata/test-all-usage-vpc-private-network-update-usage.golden

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@ USAGE:
66
scw vpc private-network update <private-network-id ...> [arg=value ...]
77

88
ARGS:
9-
private-network-id Private Network ID
10-
[name] Name for the Private Network
11-
[tags.{index}] Tags for the Private Network
12-
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
9+
private-network-id Private Network ID
10+
[name] Name for the Private Network
11+
[tags.{index}] Tags for the Private Network
12+
[default-route-propagation-enabled] Defines whether default v4 and v6 routes are propagated for this Private Network
13+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
1314

1415
FLAGS:
1516
-h, --help help for update

docs/commands/vpc.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ scw vpc private-network create [arg=value ...]
5757
| tags.{index} | | Tags for the Private Network |
5858
| subnets.{index} | | Private Network subnets CIDR |
5959
| vpc-id | | VPC in which to create the Private Network |
60+
| default-route-propagation-enabled | | Defines whether default v4 and v6 routes are propagated for this Private Network |
6061
| region | Default: `fr-par`<br />One of: `fr-par`, `nl-ams`, `pl-waw` | Region to target. If none is passed will use default region from the config |
6162

6263

@@ -166,6 +167,7 @@ scw vpc private-network update <private-network-id ...> [arg=value ...]
166167
| private-network-id | Required | Private Network ID |
167168
| name | | Name for the Private Network |
168169
| tags.{index} | | Tags for the Private Network |
170+
| default-route-propagation-enabled | | Defines whether default v4 and v6 routes are propagated for this Private Network |
169171
| region | Default: `fr-par`<br />One of: `fr-par`, `nl-ams`, `pl-waw` | Region to target. If none is passed will use default region from the config |
170172

171173

internal/namespaces/vpc/v2/vpc_cli.go

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -509,6 +509,13 @@ func vpcPrivateNetworkCreate() *core.Command {
509509
Deprecated: false,
510510
Positional: false,
511511
},
512+
{
513+
Name: "default-route-propagation-enabled",
514+
Short: `Defines whether default v4 and v6 routes are propagated for this Private Network`,
515+
Required: false,
516+
Deprecated: false,
517+
Positional: false,
518+
},
512519
core.RegionArgSpec(
513520
scw.RegionFrPar,
514521
scw.RegionNlAms,
@@ -591,6 +598,13 @@ func vpcPrivateNetworkUpdate() *core.Command {
591598
Deprecated: false,
592599
Positional: false,
593600
},
601+
{
602+
Name: "default-route-propagation-enabled",
603+
Short: `Defines whether default v4 and v6 routes are propagated for this Private Network`,
604+
Required: false,
605+
Deprecated: false,
606+
Positional: false,
607+
},
594608
core.RegionArgSpec(
595609
scw.RegionFrPar,
596610
scw.RegionNlAms,

0 commit comments

Comments
 (0)