neutron/neutron/tests/unit/plugins/ml2
Hemanth Nakkina 79db108e08 Fix removal of dvr-src mac flows when non-gateway port on router is deleted
Removal of non-gateway port on DVR router deletes all the DVR to
SRC mac flows for the instances of same subnet on that compute node.
The instances are not reachable from any other network.

This patch checks if the DVR router port is gateway for the subnet
or not. And deletes the DVR-SRC mac flows only if it is gateway port.
The DVR-SRC mac flows are deleted if the gateway is not set for the subnet.

Conflicts:
    neutron/plugins/ml2/drivers/openvswitch/agent/ovs_dvr_neutron_agent.py
    neutron/tests/unit/plugins/ml2/drivers/openvswitch/agent/test_ovs_neutron_agent.py

arp_responder_enabled check added for the ARP flow rule.
The unit test case have arp_responder false by default, so adjusted
the br_int mock calls accordingly.

Change-Id: Iadc1671c862f8c01e5761e92b82a04849d4bb411
Closes-Bug: #1892405
(cherry picked from commit 329ea19f8b)
(cherry picked from commit bf8fc2db0c)
2021-03-05 09:56:21 +00:00
..
drivers Fix removal of dvr-src mac flows when non-gateway port on router is deleted 2021-03-05 09:56:21 +00:00
extensions use dns api def from neutron-lib 2017-10-20 16:38:33 -06:00
__init__.py Reorganize unit test tree 2015-04-06 23:28:31 +00:00
_test_mech_agent.py fix same mechanism driver called twice bug 2018-02-01 18:51:39 +08:00
base.py use service type constants from neutron_lib plugins 2017-06-27 15:16:05 -06:00
test_agent_scheduler.py Move db agent schedulers test to a more appropriate place 2015-08-24 15:14:13 +03:00
test_db.py Revert "Integration of (Distributed) Port Binding OVO" 2018-01-27 18:19:20 -06:00
test_driver_context.py Use objects instead of SQLA deep copies in PortContext 2017-06-20 01:34:10 -07:00
test_ext_portsecurity.py Refactoring config options for ml2 config opts 2017-09-08 15:34:49 -04:00
test_extension_driver_api.py Refactoring config options for ml2 config opts 2017-09-08 15:34:49 -04:00
test_managers.py fix same mechanism driver called twice bug 2018-02-01 18:51:39 +08:00
test_ovo_rpc.py Stop loading OVOServerRpcInterface in ML2 testcase 2017-04-18 01:27:37 -07:00
test_plugin.py Merge "Pass context in l3 flavor notifications" into stable/queens 2020-09-04 11:41:35 +00:00
test_port_binding.py Revert "Integration of (Distributed) Port Binding OVO" 2018-01-27 18:19:20 -06:00
test_rpc.py Only notify nova of port status changes if configured 2020-05-15 19:14:06 +00:00
test_security_group.py use core resource api defs from lib 2017-11-08 09:48:50 -07:00
test_tracked_resources.py use core resource api defs from lib 2017-11-08 09:48:50 -07:00