neutron/neutron/tests/unit
Slawek Kaplonski b01e0c2aa9 [OVS FW] Clean port rules if port not found in ovsdb
During e.g. migration or shelve of VM it may happend that
port update event will be send to the ovs agent and in the almost
the same time, port will be removed from br-int.
In such case during update_port_filter method openvswitch firewall
driver will not find port in br-int, and it will do nothing with it.
That will lead to leftover rules for this port in br-int.

So this patch adds calling remove_port_filter() method if port was
not found in br-int. Just to be sure that there is no any leftovers
from the port in br-int anymore.

Change-Id: I06036ce5fe15d91aa440dc340a70dd27ae078c53
Closes-Bug: #1850557
2019-12-02 12:22:50 +01:00
..
agent [OVS FW] Clean port rules if port not found in ovsdb 2019-12-02 12:22:50 +01:00
api Merge "Start enforcing E125 flake8 directive" 2019-07-22 15:35:27 +00:00
cmd Make the MTU attribute not nullable 2019-10-28 03:32:50 +00:00
common "round" with ndigits=None returns an integer 2019-10-29 15:06:49 +00:00
conf/agent Agent common config 2017-03-15 09:52:18 -06:00
core_extensions remove neutron.common.exceptions 2019-02-01 14:35:00 -07:00
db Revise log when create port failed 2019-11-12 07:17:29 +08:00
debug Remove deprecated 'external_network_bridge' option 2019-03-09 22:07:38 +00:00
extensions Merge "fixed_configured=True when Add/Remove port IPs" 2019-10-09 02:18:08 +00:00
hacking remove string use of neutron.common.rpc 2019-02-08 09:40:39 -07:00
ipam Start enforcing E125 flake8 directive 2019-07-19 23:39:41 -04:00
notifiers Mock openstacksdk raise_from_response in ironic unit test 2019-10-15 10:36:49 +02:00
objects Move migration to proper dir and fix objects tests 2019-11-04 17:44:44 +00:00
pecan_wsgi Removing deprecated module neutron.api.versions 2018-03-28 14:15:50 +07:00
plugins Merge "Revise log when create port failed" 2019-11-17 12:49:59 +00:00
privileged Do not use exceptions in get_link_id() to control the code flow 2019-10-25 16:28:37 +00:00
quota use get reader/writer session from neutron-lib 2018-07-06 14:43:31 -06:00
scheduler Add binding_index to NetworkDhcpAgentBinding 2019-08-29 12:52:07 +04:00
services Remove Neutron LBaaS 2019-09-20 07:46:06 +00:00
tests Start enforcing E125 flake8 directive 2019-07-19 23:39:41 -04:00
__init__.py Don't set use_stderr to False for tests 2017-04-15 01:41:29 +00:00
_test_extension_portbindings.py Remove the unit test 'test_ports_vnic_type_list' 2018-06-15 15:12:10 +00:00
dummy_plugin.py Remove Neutron LBaaS 2019-09-20 07:46:06 +00:00
extension_stubs.py Consume ServicePluginBase from neutron-lib 2017-03-17 12:06:57 -06:00
test_auth.py Fix context deprecation warnings 2018-02-13 15:02:49 -05:00
test_manager.py Remove Neutron LBaaS 2019-09-20 07:46:06 +00:00
test_neutron_plugin_base_v2.py Add unit test to validate non DB base core plugin can be loaded 2017-11-15 21:21:35 +00:00
test_opts.py
test_policy.py Fix handling of network:shared field in policy module 2019-05-07 11:31:25 +02:00
test_service.py fix test nit 2019-08-04 12:31:46 +08:00
test_worker.py
test_wsgi.py Merge "Stop testing python 2" 2019-10-28 00:52:16 +00:00
testlib_api.py use SqlFixture and StaticSqlFixture from neutron-lib 2019-07-08 11:26:34 -06:00