diff --git a/cmd/scw/testdata/test-all-usage-vpc-private-network-create-usage.golden b/cmd/scw/testdata/test-all-usage-vpc-private-network-create-usage.golden index 5771e6513e..194ee9db6d 100644 --- a/cmd/scw/testdata/test-all-usage-vpc-private-network-create-usage.golden +++ b/cmd/scw/testdata/test-all-usage-vpc-private-network-create-usage.golden @@ -6,12 +6,13 @@ USAGE: scw vpc private-network create [arg=value ...] ARGS: - name= Name for the Private Network - [project-id] Project ID to use. If none is passed the default project ID will be used - [tags.{index}] Tags for the Private Network - [subnets.{index}] Private Network subnets CIDR - [vpc-id] VPC in which to create the Private Network - [region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw) + name= Name for the Private Network + [project-id] Project ID to use. If none is passed the default project ID will be used + [tags.{index}] Tags for the Private Network + [subnets.{index}] Private Network subnets CIDR + [vpc-id] VPC in which to create the Private Network + [default-route-propagation-enabled] Defines whether default v4 and v6 routes are propagated for this Private Network + [region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw) FLAGS: -h, --help help for create diff --git a/cmd/scw/testdata/test-all-usage-vpc-private-network-update-usage.golden b/cmd/scw/testdata/test-all-usage-vpc-private-network-update-usage.golden index 30ae65a454..e7fda378e4 100644 --- a/cmd/scw/testdata/test-all-usage-vpc-private-network-update-usage.golden +++ b/cmd/scw/testdata/test-all-usage-vpc-private-network-update-usage.golden @@ -6,10 +6,11 @@ USAGE: scw vpc private-network update [arg=value ...] ARGS: - private-network-id Private Network ID - [name] Name for the Private Network - [tags.{index}] Tags for the Private Network - [region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw) + private-network-id Private Network ID + [name] Name for the Private Network + [tags.{index}] Tags for the Private Network + [default-route-propagation-enabled] Defines whether default v4 and v6 routes are propagated for this Private Network + [region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw) FLAGS: -h, --help help for update diff --git a/docs/commands/vpc.md b/docs/commands/vpc.md index ac08dea044..e8da773ab7 100644 --- a/docs/commands/vpc.md +++ b/docs/commands/vpc.md @@ -57,6 +57,7 @@ scw vpc private-network create [arg=value ...] | tags.{index} | | Tags for the Private Network | | subnets.{index} | | Private Network subnets CIDR | | vpc-id | | VPC in which to create the Private Network | +| default-route-propagation-enabled | | Defines whether default v4 and v6 routes are propagated for this Private Network | | region | Default: `fr-par`
One of: `fr-par`, `nl-ams`, `pl-waw` | Region to target. If none is passed will use default region from the config | @@ -166,6 +167,7 @@ scw vpc private-network update [arg=value ...] | private-network-id | Required | Private Network ID | | name | | Name for the Private Network | | tags.{index} | | Tags for the Private Network | +| default-route-propagation-enabled | | Defines whether default v4 and v6 routes are propagated for this Private Network | | region | Default: `fr-par`
One of: `fr-par`, `nl-ams`, `pl-waw` | Region to target. If none is passed will use default region from the config | diff --git a/internal/namespaces/vpc/v2/vpc_cli.go b/internal/namespaces/vpc/v2/vpc_cli.go index ee9babfbcd..17a9c25806 100644 --- a/internal/namespaces/vpc/v2/vpc_cli.go +++ b/internal/namespaces/vpc/v2/vpc_cli.go @@ -509,6 +509,13 @@ func vpcPrivateNetworkCreate() *core.Command { Deprecated: false, Positional: false, }, + { + Name: "default-route-propagation-enabled", + Short: `Defines whether default v4 and v6 routes are propagated for this Private Network`, + Required: false, + Deprecated: false, + Positional: false, + }, core.RegionArgSpec( scw.RegionFrPar, scw.RegionNlAms, @@ -591,6 +598,13 @@ func vpcPrivateNetworkUpdate() *core.Command { Deprecated: false, Positional: false, }, + { + Name: "default-route-propagation-enabled", + Short: `Defines whether default v4 and v6 routes are propagated for this Private Network`, + Required: false, + Deprecated: false, + Positional: false, + }, core.RegionArgSpec( scw.RegionFrPar, scw.RegionNlAms,