neutron/neutron/plugins/ml2/drivers
Darragh O'Reilly 47ec363f5f Ensure drop flows on br-int at agent startup for DVR too
Commit 90212b12 changed the OVS agent so adding vital drop flows on
br-int (table 0 priority 2) for packets from physical bridges was
deferred until DVR initialization later on. But if br-int has no flows
from a previous run (eg after host reboot), then these packets will hit
the NORMAL flow in table 60. And if there is more than one physical
bridge, then the physical interfaces from the different bridges are now
essentially connected at layer 2 and a network loop is possible in the
time before the flows are added by DVR. Also the DVR code won't add them
until after RPC calls to the server, so a loop is more likely if the
server is not available.

This patch restores adding these flows to when the physical bridges are
first configured. Also updated a comment that was no longer correct and
updated the unit test.

Change-Id: I42c33fefaae6a7bee134779c840f35632823472e
Closes-Bug: #1887148
Related-Bug: #1869808
(cherry picked from commit c1a77ef8b7)
(cherry picked from commit 143fe8ff89)
(cherry picked from commit 6a861b8c8c28e5675ec2208057298b811ba2b649)
(cherry picked from commit 8181c5dbfe)
Conflicts:
	neutron/plugins/ml2/drivers/openvswitch/agent/ovs_neutron_agent.py
2020-07-22 07:52:34 +00:00
..
agent Merge "Dont use dict.get() to know certain key is in dict" 2018-07-25 15:28:18 +00:00
l2pop Don't add arp responder for non tunnel network port 2020-07-10 10:26:28 +00:00
linuxbridge Add binding activation to the Linuxbridge agent 2018-07-19 15:12:20 -05:00
macvtap use plugin common utils from neutron-lib 2018-04-17 12:06:28 -06:00
mech_sriov SRIOV agent: wait VFs initialization on embedded switch create 2019-06-10 07:12:47 +00:00
openvswitch Ensure drop flows on br-int at agent startup for DVR too 2020-07-22 07:52:34 +00:00
__init__.py Empty files should not contain copyright or license 2014-10-20 00:50:32 +00:00
helpers.py use plugin utils from neutron-lib 2018-07-12 08:13:05 -06:00
mech_agent.py use plugin constants from neutron-lib 2017-10-16 09:32:20 -06:00
type_flat.py use plugin constants from neutron-lib 2017-10-16 09:32:20 -06:00
type_geneve.py use plugin constants from neutron-lib 2017-10-16 09:32:20 -06:00
type_gre.py use plugin constants from neutron-lib 2017-10-16 09:32:20 -06:00
type_local.py use ml2 driver api from neutron-lib 2017-11-10 08:41:28 -07:00
type_tunnel.py use retry_db_errors from neutron-lib 2018-07-16 08:10:54 -06:00
type_vlan.py Improve VLAN allocations synchronization 2020-04-23 16:11:09 +00:00
type_vxlan.py use plugin constants from neutron-lib 2017-10-16 09:32:20 -06:00