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
|
|
|
|
|
|
|
os subnet pool create
|
|
|
|
[--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]
|
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
|
|
|
|
|
2016-04-25 12:22:14 +00:00
|
|
|
.. describe:: --pool-prefix <pool-prefix>
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
os 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
|
|
|
|
|
|
|
|
os subnet pool list
|
|
|
|
[--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>]
|
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
|
|
|
|
|
|
|
|
List subnets shared between projects
|
|
|
|
|
|
|
|
.. option:: --no-share
|
|
|
|
|
|
|
|
List subnets not shared between projects
|
|
|
|
|
|
|
|
.. option:: --default
|
|
|
|
|
|
|
|
List subnets used as the default external subnet pool
|
|
|
|
|
|
|
|
.. option:: --no-default
|
|
|
|
|
|
|
|
List subnets not used as the default external subnet pool
|
|
|
|
|
|
|
|
.. option:: --project <project>
|
|
|
|
|
|
|
|
List subnets according to their 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.
|
|
|
|
|
|
|
|
.. option:: --name <name>
|
|
|
|
|
|
|
|
List only subnets of given name in output
|
|
|
|
|
|
|
|
.. option:: --address-scope <address-scope>
|
|
|
|
|
|
|
|
List only subnets of given address scope (name or ID) in output
|
|
|
|
|
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
|
|
|
|
|
|
|
os subnet pool set
|
|
|
|
[--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>]
|
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
|
|
|
|
|
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
|
|
|
|
|
|
|
|
os subnet pool show
|
|
|
|
<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
|
|
|
|
|
|
|
|
os subnet pool unset
|
|
|
|
[--pool-prefix <pool-prefix> [...]]
|
|
|
|
<subnet-pool>
|
|
|
|
|
|
|
|
.. option:: --pool-prefix <pool-prefix>
|
|
|
|
|
|
|
|
Remove subnet pool prefixes (in CIDR notation).
|
|
|
|
(repeat option to unset multiple prefixes).
|
|
|
|
|
|
|
|
.. _subnet_pool_unset-subnet-pool:
|
|
|
|
.. describe:: <subnet-pool>
|
|
|
|
|
|
|
|
Subnet pool to modify (name or ID)
|