From 6b76860c451251fd3c95e1e0e1af12c560bf4043 Mon Sep 17 00:00:00 2001 From: Richard Theis Date: Fri, 1 Apr 2016 16:16:08 -0500 Subject: Doc: Fix network command documentation issues Fix the following network command documentation issues: - Fix format of subnet pool positional arguments - Update port set options to match help - Fix network command documentation for Network v2 versus Compute v2 options and commands - Fix subnet command documentation errors and formatting problems in help text Change-Id: I808c2a70ca62eafc9e42d6873539cdd142ffe50c Related-Bug: #1558677 --- openstackclient/network/v2/subnet.py | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'openstackclient') diff --git a/openstackclient/network/v2/subnet.py b/openstackclient/network/v2/subnet.py index 10e5859a..eb96bb1f 100644 --- a/openstackclient/network/v2/subnet.py +++ b/openstackclient/network/v2/subnet.py @@ -197,7 +197,7 @@ class CreateSubnet(command.ShowOne): parser.add_argument( '--prefix-length', metavar='', - help='Prefix length for subnet allocation from subnetpool', + help='Prefix length for subnet allocation from subnet pool', ) parser.add_argument( '--subnet-range', @@ -223,12 +223,11 @@ class CreateSubnet(command.ShowOne): metavar='', default='auto', help="Specify a gateway for the subnet. The three options are: " - " : Specific IP address to use as the gateway " - " 'auto': Gateway address should automatically be " - " chosen from within the subnet itself " - " 'none': This subnet will not use a gateway " - "e.g.: --gateway 192.168.9.1, --gateway auto, --gateway none" - "(default is 'auto')", + ": Specific IP address to use as the gateway, " + "'auto': Gateway address should automatically be chosen from " + "within the subnet itself, 'none': This subnet will not use " + "a gateway, e.g.: --gateway 192.168.9.1, --gateway auto, " + "--gateway none (default is 'auto')", ) parser.add_argument( '--ip-version', @@ -351,8 +350,8 @@ class SetSubnet(command.Command): '--gateway', metavar='', help="Specify a gateway for the subnet. The options are: " - " : Specific IP address to use as the gateway " - " 'none': This subnet will not use a gateway " + ": Specific IP address to use as the gateway, " + "'none': This subnet will not use a gateway, " "e.g.: --gateway 192.168.9.1, --gateway none" ) _get_common_parse_arguments(parser) -- cgit v1.2.1