Chuyển tới nội dung chính
openstack subnet list

List subnets

Options​

OptionDescription
--longList additional fields in output
--ip-version <ip-version>List only subnets of given IP version in output. Allowed values for IP version are 4 and 6.
--dhcpList subnets which have DHCP enabled
--no-dhcpList subnets which have DHCP disabled
--service-type <service-type>List only subnets of a given service type in output, for example, network:floatingip_agent_gateway. Must be a valid device owner value for a network port (repeat option to list multiple service types).
--project <project>List only subnets which belong to a given project in output (name or ID)
--project-domain <project-domain>Domain the project belongs to (name or ID). This can be used in case collisions between project names exist.
--network <network>List only subnets which belong to a given network in output (name or ID)
--gateway <gateway>List only subnets of given gateway IP in output
--name <name>List only subnets of given name in output
--subnet-range <subnet-range>List only subnets of given subnet range (in CIDR notation) in output. For example, --subnet-range 10.10.0.0/16
--subnet-pool <subnet-pool>List only subnets which belong to a given subnet pool in output (name or ID)
--tags <tag>[,<tag>,...]List subnets which have all given tag(s) (Comma- separated list of tags)
--any-tags <tag>[,<tag>,...]List subnets which have any given tag(s) (Comma- separated list of tags)
--not-tags <tag>[,<tag>,...]Exclude subnets which have all given tag(s) (Comma- separated list of tags)
--not-any-tags <tag>[,<tag>,...]Exclude subnets which have any given tag(s) (Comma- separated list of tags)