Skip to content

Commit 4753d1e

Browse files
scaleway-botyfodil
andauthored
feat(vpc): add vpn_gateway nexthop_resource_type (#5381)
Co-authored-by: Yacine Fodil <105779815+yfodil@users.noreply.github.com>
1 parent 9114446 commit 4753d1e

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

cmd/scw/testdata/test-all-usage-vpc-route-list-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ARGS:
1010
[vpc-id] VPC to filter for. Only routes within this VPC will be returned
1111
[nexthop-resource-id] Next hop resource ID to filter for. Only routes with a matching next hop resource ID will be returned
1212
[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
13-
[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)
13+
[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)
1414
[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
1515
[contains] Only routes whose destination is contained in this subnet will be returned
1616
[tags.{index}] Tags to filter for, only routes with one or more matching tags will be returned

docs/commands/vpc.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ scw vpc route list [arg=value ...]
281281
| vpc-id | | VPC to filter for. Only routes within this VPC will be returned |
282282
| nexthop-resource-id | | Next hop resource ID to filter for. Only routes with a matching next hop resource ID will be returned |
283283
| 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 |
284-
| 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 |
284+
| 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 |
285285
| 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 |
286286
| contains | | Only routes whose destination is contained in this subnet will be returned |
287287
| tags.{index} | | Tags to filter for, only routes with one or more matching tags will be returned |

internal/namespaces/vpc/v2/vpc_cli.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1174,6 +1174,7 @@ func vpcRouteList() *core.Command {
11741174
"instance_private_nic",
11751175
"baremetal_private_nic",
11761176
"apple_silicon_private_nic",
1177+
"vpn_gateway",
11771178
},
11781179
},
11791180
{

0 commit comments

Comments
 (0)