neutron/neutron/plugins/ml2/drivers/openvswitch
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
..
agent Fix removal of dvr-src mac flows when non-gateway port on router is deleted 2021-03-05 09:56:21 +00:00
mech_driver Always set ovs bridge name in vif:binding-details 2020-01-02 17:14:21 +08:00
__init__.py Restructure agent code in preparation for decomp 2015-06-26 15:06:49 +00:00