neutron/neutron/services/ovn_l3
Flavio Fernandes f1cc1bb281 [ovn]: Fix l3_plugin.add_router_interface to comply with RouterPluginBase
OVNL3RouterPlugin inherits from L3_NAT_dbonly_mixin, which inherits
from neutron.extensions.l3.RouterPluginBase

As maintenance task expects OVNL3RouterPlugin to behave as
RouterPluginBase, the add_router_interface should have the signature:

  add_router_interface(self, context, router_id, interface_info)

Note: With this change, the default behavior of OVNL3RouterPlugin's
_add_neutron_router_interface becomes idem-potent: multiple calls to add
the same interface will not fail. Because of that, the unit test
test_router_add_interface_dup_port no longer makes sense and is being
removed.

Closes-Bug: #1876148
Change-Id: I8010113b4d8c66ecbccf3126f322a8836d92e7ba
Signed-off-by: Flavio Fernandes <flaviof@redhat.com>
2020-05-05 06:56:20 -04:00
..
__init__.py [OVN] Import OVN Client, L3 and QoS related code 2019-12-14 19:17:40 +00:00
plugin.py [ovn]: Fix l3_plugin.add_router_interface to comply with RouterPluginBase 2020-05-05 06:56:20 -04:00