-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(vpc): add support for routes list (#3758)
Co-authored-by: Rémy Léone <[email protected]>
- Loading branch information
1 parent
3165ce8
commit 35cc96d
Showing
5 changed files
with
178 additions
and
0 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
cmd/scw/testdata/test-all-usage-vpc-routes-list-usage.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲 | ||
🟥🟥🟥 STDERR️️ 🟥🟥🟥️ | ||
Return routes with associated next hop data. | ||
|
||
USAGE: | ||
scw vpc routes list [arg=value ...] | ||
|
||
ARGS: | ||
[order-by] Sort order of the returned routes (created_at_asc | created_at_desc | destination_asc | destination_desc | prefix_len_asc | prefix_len_desc) | ||
[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) | ||
[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 | ||
[is-ipv6] Only routes with an IPv6 destination will be returned | ||
[region=fr-par] Region to target. If none is passed will use default region from the config (all) | ||
|
||
FLAGS: | ||
-h, --help help for list | ||
|
||
GLOBAL FLAGS: | ||
-c, --config string The path to the config file | ||
-D, --debug Enable debug mode | ||
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human") | ||
-p, --profile string The config profile to use |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲 | ||
🟥🟥🟥 STDERR️️ 🟥🟥🟥️ | ||
Routes management command. | ||
|
||
USAGE: | ||
scw vpc routes <command> | ||
|
||
AVAILABLE COMMANDS: | ||
list Return routes with associated next hop data | ||
|
||
FLAGS: | ||
-h, --help help for routes | ||
|
||
GLOBAL FLAGS: | ||
-c, --config string The path to the config file | ||
-D, --debug Enable debug mode | ||
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human") | ||
-p, --profile string The config profile to use | ||
|
||
Use "scw vpc routes [command] --help" for more information about a command. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters