Add the bgp agent type to network agent command

The neutron-dynamic-routing project provides an agent called
neutron-bgp-dragent with type "BGP dynamic routing agent". So we need to
add this option and can avoid using the deprecated neutron CLI e.g. in
[1].

[1] https://docs.openstack.org/ocata/networking-guide/config-bgp-dynamic-routing.html#verify-service-operation

Change-Id: I9af1e09d122806b56b966295817d8d31393e0283
Closes-Bug: 1671040
This commit is contained in:
Jens Rosenboom 2017-03-08 12:22:35 +01:00
parent dcb2de9db2
commit 8c6cfb518b

@ -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',