neutron/neutron/tests/unit/plugins/ml2/drivers/openvswitch/agent
Arjun Baindur c6de172e58 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
2018-08-09 15:41:56 -07:00
..
extension_drivers [Qos] Fix residues of ovs in ingress bw limit 2017-12-05 18:36:20 +08:00
openflow Merge "of_interface: Implement bundled() method" 2018-05-11 18:39:24 +00:00
__init__.py Restructure agent code in preparation for decomp 2015-06-26 15:06:49 +00:00
fake_oflib.py OVS-agent: Introduce Ryu based OpenFlow implementation 2015-09-02 14:05:18 +09:00
ovs_test_base.py Update to support the ovdsbapp 0.4.0 API 2017-05-17 19:58:34 +00:00
test_ovs_agent_extension_api.py of_interface: Implement bundled() method 2018-04-18 18:33:55 +09:00
test_ovs_capabilities.py unit test: unbreak test cases for callbacks.subscribe 2018-04-11 07:20:42 +00:00
test_ovs_neutron_agent.py get_subnet_for_dvr returns SNAT mac instead of distributed gateway in subnet_info 2018-08-09 15:41:56 -07:00
test_ovs_tunnel.py Adopt hacking 1.1.0 2018-07-05 11:31:40 +09:00
test_vlanmanager.py Removed deprecated class LocalVLANMapping 2016-11-07 20:24:06 +00:00