neutron/neutron/tests/unit/plugins/ml2
Sławek Kapłoński cdcc704b9e [OVS] Fix for cleaning after skipped_devices
When Openvswitch agent will get "port_update" event
(e.g. to set port as unbound) and port is already removed
from br-int when agent tries to get vif port in
treat_devices_added_updated() method (port is removed
because e.g. nova-compute removes it) then resources set
for port by L2 agent extension drivers (like qos) are not
cleaned properly.

In such case port is added to skipped_ports and is set
as DOWN in neutron-db but ext_manager is not called then
for such port so it will not clear stuff like bandwidth
limit's QoS and queue records and also DSCP marking
open flow rules for this port.

This patch fixes this issue by adding call of
ext_manager.delete_port() method for all skipped ports.

Change-Id: I3cf5c57c7f232deaa190ab6b0129e398fdabe592
Closes-Bug: #1737892
(cherry picked from commit a8271e978a)
2018-06-12 20:57:08 +00:00
..
drivers [OVS] Fix for cleaning after skipped_devices 2018-06-12 20:57:08 +00:00
extensions Fix port deletion when dns_integration is enabled 2017-09-07 09:21:12 +00:00
__init__.py Reorganize unit test tree 2015-04-06 23:28:31 +00:00
_test_mech_agent.py ovs mech: bind only if user request switchdev 2017-09-20 05:11:55 +00:00
base.py use service type constants from neutron_lib plugins 2017-06-27 15:16:05 -06:00
test_agent_scheduler.py Move db agent schedulers test to a more appropriate place 2015-08-24 15:14:13 +03:00
test_db.py Merge "Add missing unit test for segment db" 2017-06-10 01:04:49 +00:00
test_driver_context.py Use objects instead of SQLA deep copies in PortContext 2017-06-20 01:34:10 -07:00
test_ext_portsecurity.py use neutron-lib port security api-def 2017-05-01 11:45:42 -06:00
test_extension_driver_api.py Spin off context module 2017-03-06 16:25:29 +00:00
test_managers.py use MechanismDriver from neutron-lib + shim 2017-06-05 14:09:07 -06:00
test_ovo_rpc.py Stop loading OVOServerRpcInterface in ML2 testcase 2017-04-18 01:27:37 -07:00
test_plugin.py Notify port_update to agent for status change 2017-10-23 06:25:59 +00:00
test_port_binding.py Use objects instead of SQLA deep copies in PortContext 2017-06-20 01:34:10 -07:00
test_rpc.py ml2: fix update_device_up to send lm events with linux bridge 2017-12-03 09:22:01 +00:00
test_security_group.py use neutron-lib callbacks 2017-04-26 12:12:53 -06:00
test_tracked_resources.py Spin off context module 2017-03-06 16:25:29 +00:00