From 8bcfb824c8f2978c9348968d3da1345c45d7b764 Mon Sep 17 00:00:00 2001 From: Nguyen Phuong An Date: Wed, 17 Aug 2016 11:25:13 +0700 Subject: 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 Change-Id: I08d2269950467a8972a0d0110ed61f5cc7f5ca45 --- doc/source/command-objects/port.rst | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'doc/source') 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 ] [--security-group | --no-security-group] [--dns-name ] + [--allowed-address ip-address=[,mac-address=]] [--project [--project-domain ]] [--enable-port-security | --disable-port-security] @@ -97,6 +98,12 @@ Create new port Set DNS name to this port (requires DNS integration extension) +.. option:: --allowed-address ip-address=[,mac-address=] + + Add allowed-address pair associated with this port: + ip-address=[,mac-address=] + (repeat option to set multiple allowed-address pairs) + .. option:: --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 ] + [--allowed-address ip-address=[,mac-address=]] + [--no-allowed-address] .. option:: --description @@ -281,6 +290,19 @@ Set port properties Set DNS name to this port (requires DNS integration extension) +.. option:: --allowed-address ip-address=[,mac-address=] + + Add allowed-address pair associated with this port: + ip-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:: @@ -314,6 +336,7 @@ Unset port properties [--fixed-ip subnet=,ip-address= [...]] [--binding-profile [...]] [--security-group [...]] + [--allowed-address ip-address=[,mac-address=] [...]] .. option:: --fixed-ip subnet=,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=[,mac-address=] + + Desired allowed-address pair which should be removed from this port: + ip-address=[,mac-address=] + (repeat option to unset multiple allowed-address pairs) + .. _port_unset-port: .. describe:: -- cgit v1.2.1