diff options
| author | Akihiro Motoki <amotoki@gmail.com> | 2017-04-29 00:32:32 +0000 |
|---|---|---|
| committer | Akihiro Motoki <amotoki@gmail.com> | 2017-07-23 21:54:32 +0000 |
| commit | 57e5840710c3b2b74d31bfd6a0da739e0fc747ed (patch) | |
| tree | 93fbb66cdc78f93062c4be7bddd8c8d8e45ff365 /doc/source/cli/command-objects/network.rst | |
| parent | e889ba1524c7e48a86ef41361a17cdb93b9942c2 (diff) | |
| download | python-openstackclient-57e5840710c3b2b74d31bfd6a0da739e0fc747ed.tar.gz | |
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
Diffstat (limited to 'doc/source/cli/command-objects/network.rst')
| -rw-r--r-- | doc/source/cli/command-objects/network.rst | 79 |
1 files changed, 79 insertions, 0 deletions
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 <provider-segment>] [--qos-policy <qos-policy>] [--transparent-vlan | --no-transparent-vlan] + [--tag <tag> | --no-tag] <name> .. option:: --project <project> @@ -165,6 +166,18 @@ Create new network *Network version 2 only* +.. option:: --tag <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:: <name> @@ -206,6 +219,8 @@ List networks [--provider-physical-network <provider-physical-network>] [--provider-segment <provider-segment>] [--agent <agent-id>] + [--tags <tag>[,<tag>,...]] [--any-tags <tag>[,<tag>,...]] + [--not-tags <tag>[,<tag>,...]] [--not-any-tags <tag>[,<tag>,...]] .. option:: --external @@ -297,6 +312,32 @@ List networks List networks hosted by agent (ID only) + *Network version 2 only* + +.. option:: --tags <tag>[,<tag>,...] + + List networks which have all given tag(s) + + *Network version 2 only* + +.. option:: --any-tags <tag>[,<tag>,...] + + List networks which have any given tag(s) + + *Network version 2 only* + +.. option:: --not-tags <tag>[,<tag>,...] + + Exclude networks which have all given tag(s) + + *Network version 2 only* + +.. option:: --not-any-tags <tag>[,<tag>,...] + + 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-physical-network>] [--provider-segment <provider-segment>] [--qos-policy <qos-policy> | --no-qos-policy] + [--tag <tag>] [--no-tag] <network> .. option:: --name <name> @@ -392,6 +434,15 @@ Set network properties Remove the QoS policy attached to this network +.. option:: --tag <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:: <network> @@ -412,3 +463,31 @@ Display network details .. describe:: <network> Network to display (name or ID) + +network unset +------------- + +Unset network properties + +*Network version 2 only* + +.. program:: network unset +.. code:: bash + + openstack network unset + [--tag <tag> | --all-tag] + <network> + +.. option:: --tag <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> + + Network to modify (name or ID) |
