diff --git a/cmd/scw/testdata/test-all-usage-vpc-route-list-usage.golden b/cmd/scw/testdata/test-all-usage-vpc-route-list-usage.golden index ab1224caf7..8647fc99e6 100644 --- a/cmd/scw/testdata/test-all-usage-vpc-route-list-usage.golden +++ b/cmd/scw/testdata/test-all-usage-vpc-route-list-usage.golden @@ -10,7 +10,7 @@ ARGS: [vpc-id] VPC to filter for. Only routes within this VPC will be returned [nexthop-resource-id] Next hop resource ID to filter for. Only routes with a matching next hop resource ID will be returned [nexthop-private-network-id] Next hop private network ID to filter for. Only routes with a matching next hop private network ID will be returned - [nexthop-resource-type] Next hop resource type to filter for. Only Routes with a matching next hop resource type will be returned (unknown_type | vpc_gateway_network | instance_private_nic | baremetal_private_nic | apple_silicon_private_nic) + [nexthop-resource-type] Next hop resource type to filter for. Only Routes with a matching next hop resource type will be returned (unknown_type | vpc_gateway_network | instance_private_nic | baremetal_private_nic | apple_silicon_private_nic | vpn_gateway) [nexthop-vpc-connector-id] Next hop VPC connector ID to filter for. Only routes with a matching next hop VPC connector ID will be returned [contains] Only routes whose destination is contained in this subnet will be returned [tags.{index}] Tags to filter for, only routes with one or more matching tags will be returned diff --git a/docs/commands/vpc.md b/docs/commands/vpc.md index 674656ee00..8e295b1573 100644 --- a/docs/commands/vpc.md +++ b/docs/commands/vpc.md @@ -281,7 +281,7 @@ scw vpc route list [arg=value ...] | vpc-id | | VPC to filter for. Only routes within this VPC will be returned | | nexthop-resource-id | | Next hop resource ID to filter for. Only routes with a matching next hop resource ID will be returned | | nexthop-private-network-id | | Next hop private network ID to filter for. Only routes with a matching next hop private network ID will be returned | -| nexthop-resource-type | One of: `unknown_type`, `vpc_gateway_network`, `instance_private_nic`, `baremetal_private_nic`, `apple_silicon_private_nic` | Next hop resource type to filter for. Only Routes with a matching next hop resource type will be returned | +| nexthop-resource-type | One of: `unknown_type`, `vpc_gateway_network`, `instance_private_nic`, `baremetal_private_nic`, `apple_silicon_private_nic`, `vpn_gateway` | Next hop resource type to filter for. Only Routes with a matching next hop resource type will be returned | | nexthop-vpc-connector-id | | Next hop VPC connector ID to filter for. Only routes with a matching next hop VPC connector ID will be returned | | contains | | Only routes whose destination is contained in this subnet will be returned | | tags.{index} | | Tags to filter for, only routes with one or more matching tags will be returned | diff --git a/internal/namespaces/vpc/v2/vpc_cli.go b/internal/namespaces/vpc/v2/vpc_cli.go index f162795078..e1582140b7 100644 --- a/internal/namespaces/vpc/v2/vpc_cli.go +++ b/internal/namespaces/vpc/v2/vpc_cli.go @@ -1174,6 +1174,7 @@ func vpcRouteList() *core.Command { "instance_private_nic", "baremetal_private_nic", "apple_silicon_private_nic", + "vpn_gateway", }, }, {