Merge "Add the bgp agent type to network agent command"

This commit is contained in:
Jenkins 2017-03-16 08:58:49 +00:00 committed by Gerrit Code Review
commit b6f51cdfa0
1 changed files with 5 additions and 3 deletions

View File

@ -89,10 +89,11 @@ class ListNetworkAgent(command.Lister):
parser.add_argument(
'--agent-type',
metavar='<agent-type>',
choices=["dhcp", "open-vswitch", "linux-bridge", "ofa", "l3",
"loadbalancer", "metering", "metadata", "macvtap", "nic"],
choices=["bgp", "dhcp", "open-vswitch", "linux-bridge", "ofa",
"l3", "loadbalancer", "metering", "metadata", "macvtap",
"nic"],
help=_("List only agents with the specified agent type. "
"The supported agent types are: dhcp, open-vswitch, "
"The supported agent types are: bgp, dhcp, open-vswitch, "
"linux-bridge, ofa, l3, loadbalancer, metering, "
"metadata, macvtap, nic.")
)
@ -125,6 +126,7 @@ class ListNetworkAgent(command.Lister):
)
key_value = {
'bgp': 'BGP dynamic routing agent',
'dhcp': 'DHCP agent',
'open-vswitch': 'Open vSwitch agent',
'linux-bridge': 'Linux bridge agent',