Implement "address scope create" command
This patch supports creating a new address scope, with --ip-version,--project,--project-domain and --share or --no-share options. Change-Id: I37c73391a41ac239dd72d55dbc0adbebd7701f4a Partial-Bug: #1566269
This commit is contained in:
48
doc/source/command-objects/address-scope.rst
Normal file
48
doc/source/command-objects/address-scope.rst
Normal file
@@ -0,0 +1,48 @@
|
||||
=============
|
||||
address scope
|
||||
=============
|
||||
|
||||
An **address scope** is a scope of IPv4 or IPv6 addresses that belongs
|
||||
to a given project and may be shared between projects.
|
||||
|
||||
Network v2
|
||||
|
||||
address scope create
|
||||
--------------------
|
||||
|
||||
Create new address scope
|
||||
|
||||
.. program:: address scope create
|
||||
.. code:: bash
|
||||
|
||||
os address scope create
|
||||
[--project <project> [--project-domain <project-domain>]]
|
||||
[--ip-version <ip-version>]
|
||||
[--share | --no-share]
|
||||
<name>
|
||||
|
||||
.. 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.
|
||||
|
||||
.. option:: --ip-version <ip-version>
|
||||
|
||||
IP version (4 or 6, default is 4)
|
||||
|
||||
.. option:: --share
|
||||
|
||||
Share the address scope between projects
|
||||
|
||||
.. option:: --no-share
|
||||
|
||||
Do not share the address scope between projects (default)
|
||||
|
||||
.. _address_scope_create-name:
|
||||
.. describe:: <name>
|
||||
|
||||
New address scope name
|
@@ -70,6 +70,7 @@ the API resources will be merged, as in the ``quota`` object that has options
|
||||
referring to both Compute and Volume quotas.
|
||||
|
||||
* ``access token``: (**Identity**) long-lived OAuth-based token
|
||||
* ``address scope``: (**Network**) a scope of IPv4 or IPv6 addresses
|
||||
* ``aggregate``: (**Compute**) a grouping of compute hosts
|
||||
* ``availability zone``: (**Compute**, **Network**, **Volume**) a logical partition of hosts or block storage or network services
|
||||
* ``backup``: (**Volume**) a volume copy
|
||||
|
Reference in New Issue
Block a user