From 3e61824d4a05e395f9ed5974321fc14b8b1944d2 Mon Sep 17 00:00:00 2001 From: Nurmatov Mamatisa Date: Tue, 22 Feb 2022 12:51:08 +0300 Subject: [PATCH] Fix metavars and typos in local_ip Change-Id: I2094f343e3353da25f9c5057ea5444345e271665 --- openstackclient/network/v2/local_ip.py | 10 +++++----- .../network/v2/local_ip_association.py | 18 +++++++++--------- openstackclient/tests/unit/network/v2/fakes.py | 2 +- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/openstackclient/network/v2/local_ip.py b/openstackclient/network/v2/local_ip.py index 109f64cf5..08735553f 100644 --- a/openstackclient/network/v2/local_ip.py +++ b/openstackclient/network/v2/local_ip.py @@ -87,17 +87,17 @@ class CreateLocalIP(command.ShowOne): ) parser.add_argument( '--local-port', - metavar='', + metavar='', help=_("Port to allocate Local IP (name or ID)") ) parser.add_argument( "--local-ip-address", - metavar="", + metavar="", help=_("IP address or CIDR "), ) parser.add_argument( '--ip-mode', - metavar='', + metavar='', help=_("local IP ip mode") ) @@ -212,13 +212,13 @@ class ListLocalIP(command.Lister): ) parser.add_argument( '--local-port', - metavar='', + metavar='', help=_("List Local IP(s) according to " "given port (name or ID)") ) parser.add_argument( '--local-ip-address', - metavar='', + metavar='', help=_("List Local IP(s) according to " "given Local IP Address") ) diff --git a/openstackclient/network/v2/local_ip_association.py b/openstackclient/network/v2/local_ip_association.py index aa0747c55..9e123f054 100644 --- a/openstackclient/network/v2/local_ip_association.py +++ b/openstackclient/network/v2/local_ip_association.py @@ -43,16 +43,16 @@ class CreateLocalIPAssociation(command.ShowOne): 'local_ip', metavar='', help=_("Local IP that the port association belongs to " - "(IP address or ID)") + "(Name or ID)") ) parser.add_argument( 'fixed_port', - metavar='', + metavar='', help=_("The ID or Name of Port to allocate Local IP Association") ) parser.add_argument( '--fixed-ip', - metavar='', + metavar='', help=_("Fixed IP for Local IP Association") ) @@ -87,14 +87,14 @@ class DeleteLocalIPAssociation(command.Command): parser = super().get_parser(prog_name) parser.add_argument( 'local_ip', - metavar="", + metavar="", help=_("Local IP that the port association belongs to " - "(IP address or ID)") + "(Name or ID)") ) parser.add_argument( 'fixed_port_id', nargs="+", - metavar="", + metavar="", help=_("The fixed port ID of Local IP Association") ) return parser @@ -136,18 +136,18 @@ class ListLocalIPAssociation(command.Lister): parser.add_argument( 'local_ip', - metavar='', + metavar='', help=_("Local IP that port associations belongs to") ) parser.add_argument( '--fixed-port', - metavar='', + metavar='', help=_("Filter the list result by the ID or name of " "the fixed port") ) parser.add_argument( '--fixed-ip', - metavar='', + metavar='', help=_("Filter the list result by fixed ip") ) parser.add_argument( diff --git a/openstackclient/tests/unit/network/v2/fakes.py b/openstackclient/tests/unit/network/v2/fakes.py index 2f839d160..a37642b17 100644 --- a/openstackclient/tests/unit/network/v2/fakes.py +++ b/openstackclient/tests/unit/network/v2/fakes.py @@ -2142,7 +2142,7 @@ def create_local_ip_associations(attrs=None, count=2): :param Dictionary attrs: A dictionary with all attributes :param int count: - The number of address groups to fake + The number of local ip associations to fake :return: A list of FakeResource objects faking the local ip associations """