neutron/neutron/tests/unit/agent/linux/openvswitch_firewall
Rodolfo Alonso Hernandez ef7f673098 Do no use "--strict" for OF deletion in TRANSIENT_TABLE
There are two types of OF rules in TRANSIENT_TABLE:
- With priority 100: these rules match by "in_port", that is a
  unique identifier.
- With priority 90: these rules match by MAC address and VLAN ID.
  This combination (MAC, VLAN) is unique.

That means when a deleting an OF rule in TRANSIENT_TABLE, it is
enough to specify the "in_port" or the (MAC, VLAN) tuple. The
"--strict" parameter, added to also define the priority, is not
needed.

By removing the "--strict" parameter, these deletion commands can
be executed synchronously at the end of the OVS deferred context,
when all the OF rule commands (addition or deletion), are executed
at the same time. That removes the small window, detected in the
related bug, when the OF rule set for a port is not complete.

Closes-Bug: #1952770
Change-Id: I9f5bd8a1404dde3a0aa163ce72aef2961f537676
2021-12-01 12:39:17 +00:00
..
__init__.py Open vSwitch conntrack based firewall driver 2016-02-16 16:47:21 +00:00
test_firewall.py Do no use "--strict" for OF deletion in TRANSIENT_TABLE 2021-12-01 12:39:17 +00:00
test_iptables.py Merge "Replace assertItemsEqual with assertCountEqual" 2021-04-26 19:12:38 +00:00
test_rules.py Replace assertItemsEqual with assertCountEqual 2020-11-30 10:21:57 +01:00