neutron/neutron/tests/unit
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
..
agent Don't setup bridge controller if it is already set 2021-11-03 11:13:26 +00:00
api DHCP notification optimization 2021-04-23 10:02:14 +00:00
cmd Added common config and SR-IOV agent config to sanity check 2021-06-11 14:44:08 +00:00
common [OVN] Set NB/SB "connection" inactivity probe 2021-10-04 15:34:17 +00:00
conf/agent Agent common config 2017-03-15 09:52:18 -06:00
core_extensions Add "qos_network_policy_id" to port definition 2020-01-17 17:57:11 +00:00
db Remove FIP agent's gw port when L3 agent is deleted 2021-06-24 06:54:15 +00:00
debug Remove deprecated 'external_network_bridge' option 2019-03-09 22:07:38 +00:00
extensions Improve Network delete performance 2021-05-05 08:02:50 +00:00
hacking Allow usage of assert_called_once method in unit tests 2020-03-02 14:17:26 +02:00
ipam IPv6 accepts first address only for routers 2020-01-12 20:39:07 +00:00
notifiers Add config option ``http_retries`` 2020-07-09 10:11:22 +00:00
objects Randomize segmentation ID assignation 2021-09-10 11:27:15 +02:00
pecan_wsgi Removing deprecated module neutron.api.versions 2018-03-28 14:15:50 +07:00
plugins Don't setup bridge controller if it is already set 2021-11-03 11:13:26 +00:00
privileged Migrate "netstat" to oslo.privsep 2021-02-25 09:55:41 +01:00
quota use get reader/writer session from neutron-lib 2018-07-06 14:43:31 -06:00
scheduler Revert "DVR: Remove control plane arp updates for DVR" 2021-03-09 13:08:28 +00:00
services Merge "Delete log entries when SG or port is deleted" into stable/ussuri 2021-10-26 12:13:04 +00:00
tests Remove references to unittest2 library 2020-01-14 09:03:26 +00: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
fake_resources.py [OVN] Update the DHCP options when the metadata port is modified 2021-10-15 10:07:17 +00: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 Provide the rpc_response_max_timeout parameter to sriov-agent 2021-06-14 14:02:28 +00:00
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