summaryrefslogtreecommitdiff
path: root/openstackclient/network/v2
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2017-04-04 12:32:55 +0000
committerGerrit Code Review <review@openstack.org>2017-04-04 12:32:55 +0000
commitc7e7f2b7303ad55befb9b42cada2bbe336a4cf0e (patch)
treeababb689784414c056107cfe808a084c5b4b7187 /openstackclient/network/v2
parent8a1f4b6592a91ed3b2cd65d6fb0217afa1cf5e8d (diff)
parent1686dc54f09b6e77b1de3abc708c297710987a04 (diff)
downloadpython-openstackclient-c7e7f2b7303ad55befb9b42cada2bbe336a4cf0e.tar.gz
Merge "Help/docs cleanups: marker, limit, ip-address metavars"
Diffstat (limited to 'openstackclient/network/v2')
-rw-r--r--openstackclient/network/v2/floating_ip.py6
-rw-r--r--openstackclient/network/v2/port.py14
-rw-r--r--openstackclient/network/v2/subnet.py4
-rw-r--r--openstackclient/network/v2/subnet_pool.py2
4 files changed, 13 insertions, 13 deletions
diff --git a/openstackclient/network/v2/floating_ip.py b/openstackclient/network/v2/floating_ip.py
index 41b208aa..ee39a299 100644
--- a/openstackclient/network/v2/floating_ip.py
+++ b/openstackclient/network/v2/floating_ip.py
@@ -162,13 +162,13 @@ class CreateFloatingIP(common.NetworkAndComputeShowOne):
)
parser.add_argument(
'--floating-ip-address',
- metavar='<floating-ip-address>',
+ metavar='<ip-address>',
dest='floating_ip_address',
help=_("Floating IP address")
)
parser.add_argument(
'--fixed-ip-address',
- metavar='<fixed-ip-address>',
+ metavar='<ip-address>',
dest='fixed_ip_address',
help=_("Fixed IP address mapped to the floating IP")
)
@@ -307,7 +307,7 @@ class ListFloatingIP(common.NetworkAndComputeLister):
)
parser.add_argument(
'--fixed-ip-address',
- metavar='<fixed-ip-address>',
+ metavar='<ip-address>',
help=_("List floating IP(s) according to "
"given fixed IP address")
)
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)"))
diff --git a/openstackclient/network/v2/subnet.py b/openstackclient/network/v2/subnet.py
index 403b4cd2..2fdd11f0 100644
--- a/openstackclient/network/v2/subnet.py
+++ b/openstackclient/network/v2/subnet.py
@@ -428,14 +428,14 @@ class ListSubnet(command.Lister):
'--project',
metavar='<project>',
help=_("List only subnets which belong to a given project "
- "(name or ID) in output")
+ "in output (name or ID)")
)
identity_common.add_project_domain_option_to_parser(parser)
parser.add_argument(
'--network',
metavar='<network>',
help=_("List only subnets which belong to a given network "
- "(name or ID) in output")
+ "in output (name or ID)")
)
parser.add_argument(
'--gateway',
diff --git a/openstackclient/network/v2/subnet_pool.py b/openstackclient/network/v2/subnet_pool.py
index 04731111..82ad9412 100644
--- a/openstackclient/network/v2/subnet_pool.py
+++ b/openstackclient/network/v2/subnet_pool.py
@@ -282,7 +282,7 @@ class ListSubnetPool(command.Lister):
'--address-scope',
metavar='<address-scope>',
help=_("List only subnet pools of given address scope "
- "(name or ID) in output")
+ "in output (name or ID)")
)
return parser