vinfra service compute network list

List compute networks:

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

Example:

# vinfra service compute network list -c id -c name -c cidr -c allocation_pools
+----------------+---------------+----------------+-----------------------------+
| id             | name          | cidr           | allocation_pools            |
+----------------+---------------+----------------+-----------------------------+
| 22674f9d-<...> | mypubnet      | 10.136.16.0/22 | 10.136.18.141-10.136.18.148 |
| 8f0dc747-<...> | mypubnet_vlan | 10.136.16.0/22 | 10.136.18.131-10.136.18.138 |
| a0019b43-<...> | myprivnet     |                |                             |
+----------------+---------------+----------------+-----------------------------+

This command lists networks used in the compute cluster.