diff --git a/cmd/scw/testdata/test-all-usage-vpc-vpc-create-usage.golden b/cmd/scw/testdata/test-all-usage-vpc-vpc-create-usage.golden index dfe32a5a86..8307bcb557 100644 --- a/cmd/scw/testdata/test-all-usage-vpc-vpc-create-usage.golden +++ b/cmd/scw/testdata/test-all-usage-vpc-vpc-create-usage.golden @@ -6,11 +6,12 @@ USAGE: scw vpc vpc create [arg=value ...] ARGS: - name= Name for the VPC - [project-id] Project ID to use. If none is passed the default project ID will be used - [tags.{index}] Tags for the VPC - [enable-routing] Enable routing between Private Networks in the VPC - [region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | it-mil | nl-ams | pl-waw) + name= Name for the VPC + [project-id] Project ID to use. If none is passed the default project ID will be used + [tags.{index}] Tags for the VPC + [enable-routing] Enable routing between Private Networks in the VPC + [enable-transitivity] Enable packets from peered VPCs to transit through this VPC + [region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | it-mil | nl-ams | pl-waw) FLAGS: -h, --help help for create diff --git a/docs/commands/vpc.md b/docs/commands/vpc.md index bd9bce6d62..a53708afcb 100644 --- a/docs/commands/vpc.md +++ b/docs/commands/vpc.md @@ -429,6 +429,7 @@ scw vpc vpc create [arg=value ...] | project-id | | Project ID to use. If none is passed the default project ID will be used | | tags.{index} | | Tags for the VPC | | enable-routing | | Enable routing between Private Networks in the VPC | +| enable-transitivity | | Enable packets from peered VPCs to transit through this VPC | | region | Default: `fr-par`
One of: `fr-par`, `it-mil`, `nl-ams`, `pl-waw` | Region to target. If none is passed will use default region from the config | diff --git a/go.mod b/go.mod index 272f0802e1..c8c10ae943 100644 --- a/go.mod +++ b/go.mod @@ -27,7 +27,7 @@ require ( github.com/moby/moby/client v0.4.1 github.com/modelcontextprotocol/go-sdk v1.6.1 github.com/opencontainers/go-digest v1.0.0 - github.com/scaleway/scaleway-sdk-go v1.0.0-beta.36.0.20260615185023-d9b5685d2dfe + github.com/scaleway/scaleway-sdk-go v1.0.0-beta.36.0.20260617090821-fa699c591cad github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966 github.com/spf13/cobra v1.10.2 github.com/spf13/pflag v1.0.10 diff --git a/go.sum b/go.sum index bff45241f5..b652fa51b9 100644 --- a/go.sum +++ b/go.sum @@ -478,8 +478,8 @@ github.com/rogpeppe/go-internal v1.14.1/go.mod h1:MaRKkUm5W0goXpeCfT7UZI6fk/L7L7 github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 h1:OkMGxebDjyw0ULyrTYWeN0UNCCkmCWfjPnIA2W6oviI= github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06/go.mod h1:+ePHsJ1keEjQtpvf9HHw0f4ZeJ0TLRsxhunSI2hYJSs= -github.com/scaleway/scaleway-sdk-go v1.0.0-beta.36.0.20260615185023-d9b5685d2dfe h1:Q3SFnChAE4eKn633Amx9QwXYnqNjfI/HBJBQG+xHWZY= -github.com/scaleway/scaleway-sdk-go v1.0.0-beta.36.0.20260615185023-d9b5685d2dfe/go.mod h1:Q02gKOXqKfaCTpImuDgOLzlGin79ZoxxKKEhXHKSrPw= +github.com/scaleway/scaleway-sdk-go v1.0.0-beta.36.0.20260617090821-fa699c591cad h1:0DtI9Bvsxac7CfLUiMbk4RvK3526cmcf+k4jxgeCcHg= +github.com/scaleway/scaleway-sdk-go v1.0.0-beta.36.0.20260617090821-fa699c591cad/go.mod h1:Q02gKOXqKfaCTpImuDgOLzlGin79ZoxxKKEhXHKSrPw= github.com/sclevine/spec v1.4.0 h1:z/Q9idDcay5m5irkZ28M7PtQM4aOISzOpj4bUPkDee8= github.com/sclevine/spec v1.4.0/go.mod h1:LvpgJaFyvQzRvc1kaDs0bulYwzC70PbiYjC4QnFHkOM= github.com/secure-systems-lab/go-securesystemslib v0.10.0 h1:l+H5ErcW0PAehBNrBxoGv1jjNpGYdZ9RcheFkB2WI14= diff --git a/internal/namespaces/vpc/v2/vpc_cli.go b/internal/namespaces/vpc/v2/vpc_cli.go index 2dd55a5390..0b5431f1ad 100644 --- a/internal/namespaces/vpc/v2/vpc_cli.go +++ b/internal/namespaces/vpc/v2/vpc_cli.go @@ -236,6 +236,13 @@ func vpcVpcCreate() *core.Command { Deprecated: false, Positional: false, }, + { + Name: "enable-transitivity", + Short: `Enable packets from peered VPCs to transit through this VPC`, + Required: false, + Deprecated: false, + Positional: false, + }, core.RegionArgSpec( scw.RegionFrPar, scw.RegionItMil,