2016-02-12 13:31:15 +08:00
|
|
|
===========
|
|
|
|
subnet pool
|
|
|
|
===========
|
|
|
|
|
2016-04-24 19:17:36 -05:00
|
|
|
A **subnet pool** contains a collection of prefixes in CIDR notation
|
|
|
|
that are available for IP address allocation.
|
|
|
|
|
2016-02-12 13:31:15 +08:00
|
|
|
Network v2
|
|
|
|
|
2016-03-07 20:48:03 +08:00
|
|
|
subnet pool create
|
|
|
|
------------------
|
|
|
|
|
|
|
|
Create subnet pool
|
|
|
|
|
|
|
|
.. program:: subnet pool create
|
2016-03-14 13:39:22 -05:00
|
|
|
.. code:: bash
|
2016-03-07 20:48:03 +08:00
|
|
|
|
2016-12-20 09:26:15 +08:00
|
|
|
openstack subnet pool create
|
2016-03-07 20:48:03 +08:00
|
|
|
[--default-prefix-length <default-prefix-length>]
|
|
|
|
[--min-prefix-length <min-prefix-length>]
|
|
|
|
[--max-prefix-length <max-prefix-length>]
|
2016-08-18 16:50:52 +07:00
|
|
|
[--description <description>]
|
2016-03-23 11:27:37 +08:00
|
|
|
[--project <project> [--project-domain <project-domain>]]
|
2016-03-24 19:22:07 +08:00
|
|
|
[--address-scope <address-scope>]
|
2016-04-18 21:22:24 -05:00
|
|
|
[--default | --no-default]
|
|
|
|
[--share | --no-share]
|
2017-02-23 08:05:00 -05:00
|
|
|
[--default-quota <num-ip-addresses>]
|
2017-04-29 00:32:32 +00:00
|
|
|
[--tag <tag> | --no-tag]
|
2016-04-25 12:22:14 +00:00
|
|
|
--pool-prefix <pool-prefix> [...]
|
2016-03-07 20:48:03 +08:00
|
|
|
<name>
|
|
|
|
|
|
|
|
.. option:: --default-prefix-length <default-prefix-length>
|
|
|
|
|
|
|
|
Set subnet pool default prefix length
|
|
|
|
|
|
|
|
.. option:: --min-prefix-length <min-prefix-length>
|
|
|
|
|
|
|
|
Set subnet pool minimum prefix length
|
|
|
|
|
|
|
|
.. option:: --max-prefix-length <max-prefix-length>
|
|
|
|
|
|
|
|
Set subnet pool maximum prefix length
|
|
|
|
|
2016-08-18 16:50:52 +07:00
|
|
|
.. option:: --description <description>
|
|
|
|
|
|
|
|
Set subnet pool description
|
|
|
|
|
2016-03-23 11:27:37 +08:00
|
|
|
.. option:: --project <project>
|
|
|
|
|
|
|
|
Owner's project (name or ID)
|
|
|
|
|
|
|
|
.. option:: --project-domain <project-domain>
|
|
|
|
|
|
|
|
Domain the project belongs to (name or ID). This can be used in case
|
|
|
|
collisions between project names exist.
|
|
|
|
|
2016-03-24 19:22:07 +08:00
|
|
|
.. option:: --address-scope <address-scope>
|
|
|
|
|
2016-04-16 10:59:37 +08:00
|
|
|
Set address scope associated with the subnet pool (name or ID),
|
|
|
|
prefixes must be unique across address scopes
|
2016-03-24 19:22:07 +08:00
|
|
|
|
2016-04-18 21:22:24 -05:00
|
|
|
.. option:: --default
|
|
|
|
|
|
|
|
Set this as a default subnet pool
|
|
|
|
|
|
|
|
.. option:: --no-default
|
|
|
|
|
|
|
|
Set this as a non-default subnet pool
|
|
|
|
|
|
|
|
.. option:: --share
|
|
|
|
|
|
|
|
Set this subnet pool as shared
|
|
|
|
|
|
|
|
.. option:: --no-share
|
|
|
|
|
|
|
|
Set this subnet pool as not shared
|
|
|
|
|
2017-02-23 08:05:00 -05:00
|
|
|
.. option:: --default-quota <num-ip-addresses>
|
|
|
|
|
|
|
|
Set default quota for subnet pool as the number of
|
|
|
|
IP addresses allowed in a subnet
|
|
|
|
|
2017-04-29 00:32:32 +00:00
|
|
|
.. option:: --tag <tag>
|
|
|
|
|
|
|
|
Tag to be added to the subnet pool (repeat option to set multiple tags)
|
|
|
|
|
|
|
|
.. option:: --no-tag
|
|
|
|
|
|
|
|
No tags associated with the subnet pool
|
|
|
|
|
2017-02-23 08:05:00 -05:00
|
|
|
.. option:: --pool-prefix <pool-prefix>
|
2016-04-25 12:22:14 +00:00
|
|
|
|
|
|
|
Set subnet pool prefixes (in CIDR notation)
|
|
|
|
(repeat option to set multiple prefixes)
|
|
|
|
|
2016-03-07 20:48:03 +08:00
|
|
|
.. _subnet_pool_create-name:
|
2016-04-01 16:16:08 -05:00
|
|
|
.. describe:: <name>
|
2016-03-07 20:48:03 +08:00
|
|
|
|
|
|
|
Name of the new subnet pool
|
|
|
|
|
2016-02-12 13:31:15 +08:00
|
|
|
subnet pool delete
|
|
|
|
------------------
|
|
|
|
|
2016-06-16 13:09:27 +08:00
|
|
|
Delete subnet pool(s)
|
2016-02-12 13:31:15 +08:00
|
|
|
|
|
|
|
.. program:: subnet pool delete
|
|
|
|
.. code:: bash
|
|
|
|
|
2016-12-20 09:26:15 +08:00
|
|
|
openstack subnet pool delete
|
2016-06-16 13:09:27 +08:00
|
|
|
<subnet-pool> [<subnet-pool> ...]
|
2016-02-12 13:31:15 +08:00
|
|
|
|
|
|
|
.. _subnet_pool_delete-subnet-pool:
|
|
|
|
.. describe:: <subnet-pool>
|
|
|
|
|
2016-06-16 13:09:27 +08:00
|
|
|
Subnet pool(s) to delete (name or ID)
|
2016-02-13 09:49:46 +08:00
|
|
|
|
|
|
|
subnet pool list
|
|
|
|
----------------
|
|
|
|
|
|
|
|
List subnet pools
|
|
|
|
|
|
|
|
.. program:: subnet pool list
|
|
|
|
.. code:: bash
|
|
|
|
|
2016-12-20 09:26:15 +08:00
|
|
|
openstack subnet pool list
|
2016-02-13 09:49:46 +08:00
|
|
|
[--long]
|
2016-08-18 13:15:58 +07:00
|
|
|
[--share | --no-share]
|
|
|
|
[--default | --no-default]
|
|
|
|
[--project <project> [--project-domain <project-domain>]]
|
|
|
|
[--name <name>]
|
|
|
|
[--address-scope <address-scope>]
|
2017-04-29 00:32:32 +00:00
|
|
|
[--tags <tag>[,<tag>,...]] [--any-tags <tag>[,<tag>,...]]
|
|
|
|
[--not-tags <tag>[,<tag>,...]] [--not-any-tags <tag>[,<tag>,...]]
|
2016-02-13 09:49:46 +08:00
|
|
|
|
|
|
|
.. option:: --long
|
|
|
|
|
|
|
|
List additional fields in output
|
2016-02-13 10:13:14 +08:00
|
|
|
|
2016-08-18 13:15:58 +07:00
|
|
|
.. option:: --share
|
|
|
|
|
2016-10-19 21:21:25 -07:00
|
|
|
List subnet pools shared between projects
|
2016-08-18 13:15:58 +07:00
|
|
|
|
|
|
|
.. option:: --no-share
|
|
|
|
|
2016-10-19 21:21:25 -07:00
|
|
|
List subnet pools not shared between projects
|
2016-08-18 13:15:58 +07:00
|
|
|
|
|
|
|
.. option:: --default
|
|
|
|
|
2016-10-19 21:21:25 -07:00
|
|
|
List subnet pools used as the default external subnet pool
|
2016-08-18 13:15:58 +07:00
|
|
|
|
|
|
|
.. option:: --no-default
|
|
|
|
|
2016-10-19 21:21:25 -07:00
|
|
|
List subnet pools not used as the default external subnet pool
|
2016-08-18 13:15:58 +07:00
|
|
|
|
|
|
|
.. option:: --project <project>
|
|
|
|
|
2016-10-19 21:21:25 -07:00
|
|
|
List subnet pools according to their project (name or ID)
|
2016-08-18 13:15:58 +07:00
|
|
|
|
|
|
|
.. option:: --project-domain <project-domain>
|
|
|
|
|
|
|
|
Domain the project belongs to (name or ID).
|
|
|
|
This can be used in case collisions between project names exist.
|
|
|
|
|
|
|
|
.. option:: --name <name>
|
|
|
|
|
2016-10-19 21:21:25 -07:00
|
|
|
List only subnet pools of given name in output
|
2016-08-18 13:15:58 +07:00
|
|
|
|
|
|
|
.. option:: --address-scope <address-scope>
|
|
|
|
|
2017-04-03 16:15:14 -05:00
|
|
|
List only subnet pools of given address scope in output (name or ID)
|
2016-08-18 13:15:58 +07:00
|
|
|
|
2017-04-29 00:32:32 +00:00
|
|
|
.. option:: --tags <tag>[,<tag>,...]
|
|
|
|
|
|
|
|
List subnet pools which have all given tag(s)
|
|
|
|
|
|
|
|
.. option:: --any-tags <tag>[,<tag>,...]
|
|
|
|
|
|
|
|
List subnet pools which have any given tag(s)
|
|
|
|
|
|
|
|
.. option:: --not-tags <tag>[,<tag>,...]
|
|
|
|
|
|
|
|
Exclude subnet pools which have all given tag(s)
|
|
|
|
|
|
|
|
.. option:: --not-any-tags <tag>[,<tag>,...]
|
|
|
|
|
|
|
|
Exclude subnet pools which have any given tag(s)
|
|
|
|
|
2016-03-07 11:51:39 +08:00
|
|
|
subnet pool set
|
|
|
|
---------------
|
|
|
|
|
|
|
|
Set subnet pool properties
|
|
|
|
|
|
|
|
.. program:: subnet pool set
|
2016-03-14 13:39:22 -05:00
|
|
|
.. code:: bash
|
2016-03-07 11:51:39 +08:00
|
|
|
|
2016-12-20 09:26:15 +08:00
|
|
|
openstack subnet pool set
|
2016-03-07 11:51:39 +08:00
|
|
|
[--name <name>]
|
|
|
|
[--pool-prefix <pool-prefix> [...]]
|
|
|
|
[--default-prefix-length <default-prefix-length>]
|
|
|
|
[--min-prefix-length <min-prefix-length>]
|
|
|
|
[--max-prefix-length <max-prefix-length>]
|
2016-03-24 19:22:07 +08:00
|
|
|
[--address-scope <address-scope> | --no-address-scope]
|
2016-04-18 21:22:24 -05:00
|
|
|
[--default | --no-default]
|
2016-08-18 16:50:52 +07:00
|
|
|
[--description <description>]
|
2017-02-23 08:05:00 -05:00
|
|
|
[--default-quota <num-ip-addresses>]
|
2017-04-29 00:32:32 +00:00
|
|
|
[--tag <tag>] [--no-tag]
|
2016-03-07 11:51:39 +08:00
|
|
|
<subnet-pool>
|
|
|
|
|
|
|
|
.. option:: --name <name>
|
|
|
|
|
|
|
|
Set subnet pool name
|
|
|
|
|
|
|
|
.. option:: --pool-prefix <pool-prefix>
|
|
|
|
|
2016-04-12 15:57:17 +08:00
|
|
|
Set subnet pool prefixes (in CIDR notation)
|
|
|
|
(repeat option to set multiple prefixes)
|
2016-03-07 11:51:39 +08:00
|
|
|
|
|
|
|
.. option:: --default-prefix-length <default-prefix-length>
|
|
|
|
|
|
|
|
Set subnet pool default prefix length
|
|
|
|
|
|
|
|
.. option:: --min-prefix-length <min-prefix-length>
|
|
|
|
|
|
|
|
Set subnet pool minimum prefix length
|
|
|
|
|
|
|
|
.. option:: --max-prefix-length <max-prefix-length>
|
|
|
|
|
|
|
|
Set subnet pool maximum prefix length
|
|
|
|
|
2016-03-24 19:22:07 +08:00
|
|
|
.. option:: --address-scope <address-scope>
|
|
|
|
|
2016-04-16 10:59:37 +08:00
|
|
|
Set address scope associated with the subnet pool (name or ID),
|
|
|
|
prefixes must be unique across address scopes
|
2016-03-24 19:22:07 +08:00
|
|
|
|
|
|
|
.. option:: --no-address-scope
|
|
|
|
|
|
|
|
Remove address scope associated with the subnet pool
|
|
|
|
|
2016-04-18 21:22:24 -05:00
|
|
|
.. option:: --default
|
|
|
|
|
|
|
|
Set this as a default subnet pool
|
|
|
|
|
|
|
|
.. option:: --no-default
|
|
|
|
|
|
|
|
Set this as a non-default subnet pool
|
|
|
|
|
2016-08-18 16:50:52 +07:00
|
|
|
.. option:: --description <description>
|
|
|
|
|
|
|
|
Set subnet pool description
|
|
|
|
|
2017-02-23 08:05:00 -05:00
|
|
|
.. option:: --default-quota <num-ip-addresses>
|
|
|
|
|
|
|
|
Set default quota for subnet pool as the number of
|
|
|
|
IP addresses allowed in a subnet
|
|
|
|
|
2017-04-29 00:32:32 +00:00
|
|
|
.. option:: --tag <tag>
|
|
|
|
|
|
|
|
Tag to be added to the subnet pool (repeat option to set multiple tags)
|
|
|
|
|
|
|
|
.. option:: --no-tag
|
|
|
|
|
|
|
|
Clear tags associated with the subnet pool. Specify both --tag
|
|
|
|
and --no-tag to overwrite current tags
|
|
|
|
|
2016-03-07 11:51:39 +08:00
|
|
|
.. _subnet_pool_set-subnet-pool:
|
2016-04-01 16:16:08 -05:00
|
|
|
.. describe:: <subnet-pool>
|
2016-03-07 11:51:39 +08:00
|
|
|
|
|
|
|
Subnet pool to modify (name or ID)
|
|
|
|
|
2016-02-13 10:13:14 +08:00
|
|
|
subnet pool show
|
|
|
|
----------------
|
|
|
|
|
2016-02-20 15:01:07 +08:00
|
|
|
Display subnet pool details
|
2016-02-13 10:13:14 +08:00
|
|
|
|
|
|
|
.. program:: subnet pool show
|
|
|
|
.. code:: bash
|
|
|
|
|
2016-12-20 09:26:15 +08:00
|
|
|
openstack subnet pool show
|
2016-02-13 10:13:14 +08:00
|
|
|
<subnet-pool>
|
|
|
|
|
|
|
|
.. _subnet_pool_show-subnet-pool:
|
|
|
|
.. describe:: <subnet-pool>
|
|
|
|
|
2016-02-20 15:01:07 +08:00
|
|
|
Subnet pool to display (name or ID)
|
2016-04-15 15:27:18 +09:00
|
|
|
|
|
|
|
subnet pool unset
|
|
|
|
-----------------
|
|
|
|
|
|
|
|
Unset subnet pool properties
|
|
|
|
|
|
|
|
.. program:: subnet pool unset
|
|
|
|
.. code:: bash
|
|
|
|
|
2016-12-20 09:26:15 +08:00
|
|
|
openstack subnet pool unset
|
2016-04-15 15:27:18 +09:00
|
|
|
[--pool-prefix <pool-prefix> [...]]
|
2017-04-29 00:32:32 +00:00
|
|
|
[--tag <tag> | --all-tag]
|
2016-04-15 15:27:18 +09:00
|
|
|
<subnet-pool>
|
|
|
|
|
|
|
|
.. option:: --pool-prefix <pool-prefix>
|
|
|
|
|
|
|
|
Remove subnet pool prefixes (in CIDR notation).
|
|
|
|
(repeat option to unset multiple prefixes).
|
|
|
|
|
2017-04-29 00:32:32 +00:00
|
|
|
.. option:: --tag <tag>
|
|
|
|
|
|
|
|
Tag to be removed from the subnet pool
|
|
|
|
(repeat option to remove multiple tags)
|
|
|
|
|
|
|
|
.. option:: --all-tag
|
|
|
|
|
|
|
|
Clear all tags associated with the subnet pool
|
|
|
|
|
2016-04-15 15:27:18 +09:00
|
|
|
.. _subnet_pool_unset-subnet-pool:
|
|
|
|
.. describe:: <subnet-pool>
|
|
|
|
|
|
|
|
Subnet pool to modify (name or ID)
|