Skip to content

Commit 8c6cfb5

Browse files
author
Jens Rosenboom
committed
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
1 parent dcb2de9 commit 8c6cfb5

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

openstackclient/network/v2/network_agent.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,11 @@ def get_parser(self, prog_name):
8989
parser.add_argument(
9090
'--agent-type',
9191
metavar='<agent-type>',
92-
choices=["dhcp", "open-vswitch", "linux-bridge", "ofa", "l3",
93-
"loadbalancer", "metering", "metadata", "macvtap", "nic"],
92+
choices=["bgp", "dhcp", "open-vswitch", "linux-bridge", "ofa",
93+
"l3", "loadbalancer", "metering", "metadata", "macvtap",
94+
"nic"],
9495
help=_("List only agents with the specified agent type. "
95-
"The supported agent types are: dhcp, open-vswitch, "
96+
"The supported agent types are: bgp, dhcp, open-vswitch, "
9697
"linux-bridge, ofa, l3, loadbalancer, metering, "
9798
"metadata, macvtap, nic.")
9899
)
@@ -125,6 +126,7 @@ def take_action(self, parsed_args):
125126
)
126127

127128
key_value = {
129+
'bgp': 'BGP dynamic routing agent',
128130
'dhcp': 'DHCP agent',
129131
'open-vswitch': 'Open vSwitch agent',
130132
'linux-bridge': 'Linux bridge agent',

0 commit comments

Comments
 (0)