From 57e5840710c3b2b74d31bfd6a0da739e0fc747ed Mon Sep 17 00:00:00 2001 From: Akihiro Motoki Date: Sat, 29 Apr 2017 00:32:32 +0000 Subject: Network tag support Neutron tag mechanism now supports network, subnet, port, subnetpool and router. Tag support for more resources is planned. This commit introduces a common mixin class to implement tag operation and individual resource consumes it. To support tag remove, network unset command is added. Implements blueprint neutron-client-tag Change-Id: Iad59d052f46896d27d73c22d6d4bb3df889f2352 --- doc/source/cli/command-objects/port.rst | 47 +++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) (limited to 'doc/source/cli/command-objects/port.rst') diff --git a/doc/source/cli/command-objects/port.rst b/doc/source/cli/command-objects/port.rst index 37814a95..c2da09b3 100644 --- a/doc/source/cli/command-objects/port.rst +++ b/doc/source/cli/command-objects/port.rst @@ -33,6 +33,7 @@ Create new port [--qos-policy ] [--project [--project-domain ]] [--enable-port-security | --disable-port-security] + [--tag | --no-tag] .. option:: --network @@ -126,6 +127,14 @@ Create new port Disable port security for this port +.. option:: --tag + + Tag to be added to the port (repeat option to set multiple tags) + +.. option:: --no-tag + + No tags associated with the port + .. _port_create-name: .. describe:: @@ -163,6 +172,8 @@ List ports [--fixed-ip subnet=,ip-address=] [--long] [--project [--project-domain ]] + [--tags [,,...]] [--any-tags [,,...]] + [--not-tags [,,...]] [--not-any-tags [,,...]] .. option:: --device-owner @@ -204,6 +215,22 @@ List ports Domain the project belongs to (name or ID). This can be used in case collisions between project names exist. +.. option:: --tags [,,...] + + List ports which have all given tag(s) + +.. option:: --any-tags [,,...] + + List ports which have any given tag(s) + +.. option:: --not-tags [,,...] + + Exclude ports which have all given tag(s) + +.. option:: --not-any-tags [,,...] + + Exclude ports which have any given tag(s) + port set -------- @@ -233,6 +260,7 @@ Set port properties [--allowed-address ip-address=[,mac-address=]] [--no-allowed-address] [--data-plane-status ] + [--tag ] [--no-tag] .. option:: --description @@ -342,6 +370,15 @@ Set port properties Unset it to None with the 'port unset' command (requires data plane status extension) +.. option:: --tag + + Tag to be added to the port (repeat option to set multiple tags) + +.. option:: --no-tag + + Clear tags associated with the port. Specify both --tag + and --no-tag to overwrite current tags + .. _port_set-port: .. describe:: @@ -378,6 +415,7 @@ Unset port properties [--allowed-address ip-address=[,mac-address=] [...]] [--qos-policy] [--data-plane-status] + [--tag | --all-tag] .. option:: --fixed-ip subnet=,ip-address= @@ -410,6 +448,15 @@ Unset port properties Clear existing information of data plane status +.. option:: --tag + + Tag to be removed from the port + (repeat option to remove multiple tags) + +.. option:: --all-tag + + Clear all tags associated with the port + .. _port_unset-port: .. describe:: -- cgit v1.2.1