vinfra service compute router list

List virtual routers:

usage: vinfra service compute router list [--long] [--limit <num>]
                                          [--marker <router>]
                                          [--name <name>]
                                          [--id <id>] [--project <project>]
--long
Enable access and listing of all fields of objects.
--limit <num>
The maximum number of routers to list. To list all routers, set the option to -1.
--marker <router>
List routers after the marker.
--name <name>
List routers with the specified name or use a filter. Supported filter operator: contains. The filter format is <operator>:<value1>[,<value2>,…].
--id <id>
Show a router with the specified ID or list routers using a filter. Supported filter operator: in. The filter format is <operator>:<value1>[,<value2>,…].
--project <project>
List routers that belong to the specified project ID. Can only be performed by system administrators.

Example:

# vinfra service compute router list -c id -c external_gateway_info -c name 
-c status +---------------------+---------------------------------+----------+--------+ | id | external_gateway_info | name | status | +---------------------+---------------------------------+----------+--------+ | b9d8b000-5d06-<...> | enable_snat: true | myrouter | ACTIVE | | | ip_addresses: | | | | | - 10.94.129.76 | | | | | network_id: 720e45bc-4225-<...> | | | +---------------------+---------------------------------+----------+--------+

This command lists virtual routers used in the compute cluster.