Fix label of allowed-address-pair ip_address
CLI reference is still generated from neutron CLI. It looks better to fix the output of CLI. Change-Id: Icf676730b53044fa0a14c4101eb52a792ea4cc4f Closes-Bug: #1669974
This commit is contained in:
parent
6b429b3278
commit
5c7812f178
@ -195,7 +195,7 @@ class UpdatePortAllowedAddressPair(object):
|
|||||||
group_aap = parser.add_mutually_exclusive_group()
|
group_aap = parser.add_mutually_exclusive_group()
|
||||||
group_aap.add_argument(
|
group_aap.add_argument(
|
||||||
'--allowed-address-pair',
|
'--allowed-address-pair',
|
||||||
metavar='ip_address=IP_ADDR[,mac_address=MAC_ADDR]',
|
metavar='ip_address=IP_ADDR|CIDR[,mac_address=MAC_ADDR]',
|
||||||
default=[],
|
default=[],
|
||||||
action='append',
|
action='append',
|
||||||
dest='allowed_address_pairs',
|
dest='allowed_address_pairs',
|
||||||
@ -203,6 +203,9 @@ class UpdatePortAllowedAddressPair(object):
|
|||||||
required_keys=['ip_address'],
|
required_keys=['ip_address'],
|
||||||
optional_keys=['mac_address']),
|
optional_keys=['mac_address']),
|
||||||
help=_('Allowed address pair associated with the port. '
|
help=_('Allowed address pair associated with the port. '
|
||||||
|
'"ip_address" parameter is required. IP address or '
|
||||||
|
'CIDR can be specified for "ip_address". '
|
||||||
|
'"mac_address" parameter is optional. '
|
||||||
'You can repeat this option.'))
|
'You can repeat this option.'))
|
||||||
group_aap.add_argument(
|
group_aap.add_argument(
|
||||||
'--no-allowed-address-pairs',
|
'--no-allowed-address-pairs',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user