diff options
| author | Cao Xuan Hoang <hoangcx@vn.fujitsu.com> | 2016-09-16 14:31:26 +0700 |
|---|---|---|
| committer | Cao Xuan Hoang <hoangcx@vn.fujitsu.com> | 2016-09-19 14:00:49 +0700 |
| commit | d44782bc089d6f3092cc2ee22ee4a13ea0c40ce9 (patch) | |
| tree | fe3626214cb1fa783f25b759960f7d8c5f39e013 /doc | |
| parent | 7e990ba1e2ae0ecb804287212797ebad84d7b56b (diff) | |
| download | python-openstackclient-d44782bc089d6f3092cc2ee22ee4a13ea0c40ce9.tar.gz | |
Add filtering options to os subnet list command
This patch adds the following filtering options:
'--project' and '--project-domain', '--network', '--gateway',
'--name', '--subnet-range' to the command.
Change-Id: I575739486b9548492bd00f50130181b825534226
Partially-Implements: blueprint network-commands-options
Closes-Bug: #1610883
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/source/command-objects/subnet.rst | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/doc/source/command-objects/subnet.rst b/doc/source/command-objects/subnet.rst index 4566d74d..d2ea6132 100644 --- a/doc/source/command-objects/subnet.rst +++ b/doc/source/command-objects/subnet.rst @@ -161,6 +161,11 @@ List subnets [--long] [--ip-version {4,6}] [--dhcp | --no-dhcp] + [--project <project> [--project-domain <project-domain>]] + [--network <network>] + [--gateway <gateway>] + [--name <name>] + [--subnet-range <subnet-range>] .. option:: --long @@ -186,6 +191,32 @@ List subnets Must be a valid device owner value for a network port (repeat option to list multiple service types) +.. option:: --project <project> + + List only subnets which belong to a given project (name or ID) in output + +.. option:: --project-domain <project-domain> + + Domain the project belongs to (name or ID). + This can be used in case collisions between project names exist. + +.. option:: --network <network> + + List only subnets which belong to a given network (name or ID) in output + +.. option:: --gateway <gateway> + + List only subnets of given gateway IP in output + +.. option:: --name <name> + + List only subnets of given name in output + +.. option:: --subnet-range <subnet-range> + + List only subnets of given subnet range (in CIDR notation) in output + e.g.: ``--subnet-range 10.10.0.0/16`` + subnet set ---------- |
