summaryrefslogtreecommitdiff
path: root/doc/source/command-objects
diff options
context:
space:
mode:
authorNguyen Phuong An <AnNP@vn.fujitsu.com>2016-08-17 11:25:13 +0700
committerHa Van Tu <tuhv@vn.fujitsu.com>2016-12-20 15:16:15 +0700
commit8bcfb824c8f2978c9348968d3da1345c45d7b764 (patch)
tree3120deec2916298a31dd703ef811a756a1dec4e4 /doc/source/command-objects
parent3ab94614c29081b2872495376ee22c7c2081e3fa (diff)
downloadpython-openstackclient-8bcfb824c8f2978c9348968d3da1345c45d7b764.tar.gz
Add 'allowed address pairs' option to 'port create/set/unset'
This patch adds '--allowed-addres-pair' and '--no-allowed-address-pair' options to 'port create', 'port set' and 'port unset' commands. Partial-Bug: #1612136 Closes-Bug: #1638265 Partially-Implements: blueprint network-commands-options Co-Authored-By: Ha Van Tu <tuhv@vn.fujitsu.com> Change-Id: I08d2269950467a8972a0d0110ed61f5cc7f5ca45
Diffstat (limited to 'doc/source/command-objects')
-rw-r--r--doc/source/command-objects/port.rst29
1 files changed, 29 insertions, 0 deletions
diff --git a/doc/source/command-objects/port.rst b/doc/source/command-objects/port.rst
index 73c53290..a4bbc285 100644
--- a/doc/source/command-objects/port.rst
+++ b/doc/source/command-objects/port.rst
@@ -29,6 +29,7 @@ Create new port
[--mac-address <mac-address>]
[--security-group <security-group> | --no-security-group]
[--dns-name <dns-name>]
+ [--allowed-address ip-address=<ip-address>[,mac-address=<mac-address>]]
[--project <project> [--project-domain <project-domain>]]
[--enable-port-security | --disable-port-security]
<name>
@@ -97,6 +98,12 @@ Create new port
Set DNS name to this port
(requires DNS integration extension)
+.. option:: --allowed-address ip-address=<ip-address>[,mac-address=<mac-address>]
+
+ Add allowed-address pair associated with this port:
+ ip-address=<ip-address>[,mac-address=<mac-address>]
+ (repeat option to set multiple allowed-address pairs)
+
.. option:: --project <project>
Owner's project (name or ID)
@@ -199,6 +206,8 @@ Set port properties
[--no-security-group]
[--enable-port-security | --disable-port-security]
[--dns-name <dns-name>]
+ [--allowed-address ip-address=<ip-address>[,mac-address=<mac-address>]]
+ [--no-allowed-address]
<port>
.. option:: --description <description>
@@ -281,6 +290,19 @@ Set port properties
Set DNS name to this port
(requires DNS integration extension)
+.. option:: --allowed-address ip-address=<ip-address>[,mac-address=<mac-address>]
+
+ Add allowed-address pair associated with this port:
+ ip-address=<ip-address>[,mac-address=<mac-address>]
+ (repeat option to set multiple allowed-address pairs)
+
+.. option:: --no-allowed-address
+
+ Clear existing allowed-address pairs associated
+ with this port.
+ (Specify both --allowed-address and --no-allowed-address
+ to overwrite the current allowed-address pairs)
+
.. _port_set-port:
.. describe:: <port>
@@ -314,6 +336,7 @@ Unset port properties
[--fixed-ip subnet=<subnet>,ip-address=<ip-address> [...]]
[--binding-profile <binding-profile-key> [...]]
[--security-group <security-group> [...]]
+ [--allowed-address ip-address=<ip-address>[,mac-address=<mac-address>] [...]]
<port>
.. option:: --fixed-ip subnet=<subnet>,ip-address=<ip-address>
@@ -332,6 +355,12 @@ Unset port properties
Security group which should be removed from this port (name or ID)
(repeat option to unset multiple security groups)
+.. option:: --allowed-address ip-address=<ip-address>[,mac-address=<mac-address>]
+
+ Desired allowed-address pair which should be removed from this port:
+ ip-address=<ip-address>[,mac-address=<mac-address>]
+ (repeat option to unset multiple allowed-address pairs)
+
.. _port_unset-port:
.. describe:: <port>