From 66a04abd581e03e5e71a6b755e1b4dce1856ef41 Mon Sep 17 00:00:00 2001 From: Nguyen Phuong An Date: Tue, 16 Aug 2016 15:07:01 +0700 Subject: Add security groups options to "port create/set/unset" This patch adds '--security-group' and '--no-security-group' options to "port create", "port set" and "port unset" commands. Change-Id: Iff60d8f29227017b0a3966efca6cdecba69abcea Partial-Bug: #1612136 Partially-Implements: blueprint network-commands-options --- doc/source/command-objects/port.rst | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'doc/source/command-objects') diff --git a/doc/source/command-objects/port.rst b/doc/source/command-objects/port.rst index e3e783ad..29ce344c 100644 --- a/doc/source/command-objects/port.rst +++ b/doc/source/command-objects/port.rst @@ -26,6 +26,7 @@ Create new port [--host ] [--enable | --disable] [--mac-address ] + [--security-group | --no-security-group] [--project [--project-domain ]] @@ -75,6 +76,15 @@ Create new port MAC address of this port +.. option:: --security-group + + Security group to associate with this port (name or ID) + (repeat option to set multiple security groups) + +.. option:: --no-security-group + + Associate no security groups with this port + .. option:: --project Owner's project (name or ID) @@ -154,6 +164,8 @@ Set port properties [--host ] [--enable | --disable] [--name ] + [--security-group ] + [--no-security-group] .. option:: --fixed-ip subnet=,ip-address= @@ -210,6 +222,15 @@ Set port properties Set port name +.. option:: --security-group + + Security group to associate with this port (name or ID) + (repeat option to set multiple security groups) + +.. option:: --no-security-group + + Clear existing security groups associated with this port + .. _port_set-port: .. describe:: @@ -242,6 +263,7 @@ Unset port properties os port unset [--fixed-ip subnet=,ip-address= [...]] [--binding-profile [...]] + [--security-group [...]] .. option:: --fixed-ip subnet=,ip-address= @@ -255,6 +277,11 @@ Unset port properties Desired key which should be removed from binding-profile (repeat option to unset multiple binding:profile data) +.. option:: --security-group + + Security group which should be removed from this port (name or ID) + (repeat option to unset multiple security groups) + .. _port_unset-port: .. describe:: -- cgit v1.2.1