Merge "Fix metavars and typos in local_ip"
This commit is contained in:
@@ -87,17 +87,17 @@ class CreateLocalIP(command.ShowOne):
|
|||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--local-port',
|
'--local-port',
|
||||||
metavar='<local_port>',
|
metavar='<local-port>',
|
||||||
help=_("Port to allocate Local IP (name or ID)")
|
help=_("Port to allocate Local IP (name or ID)")
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"--local-ip-address",
|
"--local-ip-address",
|
||||||
metavar="<local_ip_address>",
|
metavar="<local-ip-address>",
|
||||||
help=_("IP address or CIDR "),
|
help=_("IP address or CIDR "),
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--ip-mode',
|
'--ip-mode',
|
||||||
metavar='<ip_mode>',
|
metavar='<ip-mode>',
|
||||||
help=_("local IP ip mode")
|
help=_("local IP ip mode")
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -212,13 +212,13 @@ class ListLocalIP(command.Lister):
|
|||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--local-port',
|
'--local-port',
|
||||||
metavar='<local_port>',
|
metavar='<local-port>',
|
||||||
help=_("List Local IP(s) according to "
|
help=_("List Local IP(s) according to "
|
||||||
"given port (name or ID)")
|
"given port (name or ID)")
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--local-ip-address',
|
'--local-ip-address',
|
||||||
metavar='<local_ip_address>',
|
metavar='<local-ip-address>',
|
||||||
help=_("List Local IP(s) according to "
|
help=_("List Local IP(s) according to "
|
||||||
"given Local IP Address")
|
"given Local IP Address")
|
||||||
)
|
)
|
||||||
|
@@ -43,16 +43,16 @@ class CreateLocalIPAssociation(command.ShowOne):
|
|||||||
'local_ip',
|
'local_ip',
|
||||||
metavar='<local-ip>',
|
metavar='<local-ip>',
|
||||||
help=_("Local IP that the port association belongs to "
|
help=_("Local IP that the port association belongs to "
|
||||||
"(IP address or ID)")
|
"(Name or ID)")
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'fixed_port',
|
'fixed_port',
|
||||||
metavar='<fixed_port>',
|
metavar='<fixed-port>',
|
||||||
help=_("The ID or Name of Port to allocate Local IP Association")
|
help=_("The ID or Name of Port to allocate Local IP Association")
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--fixed-ip',
|
'--fixed-ip',
|
||||||
metavar='<fixed_ip>',
|
metavar='<fixed-ip>',
|
||||||
help=_("Fixed IP for Local IP Association")
|
help=_("Fixed IP for Local IP Association")
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -87,14 +87,14 @@ class DeleteLocalIPAssociation(command.Command):
|
|||||||
parser = super().get_parser(prog_name)
|
parser = super().get_parser(prog_name)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'local_ip',
|
'local_ip',
|
||||||
metavar="<local_ip>",
|
metavar="<local-ip>",
|
||||||
help=_("Local IP that the port association belongs to "
|
help=_("Local IP that the port association belongs to "
|
||||||
"(IP address or ID)")
|
"(Name or ID)")
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'fixed_port_id',
|
'fixed_port_id',
|
||||||
nargs="+",
|
nargs="+",
|
||||||
metavar="<fixed_port_id>",
|
metavar="<fixed-port-id>",
|
||||||
help=_("The fixed port ID of Local IP Association")
|
help=_("The fixed port ID of Local IP Association")
|
||||||
)
|
)
|
||||||
return parser
|
return parser
|
||||||
@@ -136,18 +136,18 @@ class ListLocalIPAssociation(command.Lister):
|
|||||||
|
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'local_ip',
|
'local_ip',
|
||||||
metavar='<local_ip>',
|
metavar='<local-ip>',
|
||||||
help=_("Local IP that port associations belongs to")
|
help=_("Local IP that port associations belongs to")
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--fixed-port',
|
'--fixed-port',
|
||||||
metavar='<fixed_port>',
|
metavar='<fixed-port>',
|
||||||
help=_("Filter the list result by the ID or name of "
|
help=_("Filter the list result by the ID or name of "
|
||||||
"the fixed port")
|
"the fixed port")
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--fixed-ip',
|
'--fixed-ip',
|
||||||
metavar='<fixed_ip>',
|
metavar='<fixed-ip>',
|
||||||
help=_("Filter the list result by fixed ip")
|
help=_("Filter the list result by fixed ip")
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
|
@@ -2142,7 +2142,7 @@ def create_local_ip_associations(attrs=None, count=2):
|
|||||||
:param Dictionary attrs:
|
:param Dictionary attrs:
|
||||||
A dictionary with all attributes
|
A dictionary with all attributes
|
||||||
:param int count:
|
:param int count:
|
||||||
The number of address groups to fake
|
The number of local ip associations to fake
|
||||||
:return:
|
:return:
|
||||||
A list of FakeResource objects faking the local ip associations
|
A list of FakeResource objects faking the local ip associations
|
||||||
"""
|
"""
|
||||||
|
Reference in New Issue
Block a user