neutron/neutron/tests/unit/plugins/ml2/drivers/openvswitch
Arjun Baindur dd915e8238 get_subnet_for_dvr returns SNAT mac instead of distributed gateway in subnet_info
On hosts with dvr_snat agent mode, after restarting OVS agent,
sometimes the SNAT port is processed first instead of the distributed port.
The subnet_info is cached locally via get_subnet_for_dvr when either of these ports
are processed. However, it returns the MAC address of the port used to query
as the gateway for the subnet. Using the SNAT port, this puts the wrong
MAC as the gateway, causing some flows such as the DVR flows on br-int
for local src VMs to have the wrong MAC.

This patch fixes the get_subnet_for_dvr with fixed_ips as None for the csnat port,
as that causes the server side handler to fill in the subnet's actual gateway
rather than using the port's MAC.

Change-Id: If045851819fd53c3b9a1506cc52bc1757e6d6851
Closes-Bug: #1783470
(cherry picked from commit c6de172e58)
2018-08-22 00:47:54 +00:00
..
agent get_subnet_for_dvr returns SNAT mac instead of distributed gateway in subnet_info 2018-08-22 00:47:54 +00:00
mech_driver use callback payloads for BEFORE_READ events 2017-12-24 15:52:55 +00:00
__init__.py Restructure agent code in preparation for decomp 2015-06-26 15:06:49 +00:00