Try to make help text of network code consistent

Just change all text to be as consistent as possible.

TrivialFix

Change-Id: I959cda9b0688f0fcec0f55ce4c8cadf209d3537f
Signed-off-by: Brian Haley <haleyb.dev@gmail.com>
This commit is contained in:
Brian Haley
2025-11-18 19:36:28 -05:00
parent d6b2f42cfb
commit c17c5f0df6
23 changed files with 182 additions and 110 deletions

View File

@@ -151,13 +151,14 @@ class ListAddressGroup(command.Lister):
parser.add_argument(
'--name',
metavar='<name>',
help=_("List only address groups of given name in output"),
help=_("List only address groups with the specified name"),
)
parser.add_argument(
'--project',
metavar="<project>",
help=_(
"List address groups according to their project (name or ID)"
"List only address groups with the specified project "
"(name or ID)"
),
)
identity_common.add_project_domain_option_to_parser(parser)

View File

@@ -160,7 +160,7 @@ class ListAddressScope(command.Lister):
parser.add_argument(
'--name',
metavar='<name>',
help=_("List only address scopes of given name in output"),
help=_("List only address scopes with the specified name"),
)
parser.add_argument(
'--ip-version',
@@ -169,14 +169,16 @@ class ListAddressScope(command.Lister):
metavar='<ip-version>',
dest='ip_version',
help=_(
"List address scopes of given IP version networks (4 or 6)"
"List only address scopes with the specified IP version "
"networks (4 or 6)"
),
)
parser.add_argument(
'--project',
metavar="<project>",
help=_(
"List address scopes according to their project (name or ID)"
"List only address scopes with the specified project "
"(name or ID)"
),
)
identity_common.add_project_domain_option_to_parser(parser)
@@ -185,12 +187,12 @@ class ListAddressScope(command.Lister):
shared_group.add_argument(
'--share',
action='store_true',
help=_("List address scopes shared between projects"),
help=_("List only address scopes shared between projects"),
)
shared_group.add_argument(
'--no-share',
action='store_true',
help=_("List address scopes not shared between projects"),
help=_("List only address scopes not shared between projects"),
)
return parser

View File

@@ -300,7 +300,8 @@ class ListDefaultSecurityGroupRule(command.Lister):
metavar='<protocol>',
type=network_utils.convert_to_lowercase,
help=_(
"List rules by the IP protocol (ah, dhcp, egp, esp, gre, "
"List only default rules with the specified IP protocol "
"(ah, dhcp, egp, esp, gre, "
"icmp, igmp, ipv6-encap, ipv6-frag, ipv6-icmp, "
"ipv6-nonxt, ipv6-opts, ipv6-route, ospf, pgm, rsvp, "
"sctp, tcp, udp, udplite, vrrp and integer "
@@ -319,7 +320,7 @@ class ListDefaultSecurityGroupRule(command.Lister):
'--ingress',
action='store_true',
help=_(
"List default rules which will be applied to incoming "
"List only default rules which will be applied to incoming "
"network traffic"
),
)
@@ -327,7 +328,7 @@ class ListDefaultSecurityGroupRule(command.Lister):
'--egress',
action='store_true',
help=_(
"List default rules which will be applied to outgoing "
"List only default rules which will be applied to outgoing "
"network traffic"
),
)

View File

@@ -247,7 +247,7 @@ class ListFloatingIP(common.NetworkAndComputeLister):
action='append',
help=self.enhance_help_neutron(
_(
"List floating IP(s) according to given network "
"List only floating IP(s) with the specified network "
"(name or ID) "
"(repeat option to fiter on multiple networks)"
)
@@ -260,7 +260,8 @@ class ListFloatingIP(common.NetworkAndComputeLister):
action='append',
help=self.enhance_help_neutron(
_(
"List floating IP(s) according to given port (name or ID) "
"List only floating IP(s) with the specified port "
"(name or ID) "
"(repeat option to fiter on multiple ports)"
)
),
@@ -269,14 +270,20 @@ class ListFloatingIP(common.NetworkAndComputeLister):
'--fixed-ip-address',
metavar='<ip-address>',
help=self.enhance_help_neutron(
_("List floating IP(s) according to given fixed IP address")
_(
"List only floating IP(s) with the specified fixed IP "
"address"
)
),
)
parser.add_argument(
'--floating-ip-address',
metavar='<ip-address>',
help=self.enhance_help_neutron(
_("List floating IP(s) according to given floating IP address")
_(
"List only floating IP(s) with the specified floating IP "
"address"
)
),
)
parser.add_argument(
@@ -285,8 +292,8 @@ class ListFloatingIP(common.NetworkAndComputeLister):
choices=['ACTIVE', 'DOWN'],
help=self.enhance_help_neutron(
_(
"List floating IP(s) according to given status ('ACTIVE', "
"'DOWN')"
"List only floating IP(s) with the specified status "
"('ACTIVE', 'DOWN')"
)
),
)
@@ -295,8 +302,8 @@ class ListFloatingIP(common.NetworkAndComputeLister):
metavar='<project>',
help=self.enhance_help_neutron(
_(
"List floating IP(s) according to given project "
"(name or ID) "
"List only floating IP(s) with the specified project "
"(name or ID)"
)
),
)
@@ -308,7 +315,7 @@ class ListFloatingIP(common.NetworkAndComputeLister):
action='append',
help=self.enhance_help_neutron(
_(
"List floating IP(s) according to given router "
"List only floating IP(s) with the specified router "
"(name or ID) "
"(repeat option to fiter on multiple routers)"
)

View File

@@ -265,8 +265,8 @@ class ListFloatingIPPortForwarding(command.Lister):
'--port',
metavar='<port>',
help=_(
"Filter the list result by the ID or name of "
"the internal network port"
"List only floating IP port forwardings with the "
"specified internal network port (name or ID)"
),
)
parser.add_argument(
@@ -274,14 +274,17 @@ class ListFloatingIPPortForwarding(command.Lister):
metavar='<port-number>',
dest='external_protocol_port',
help=_(
"Filter the list result by the "
"protocol port number of the floating IP"
"List only floating IP port forwardings with the "
"specified external protocol port number"
),
)
parser.add_argument(
'--protocol',
metavar='<protocol>',
help=_("Filter the list result by the port protocol"),
help=_(
"List only floating IP port forwardings with the "
"specified protocol number"
),
)
return parser

View File

@@ -47,14 +47,17 @@ class ListIPAvailability(command.Lister):
metavar='<ip-version>',
dest='ip_version',
help=_(
"List IP availability of given IP version "
"networks (default is 4)"
"List only IP availability with the specified IP version "
"networks (4 or 6, default is 4)"
),
)
parser.add_argument(
'--project',
metavar='<project>',
help=_("List IP availability of given project (name or ID)"),
help=_(
"List only IP availability with the specified project "
"(name or ID)"
),
)
identity_common.add_project_domain_option_to_parser(parser)
return parser

View File

@@ -150,19 +150,26 @@ class ListConntrackHelper(command.Lister):
parser.add_argument(
'--helper',
metavar='<helper>',
help=_('The netfilter conntrack helper module'),
help=_(
'List only helpers using the specified netfilter conntrack '
'helper module'
),
)
parser.add_argument(
'--protocol',
metavar='<protocol>',
help=_(
'The network protocol for the netfilter conntrack target rule'
'List only helpers with the specified network protocol for '
'the netfilter conntrack target rule'
),
)
parser.add_argument(
'--port',
metavar='<port>',
help=_('The network port for the netfilter conntrack target rule'),
help=_(
'List only helpers with the specified network port for '
'the netfilter conntrack target rule (name or ID)'
),
)
return parser

View File

@@ -198,32 +198,38 @@ class ListLocalIP(command.Lister):
parser.add_argument(
'--name',
metavar='<name>',
help=_("List only Local IPs of given name in output"),
help=_("List only local IP(s) with the specified name"),
)
parser.add_argument(
'--project',
metavar="<project>",
help=_("List Local IPs according to their project (name or ID)"),
help=_(
"List only local IP(s) with the specified project (name or ID)"
),
)
parser.add_argument(
'--network',
metavar='<network>',
help=_("List Local IP(s) according to given network (name or ID)"),
help=_(
"List only local IP(s) with the specified network (name or ID)"
),
)
parser.add_argument(
'--local-port',
metavar='<local-port>',
help=_("List Local IP(s) according to given port (name or ID)"),
help=_(
"List only local IP(s) with the specified port (name or ID)"
),
)
parser.add_argument(
'--local-ip-address',
metavar='<local-ip-address>',
help=_("List Local IP(s) according to given Local IP Address"),
help=_("List only local IP(s) with the specified IP address"),
)
parser.add_argument(
'--ip-mode',
metavar='<ip_mode>',
help=_("List Local IP(s) according to given IP mode"),
help=_("List only local IP(s) with the specified IP mode"),
)
identity_common.add_project_domain_option_to_parser(parser)

View File

@@ -150,18 +150,21 @@ class ListLocalIPAssociation(command.Lister):
'--fixed-port',
metavar='<fixed-port>',
help=_(
"Filter the list result by the ID or name of the fixed port"
"List only local IP assocations with the specified fixed IP "
"port (name or ID)"
),
)
parser.add_argument(
'--fixed-ip',
metavar='<fixed-ip>',
help=_("Filter the list result by fixed ip"),
help=_(
"List only local IP associations with the specified fixed IP"
),
)
parser.add_argument(
'--host',
metavar='<host>',
help=_("Filter the list result by given host"),
help=_("List only local IP associations with the specified host"),
)
identity_common.add_project_domain_option_to_parser(parser)

View File

@@ -143,30 +143,37 @@ class ListNDPProxy(command.Lister):
'--router',
metavar='<router>',
help=_(
"List only NDP proxies belonging to this router (name or ID)"
"List only NDP proxies associated with the specifed router "
"(name or ID)"
),
)
parser.add_argument(
'--port',
metavar='<port>',
help=_(
"List only NDP proxies associated to this port (name or ID)"
"List only NDP proxies associated with the specified port "
"(name or ID)"
),
)
parser.add_argument(
'--ip-address',
metavar='<ip-address>',
help=_("List only NDP proxies associated to this IPv6 address"),
help=_(
"List only NDP proxies associated with the specified "
"IPv6 address"
),
)
parser.add_argument(
'--project',
metavar='<project>',
help=_("List only NDP proxies of given project (name or ID)"),
help=_(
"List only NDP proxies with the specified project (name or ID)"
),
)
parser.add_argument(
'--name',
metavar='<name>',
help=_("List only NDP proxies of given name"),
help=_("List only NDP proxies with the specified name"),
)
identity_common.add_project_domain_option_to_parser(parser)

View File

@@ -469,12 +469,12 @@ class ListNetwork(common.NetworkAndComputeLister):
router_ext_group.add_argument(
'--external',
action='store_true',
help=self.enhance_help_neutron(_("List external networks")),
help=self.enhance_help_neutron(_("List only external networks")),
)
router_ext_group.add_argument(
'--internal',
action='store_true',
help=self.enhance_help_neutron(_("List internal networks")),
help=self.enhance_help_neutron(_("List only internal networks")),
)
parser.add_argument(
'--long',
@@ -487,24 +487,26 @@ class ListNetwork(common.NetworkAndComputeLister):
'--name',
metavar='<name>',
help=self.enhance_help_neutron(
_("List networks according to their name")
_("List only networks with the specified name")
),
)
admin_state_group = parser.add_mutually_exclusive_group()
admin_state_group.add_argument(
'--enable',
action='store_true',
help=self.enhance_help_neutron(_("List enabled networks")),
help=self.enhance_help_neutron(_("List only enabled networks")),
)
admin_state_group.add_argument(
'--disable',
action='store_true',
help=self.enhance_help_neutron(_("List disabled networks")),
help=self.enhance_help_neutron(_("List only disabled networks")),
)
parser.add_argument(
'--project',
metavar='<project>',
help=_("List networks according to their project (name or ID)"),
help=_(
"List only networks with the specified project (name or ID)"
),
)
identity_common.add_project_domain_option_to_parser(
parser, enhance_help=self.enhance_help_neutron
@@ -514,14 +516,14 @@ class ListNetwork(common.NetworkAndComputeLister):
'--share',
action='store_true',
help=self.enhance_help_neutron(
_("List networks shared between projects")
_("List only networks shared between projects")
),
)
shared_group.add_argument(
'--no-share',
action='store_true',
help=self.enhance_help_neutron(
_("List networks not shared between projects")
_("List only networks not shared between projects")
),
)
parser.add_argument(
@@ -530,7 +532,7 @@ class ListNetwork(common.NetworkAndComputeLister):
choices=['ACTIVE', 'BUILD', 'DOWN', 'ERROR'],
help=self.enhance_help_neutron(
_(
"List networks according to their status "
"List only networks with the specified status "
"('ACTIVE', 'BUILD', 'DOWN', 'ERROR')"
)
),
@@ -541,7 +543,8 @@ class ListNetwork(common.NetworkAndComputeLister):
choices=['flat', 'geneve', 'gre', 'local', 'vlan', 'vxlan'],
help=self.enhance_help_neutron(
_(
"List networks according to their physical mechanisms. "
"List only networks with the specified physical "
"mechanisms. "
"The supported options are: flat, geneve, gre, local, "
"vlan and vxlan."
)
@@ -552,7 +555,10 @@ class ListNetwork(common.NetworkAndComputeLister):
metavar='<provider-physical-network>',
dest='physical_network',
help=self.enhance_help_neutron(
_("List networks according to name of the physical network")
_(
"List only networks with the specified physical network "
"name"
)
),
)
parser.add_argument(
@@ -561,8 +567,9 @@ class ListNetwork(common.NetworkAndComputeLister):
dest='segmentation_id',
help=self.enhance_help_neutron(
_(
"List networks according to VLAN ID for VLAN networks or "
"Tunnel ID for GENEVE/GRE/VXLAN networks"
"List only networks with the specified provider segment "
"ID (VLAN ID for VLAN networks or "
"Tunnel ID for GENEVE/GRE/VXLAN networks)"
)
),
)
@@ -571,7 +578,7 @@ class ListNetwork(common.NetworkAndComputeLister):
metavar='<agent-id>',
dest='agent_id',
help=self.enhance_help_neutron(
_('List networks hosted by agent (ID only)')
_('List only networks hosted the specified agent (ID only)')
),
)
_tag.add_tag_filtering_option_to_parser(

View File

@@ -205,12 +205,12 @@ class ListNetworkAgent(command.Lister):
agent_type_group.add_argument(
'--network',
metavar='<network>',
help=_('List agents hosting a network (name or ID)'),
help=_('List agents hosting the specified network (name or ID)'),
)
agent_type_group.add_argument(
'--router',
metavar='<router>',
help=_('List agents hosting this router (name or ID)'),
help=_('List agents hosting the specified router (name or ID)'),
)
parser.add_argument(
'--long',

View File

@@ -190,7 +190,8 @@ class ListNetworkQosPolicy(command.Lister):
'--project',
metavar='<project>',
help=_(
"List QoS policies according to their project (name or ID)"
"List only QoS policies with the specified project "
"(name or ID)"
),
)
identity_common.add_project_domain_option_to_parser(parser)
@@ -198,12 +199,12 @@ class ListNetworkQosPolicy(command.Lister):
shared_group.add_argument(
'--share',
action='store_true',
help=_("List QoS policies shared between projects"),
help=_("List only QoS policies shared between projects"),
)
shared_group.add_argument(
'--no-share',
action='store_true',
help=_("List QoS policies not shared between projects"),
help=_("List only QoS policies not shared between projects"),
)
return parser

View File

@@ -234,8 +234,8 @@ class ListNetworkRBAC(command.Lister):
'network',
],
help=_(
'List network RBAC policies according to '
'given object type ("address_group", "address_scope", '
'List only network RBAC policies with the specified '
'object type ("address_group", "address_scope", '
'"security_group", "subnetpool", "qos_policy" or '
'"network")'
),
@@ -245,14 +245,17 @@ class ListNetworkRBAC(command.Lister):
metavar='<action>',
choices=['access_as_external', 'access_as_shared'],
help=_(
'List network RBAC policies according to given '
'List only network RBAC policies with the specified '
'action ("access_as_external" or "access_as_shared")'
),
)
parser.add_argument(
'--target-project',
metavar='<target-project>',
help=_('List network RBAC policies for a specific target project'),
help=_(
'List only network RBAC policies with the specified '
'target project (name or ID)'
),
)
parser.add_argument(
'--long',

View File

@@ -160,7 +160,7 @@ class ListNetworkSegment(command.Lister):
'--network',
metavar='<network>',
help=_(
'List network segments that belong to this '
'List only network segments associated with the specified '
'network (name or ID)'
),
)

View File

@@ -315,25 +315,32 @@ class ListNetworkSegmentRange(command.Lister):
used_group.add_argument(
'--used',
action='store_true',
help=_('List network segment ranges that have segments in use'),
help=_(
'List only network segment ranges that have segments in use'
),
)
used_group.add_argument(
'--unused',
action='store_true',
help=_(
'List network segment ranges that have segments not in use'
'List only network segment ranges that have segments '
'not in use'
),
)
available_group = parser.add_mutually_exclusive_group()
available_group.add_argument(
'--available',
action='store_true',
help=_('List network segment ranges that have available segments'),
help=_(
'List only network segment ranges that have available segments'
),
)
available_group.add_argument(
'--unavailable',
action='store_true',
help=_('List network segment ranges without available segments'),
help=_(
'List only network segment ranges without available segments'
),
)
return parser

View File

@@ -285,7 +285,7 @@ class ListNetworkSubport(command.Lister):
'--trunk',
required=True,
metavar="<trunk>",
help=_("List subports belonging to this trunk (name or ID)"),
help=_("List only subports belonging to this trunk (name or ID)"),
)
return parser

View File

@@ -810,7 +810,7 @@ class ListPort(command.Lister):
parser.add_argument(
'--mac-address',
metavar='<mac-address>',
help=_("List only ports with this MAC address"),
help=_("List only ports with the specified MAC address"),
)
parser.add_argument(
'--long',
@@ -821,12 +821,12 @@ class ListPort(command.Lister):
parser.add_argument(
'--project',
metavar='<project>',
help=_("List ports according to their project (name or ID)"),
help=_("List only ports with the specified project (name or ID)"),
)
parser.add_argument(
'--name',
metavar='<name>',
help=_("List ports according to their name"),
help=_("List only ports with the specified name"),
)
parser.add_argument(
'--security-group',
@@ -844,7 +844,7 @@ class ListPort(command.Lister):
metavar='<status>',
choices=('ACTIVE', 'BUILD', 'DOWN', 'ERROR'),
help=_(
"List ports according to their status "
"List only ports with the specified status "
"('ACTIVE', 'BUILD', 'DOWN', 'ERROR')"
),
)
@@ -861,7 +861,7 @@ class ListPort(command.Lister):
"Desired IP and/or subnet for filtering ports "
"(name or ID): subnet=<subnet>,ip-address=<ip-address>,"
"ip-substring=<ip-substring> "
"(repeat option to set multiple fixed IP addresses)"
"(repeat option to filter multiple fixed IP addresses)"
),
)
_tag.add_tag_filtering_option_to_parser(parser, _('ports'))

View File

@@ -726,13 +726,17 @@ class ListRouter(command.Lister):
parser.add_argument(
'--project',
metavar='<project>',
help=_("List routers according to their project (name or ID)"),
help=_(
"List only routers with the specified project (name or ID)"
),
)
identity_common.add_project_domain_option_to_parser(parser)
parser.add_argument(
'--agent',
metavar='<agent-id>',
help=_("List routers hosted by an agent (ID only)"),
help=_(
"List only routers hosted by the specified agent (ID only)"
),
)
_tag.add_tag_filtering_option_to_parser(parser, _('routers'))

View File

@@ -246,7 +246,10 @@ class ListSecurityGroup(common.NetworkAndComputeLister):
'--project',
metavar='<project>',
help=self.enhance_help_neutron(
_("List security groups according to the project (name or ID)")
_(
"List only security groups with the specified project "
"(name or ID)"
)
),
)
identity_common.add_project_domain_option_to_parser(
@@ -259,14 +262,14 @@ class ListSecurityGroup(common.NetworkAndComputeLister):
action='store_true',
dest='shared',
default=None,
help=_("List security groups shared between projects"),
help=_("List only security groups shared between projects"),
)
shared_group.add_argument(
'--no-share',
action='store_false',
dest='shared',
default=None,
help=_("List security groups not shared between projects"),
help=_("List only security groups not shared between projects"),
)
_tag.add_tag_filtering_option_to_parser(

View File

@@ -387,7 +387,8 @@ class ListSecurityGroupRule(common.NetworkAndComputeLister):
type=network_utils.convert_to_lowercase,
help=self.enhance_help_neutron(
_(
"List rules by the IP protocol (ah, dhcp, egp, esp, gre, "
"List only rules with the specified IP protocol "
"(ah, dhcp, egp, esp, gre, "
"icmp, igmp, ipv6-encap, ipv6-frag, ipv6-icmp, "
"ipv6-nonxt, ipv6-opts, ipv6-route, ospf, pgm, rsvp, "
"sctp, tcp, udp, udplite, vrrp and integer "
@@ -401,7 +402,10 @@ class ListSecurityGroupRule(common.NetworkAndComputeLister):
metavar='<ethertype>',
type=network_utils.convert_to_lowercase,
help=self.enhance_help_neutron(
_("List rules by the Ethertype (IPv4 or IPv6)")
_(
"List only rules with the specified Ethertype "
"(IPv4 or IPv6)"
)
),
)
direction_group = parser.add_mutually_exclusive_group()
@@ -409,14 +413,14 @@ class ListSecurityGroupRule(common.NetworkAndComputeLister):
'--ingress',
action='store_true',
help=self.enhance_help_neutron(
_("List rules applied to incoming network traffic")
_("List only rules applied to incoming network traffic")
),
)
direction_group.add_argument(
'--egress',
action='store_true',
help=self.enhance_help_neutron(
_("List rules applied to outgoing network traffic")
_("List only rules applied to outgoing network traffic")
),
)
parser.add_argument(
@@ -430,7 +434,9 @@ class ListSecurityGroupRule(common.NetworkAndComputeLister):
parser.add_argument(
'--project',
metavar='<project>',
help=self.enhance_help_neutron(_("Owner's project (name or ID)")),
help=self.enhance_help_neutron(
_("List only rules with the specified project (name or ID)")
),
)
identity_common.add_project_domain_option_to_parser(
parser, enhance_help=self.enhance_help_neutron

View File

@@ -493,7 +493,7 @@ class ListSubnet(command.Lister):
metavar='<ip-version>',
dest='ip_version',
help=_(
"List only subnets of given IP version in output. "
"List only subnets with the specified IP version. "
"Allowed values for IP version are 4 and 6."
),
)
@@ -501,12 +501,12 @@ class ListSubnet(command.Lister):
dhcp_enable_group.add_argument(
'--dhcp',
action='store_true',
help=_("List subnets which have DHCP enabled"),
help=_("List only subnets which have DHCP enabled"),
)
dhcp_enable_group.add_argument(
'--no-dhcp',
action='store_true',
help=_("List subnets which have DHCP disabled"),
help=_("List only subnets which have DHCP disabled"),
)
parser.add_argument(
'--service-type',
@@ -514,7 +514,7 @@ class ListSubnet(command.Lister):
action='append',
dest='service_types',
help=_(
"List only subnets of a given service type in output, "
"List only subnets with the specified service type, "
"for example, network:floatingip_agent_gateway. "
"Must be a valid device owner value for a network port "
"(repeat option to list multiple service types)."
@@ -524,8 +524,7 @@ class ListSubnet(command.Lister):
'--project',
metavar='<project>',
help=_(
"List only subnets which belong to a given project "
"in output (name or ID)"
"List only subnets with the specified project (name or ID)"
),
)
identity_common.add_project_domain_option_to_parser(parser)
@@ -533,26 +532,26 @@ class ListSubnet(command.Lister):
'--network',
metavar='<network>',
help=_(
"List only subnets which belong to a given network "
"in output (name or ID)"
"List only subnets which belong to the specified network "
"(name or ID)"
),
)
parser.add_argument(
'--gateway',
metavar='<gateway>',
help=_("List only subnets of given gateway IP in output"),
help=_("List only subnets with the specified gateway IP"),
)
parser.add_argument(
'--name',
metavar='<name>',
help=_("List only subnets of given name in output"),
help=_("List only subnets with the specified name"),
)
parser.add_argument(
'--subnet-range',
metavar='<subnet-range>',
help=_(
"List only subnets of given subnet range "
"(in CIDR notation) in output. "
"List only subnets with the specified subnet range "
"(in CIDR notation). "
"For example, --subnet-range 10.10.0.0/16"
),
)
@@ -560,8 +559,8 @@ class ListSubnet(command.Lister):
'--subnet-pool',
metavar='<subnet-pool>',
help=_(
"List only subnets which belong to a given subnet pool "
"in output (name or ID)"
"List only subnets which belong to the specified subnet pool "
"(name or ID)"
),
)
_tag.add_tag_filtering_option_to_parser(parser, _('subnets'))

View File

@@ -278,26 +278,27 @@ class ListSubnetPool(command.Lister):
shared_group.add_argument(
'--share',
action='store_true',
help=_("List subnet pools shared between projects"),
help=_("List only subnet pools shared between projects"),
)
shared_group.add_argument(
'--no-share',
action='store_true',
help=_("List subnet pools not shared between projects"),
help=_("List only subnet pools not shared between projects"),
)
default_group = parser.add_mutually_exclusive_group()
default_group.add_argument(
'--default',
action='store_true',
help=_(
"List subnet pools used as the default external subnet pool"
"List only subnet pools used as the default external "
"subnet pool"
),
)
default_group.add_argument(
'--no-default',
action='store_true',
help=_(
"List subnet pools not used as the default external "
"List only subnet pools not used as the default external "
"subnet pool"
),
)
@@ -305,21 +306,22 @@ class ListSubnetPool(command.Lister):
'--project',
metavar='<project>',
help=_(
"List subnet pools according to their project (name or ID)"
"List only subnet pools with the specified project "
"(name or ID)"
),
)
identity_common.add_project_domain_option_to_parser(parser)
parser.add_argument(
'--name',
metavar='<name>',
help=_("List only subnet pools of given name in output"),
help=_("List only subnet pools with the specified name"),
)
parser.add_argument(
'--address-scope',
metavar='<address-scope>',
help=_(
"List only subnet pools of given address scope "
"in output (name or ID)"
"List only subnet pools with the specified address scope "
"(name or ID)"
),
)
_tag.add_tag_filtering_option_to_parser(parser, _('subnet pools'))