summaryrefslogtreecommitdiff
path: root/openstackclient/network/v2/port.py
diff options
context:
space:
mode:
authorDean Troyer <dtroyer@gmail.com>2017-04-03 16:15:14 -0500
committerSteve Martinelli <s.martinelli@gmail.com>2017-04-04 03:56:19 +0000
commit1686dc54f09b6e77b1de3abc708c297710987a04 (patch)
tree6c02758c2006da60f634940324c607e6785b433f /openstackclient/network/v2/port.py
parentb2ceb58fc377cd9030becaa934fc4e5d13cb55b4 (diff)
downloadpython-openstackclient-1686dc54f09b6e77b1de3abc708c297710987a04.tar.gz
Help/docs cleanups: marker, limit, ip-address metavars
Cleanup help strings and docs for clarity and to keep things consistent: * --limit metavar should be <num-resource> to indicate what is being counted * --marker metavar should be <resource> or <resource-id> to indicate the type of value being specified * <*-ip-address> metavars should be just <ip-address> as there is no difference in format between fixed and floating IPs * Move all occurances of '(name or ID)' to end of help text Change-Id: I2c31746ed6ded3845244e03e57d809f8bc0e6b9d
Diffstat (limited to 'openstackclient/network/v2/port.py')
-rw-r--r--openstackclient/network/v2/port.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/openstackclient/network/v2/port.py b/openstackclient/network/v2/port.py
index f77f566d..9d598fab 100644
--- a/openstackclient/network/v2/port.py
+++ b/openstackclient/network/v2/port.py
@@ -301,7 +301,7 @@ class CreatePort(command.ShowOne):
metavar='subnet=<subnet>,ip-address=<ip-address>',
action=parseractions.MultiKeyValueAction,
optional_keys=['subnet', 'ip-address'],
- help=_("Desired IP and/or subnet (name or ID) for this port: "
+ help=_("Desired IP and/or subnet for this port (name or ID): "
"subnet=<subnet>,ip-address=<ip-address> "
"(repeat option to set multiple fixed IP addresses)")
)
@@ -496,9 +496,9 @@ class ListPort(command.Lister):
metavar='subnet=<subnet>,ip-address=<ip-address>',
action=parseractions.MultiKeyValueAction,
optional_keys=['subnet', 'ip-address'],
- help=_("Desired IP and/or subnet (name or ID) for filtering "
- "ports: subnet=<subnet>,ip-address=<ip-address> "
- "(repeat option to set multiple fixed IP addresses)")
+ help=_("Desired IP and/or subnet for filtering ports "
+ "(name or ID): subnet=<subnet>,ip-address=<ip-address> "
+ "(repeat option to set multiple fixed IP addresses)"),
)
return parser
@@ -593,7 +593,7 @@ class SetPort(command.Command):
metavar='subnet=<subnet>,ip-address=<ip-address>',
action=parseractions.MultiKeyValueAction,
optional_keys=['subnet', 'ip-address'],
- help=_("Desired IP and/or subnet (name or ID) for this port: "
+ help=_("Desired IP and/or subnet for this port (name or ID): "
"subnet=<subnet>,ip-address=<ip-address> "
"(repeat option to set multiple fixed IP addresses)")
)
@@ -757,8 +757,8 @@ class UnsetPort(command.Command):
metavar='subnet=<subnet>,ip-address=<ip-address>',
action=parseractions.MultiKeyValueAction,
optional_keys=['subnet', 'ip-address'],
- help=_("Desired IP and/or subnet (name or ID) which should be "
- "removed from this port: subnet=<subnet>,"
+ help=_("Desired IP and/or subnet which should be "
+ "removed from this port (name or ID): subnet=<subnet>,"
"ip-address=<ip-address> (repeat option to unset multiple "
"fixed IP addresses)"))