neutron/neutron/plugins
Hemanth Nakkina 305b71d4bc 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 10:54:38 +01:00
..
common use plugin utils from neutron-lib 2018-07-12 08:13:05 -06:00
ml2 Fix removal of dvr-src mac flows when non-gateway port on router is deleted 2021-03-05 10:54:38 +01:00
__init__.py Finish off rebranding of the Nicira NVP plugin 2014-03-01 18:14:52 -08:00