summaryrefslogtreecommitdiff
path: root/openstackclient
diff options
context:
space:
mode:
authorRichard Theis <rtheis@us.ibm.com>2016-04-01 16:16:08 -0500
committerRichard Theis <rtheis@us.ibm.com>2016-04-08 08:00:17 -0500
commit6b76860c451251fd3c95e1e0e1af12c560bf4043 (patch)
treee3aa3a425ca064c6aeee725d59f1a79190151957 /openstackclient
parent9f2e7039e1ac631a4e83fe96d945e9e220db9ad8 (diff)
downloadpython-openstackclient-6b76860c451251fd3c95e1e0e1af12c560bf4043.tar.gz
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
Diffstat (limited to 'openstackclient')
-rw-r--r--openstackclient/network/v2/subnet.py17
1 files changed, 8 insertions, 9 deletions
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='<prefix-length>',
- 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='<gateway>',
default='auto',
help="Specify a gateway for the subnet. The three options are: "
- " <ip-address>: 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')",
+ "<ip-address>: 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='<gateway>',
help="Specify a gateway for the subnet. The options are: "
- " <ip-address>: Specific IP address to use as the gateway "
- " 'none': This subnet will not use a gateway "
+ "<ip-address>: 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)