neutron/neutron/tests/unit/plugins/ml2
Slawek Kaplonski 11fe2bff17 Don't setup bridge controller if it is already set
Setting new controller for bridge every time when neutron-ovs-agent
is restarted or is doing full-sync may cause some short data plane
connectivity loss and is not needed if same controller is already
configured for the bridge.
With this patch neutron-ovs-agent will first check if controller is
configured for the bridge and if it's the same as what should be
configured, it will skip setting it up.

With this patch also protocols added to the bridge will be first checked
if they aren't already there and only missing ones will be added if
necessary.

Setting of the connectivity mode and inactivity probe is
always performed as this don't cause connectivity issues and is cheap
so we can always ensure that those parameters are configured properly.

Conflicts:
    neutron/agent/common/ovs_lib.py
    neutron/plugins/ml2/drivers/openvswitch/agent/openflow/native/ovs_bridge.py
    neutron/tests/unit/plugins/ml2/drivers/openvswitch/agent/openflow/native/ovs_bridge_test_base.py

Closes-Bug: #1948642
Change-Id: Idfa763df8c60d8ae46cd6351d1b6dc7d950b4c67
(cherry picked from commit 11d166be68)
(cherry picked from commit b1eccf5a2d)
2021-11-03 11:13:26 +00:00
..
drivers Don't setup bridge controller if it is already set 2021-11-03 11:13:26 +00:00
extensions Fix bulk port tag test_type_args_passed_to_extension() 2020-03-06 09:21:03 -05:00
__init__.py Reorganize unit test tree 2015-04-06 23:28:31 +00:00
_test_mech_agent.py Check mech driver connectivity during port binding 2019-09-11 07:05:54 +00:00
base.py use service type constants from neutron_lib plugins 2017-06-27 15:16:05 -06:00
test_agent_scheduler.py Start enforcing E125 flake8 directive 2019-07-19 23:39:41 -04:00
test_db.py Auto-delete dhcp ports on segment delete 2020-07-13 12:40:18 +02: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 PSExtDriverTestCase: initialize variable in case of exception 2019-10-30 17:44:45 -04:00
test_extension_driver_api.py Use constant IP_VERSION_4/6 in unit tests 2018-08-27 21:45:39 +00:00
test_managers.py Add "project_id" filter when changing the network segmentation ID 2020-02-17 16:03:17 +00:00
test_ovo_rpc.py Stop loading OVOServerRpcInterface in ML2 testcase 2017-04-18 01:27:37 -07:00
test_plugin.py Lock subnets during port creation and subnet deletion 2020-04-23 16:43:19 +00:00
test_port_binding.py Drive binding by placement allocation 2019-03-09 22:03:51 +00:00
test_rpc.py ovs agent: signal to plugin if tunnel refresh needed 2020-01-09 14:18:43 +00:00
test_security_group.py Start enforcing E125 flake8 directive 2019-07-19 23:39:41 -04:00
test_tracked_resources.py Support for stateless security groups 2020-03-03 16:53:42 +01:00