From d44782bc089d6f3092cc2ee22ee4a13ea0c40ce9 Mon Sep 17 00:00:00 2001 From: Cao Xuan Hoang Date: Fri, 16 Sep 2016 14:31:26 +0700 Subject: 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 --- doc/source/command-objects/subnet.rst | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'doc/source/command-objects/subnet.rst') 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-domain ]] + [--network ] + [--gateway ] + [--name ] + [--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 + + List only subnets which belong to a given project (name or ID) in output + +.. option:: --project-domain + + Domain the project belongs to (name or ID). + This can be used in case collisions between project names exist. + +.. option:: --network + + List only subnets which belong to a given network (name or ID) in output + +.. option:: --gateway + + List only subnets of given gateway IP in output + +.. option:: --name + + List only subnets of given name in output + +.. option:: --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 ---------- -- cgit v1.2.1