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/network.rst | 79 ++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) (limited to 'doc/source/cli/command-objects/network.rst') diff --git a/doc/source/cli/command-objects/network.rst b/doc/source/cli/command-objects/network.rst index ed9fd13d..5f20dc38 100644 --- a/doc/source/cli/command-objects/network.rst +++ b/doc/source/cli/command-objects/network.rst @@ -32,6 +32,7 @@ Create new network [--provider-segment ] [--qos-policy ] [--transparent-vlan | --no-transparent-vlan] + [--tag | --no-tag] .. option:: --project @@ -165,6 +166,18 @@ Create new network *Network version 2 only* +.. option:: --tag + + Tag to be added to the network (repeat option to set multiple tags) + + *Network version 2 only* + +.. option:: --no-tag + + No tags associated with the network + + *Network version 2 only* + .. _network_create-name: .. describe:: @@ -206,6 +219,8 @@ List networks [--provider-physical-network ] [--provider-segment ] [--agent ] + [--tags [,,...]] [--any-tags [,,...]] + [--not-tags [,,...]] [--not-any-tags [,,...]] .. option:: --external @@ -297,6 +312,32 @@ List networks List networks hosted by agent (ID only) + *Network version 2 only* + +.. option:: --tags [,,...] + + List networks which have all given tag(s) + + *Network version 2 only* + +.. option:: --any-tags [,,...] + + List networks which have any given tag(s) + + *Network version 2 only* + +.. option:: --not-tags [,,...] + + Exclude networks which have all given tag(s) + + *Network version 2 only* + +.. option:: --not-any-tags [,,...] + + Exclude networks which have any given tag(s) + + *Network version 2 only* + network set ----------- @@ -318,6 +359,7 @@ Set network properties [--provider-physical-network ] [--provider-segment ] [--qos-policy | --no-qos-policy] + [--tag ] [--no-tag] .. option:: --name @@ -392,6 +434,15 @@ Set network properties Remove the QoS policy attached to this network +.. option:: --tag + + Tag to be added to the network (repeat option to set multiple tags) + +.. option:: --no-tag + + Clear tags associated with the network. Specify both --tag + and --no-tag to overwrite current tags + .. _network_set-network: .. describe:: @@ -412,3 +463,31 @@ Display network details .. describe:: Network to display (name or ID) + +network unset +------------- + +Unset network properties + +*Network version 2 only* + +.. program:: network unset +.. code:: bash + + openstack network unset + [--tag | --all-tag] + + +.. option:: --tag + + Tag to be removed from the network + (repeat option to remove multiple tags) + +.. option:: --all-tag + + Clear all tags associated with the network + +.. _network_unset-network: +.. describe:: + + Network to modify (name or ID) -- cgit v1.2.1