A subnet pool contains a collection of prefixes in CIDR notation that are available for IP address allocation.
Network v2
Create subnet pool
openstack subnet pool create
[--extra-property type=<property_type>,name=<property_name>,value=<property_value>]
--pool-prefix <pool-prefix>
[--default-prefix-length <default-prefix-length>]
[--min-prefix-length <min-prefix-length>]
[--max-prefix-length <max-prefix-length>]
[--project <project>]
[--project-domain <project-domain>]
[--address-scope <address-scope>]
[--default | --no-default]
[--share | --no-share]
[--description <description>]
[--default-quota <num-ip-addresses>]
[--tag <tag> | --no-tag]
<name>
Additional parameters can be passed using this property. Default type of the extra property is string (‘str’), but other types can be used as well. Available types are: ‘dict’, ‘list’, ‘str’, ‘bool’, ‘int’. In case of ‘list’ type, ‘value’ can be semicolon-separated list of values. For ‘dict’ value is semicolon-separated list of the key:value pairs.
Set subnet pool prefixes (in CIDR notation) (repeat option to set multiple prefixes)
Set subnet pool default prefix length
Set subnet pool minimum prefix length
Set subnet pool maximum prefix length
Owner’s project (name or ID)
Domain the project belongs to (name or ID). This can be used in case collisions between project names exist.
Set address scope associated with the subnet pool (name or ID), prefixes must be unique across address scopes
Set this as a default subnet pool
Set this as a non-default subnet pool
Set this subnet pool as shared
Set this subnet pool as not shared
Set subnet pool description
Set default per-project quota for this subnet pool as the number of IP addresses that can be allocated from the subnet pool
Tag to be added to the subnet pool (repeat option to set multiple tags)
No tags associated with the subnet pool
Name of the new subnet pool
Delete subnet pool(s)
openstack subnet pool delete <subnet-pool> [<subnet-pool> ...]
Subnet pool(s) to delete (name or ID)
List subnet pools
openstack subnet pool list
[--format-config-file FORMAT_CONFIG]
[--sort-column SORT_COLUMN]
[--sort-ascending | --sort-descending]
[--long]
[--share | --no-share]
[--default | --no-default]
[--project <project>]
[--project-domain <project-domain>]
[--name <name>]
[--address-scope <address-scope>]
[--tags <tag>[,<tag>,...]]
[--any-tags <tag>[,<tag>,...]]
[--not-tags <tag>[,<tag>,...]]
[--not-any-tags <tag>[,<tag>,...]]
Config file for the dict-to-csv formatter
specify the column(s) to sort the data (columns specified first have a priority, non-existing columns are ignored), can be repeated
sort the column(s) in ascending order
sort the column(s) in descending order
List additional fields in output
List subnet pools shared between projects
List subnet pools not shared between projects
List subnet pools used as the default external subnet pool
List subnet pools not used as the default external subnet pool
List subnet pools according to their project (name or ID)
Domain the project belongs to (name or ID). This can be used in case collisions between project names exist.
List only subnet pools of given name in output
List only subnet pools of given address scope in output (name or ID)
List subnet pools which have all given tag(s) (Comma-separated list of tags)
List subnet pools which have any given tag(s) (Comma-separated list of tags)
Exclude subnet pools which have all given tag(s) (Comma-separated list of tags)
Exclude subnet pools which have any given tag(s) (Comma-separated list of tags)
Set subnet pool properties
openstack subnet pool set
[--extra-property type=<property_type>,name=<property_name>,value=<property_value>]
[--name <name>]
[--pool-prefix <pool-prefix>]
[--default-prefix-length <default-prefix-length>]
[--min-prefix-length <min-prefix-length>]
[--max-prefix-length <max-prefix-length>]
[--address-scope <address-scope> | --no-address-scope]
[--default | --no-default]
[--description <description>]
[--default-quota <num-ip-addresses>]
[--tag <tag>]
[--no-tag]
<subnet-pool>
Additional parameters can be passed using this property. Default type of the extra property is string (‘str’), but other types can be used as well. Available types are: ‘dict’, ‘list’, ‘str’, ‘bool’, ‘int’. In case of ‘list’ type, ‘value’ can be semicolon-separated list of values. For ‘dict’ value is semicolon-separated list of the key:value pairs.
Set subnet pool name
Set subnet pool prefixes (in CIDR notation) (repeat option to set multiple prefixes)
Set subnet pool default prefix length
Set subnet pool minimum prefix length
Set subnet pool maximum prefix length
Set address scope associated with the subnet pool (name or ID), prefixes must be unique across address scopes
Remove address scope associated with the subnet pool
Set this as a default subnet pool
Set this as a non-default subnet pool
Set subnet pool description
Set default per-project quota for this subnet pool as the number of IP addresses that can be allocated from the subnet pool
Tag to be added to the subnet pool (repeat option to set multiple tags)
Clear tags associated with the subnet pool. Specify both –tag and –no-tag to overwrite current tags
Subnet pool to modify (name or ID)
Display subnet pool details
openstack subnet pool show <subnet-pool>
Subnet pool to display (name or ID)
Unset subnet pool properties
openstack subnet pool unset [--tag <tag> | --all-tag] <subnet-pool>
Tag to be removed from the subnet pool (repeat option to remove multiple tags)
Clear all tags associated with the subnet pool
Subnet pool to modify (name or ID)
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.