neutron/neutron/tests/unit/plugins/ml2
Arjun Baindur c7031e2cd3 Change duplicate OVS bridge datapath-ids
The native OVS/ofctl controllers talk to the bridges using a
datapath-id, instead of the bridge name. The datapath ID is
auto-generated based on the MAC address of the bridge's NIC.
In the case where bridges are on VLAN interfaces, they would
have the same MACs, therefore the same datapath-id, causing
flows for one physical bridge to be programmed on each other.

The datapath-id is a 64-bit field, with lower 48 bits being
the MAC. We set the upper 12 unused bits to identify each
unique physical bridge

This could also be fixed manually using ovs-vsctl set, but
it might be beneficial to automate this in the code.

ovs-vsctl set bridge <mybr> other-config:datapath-id=<datapathid>

You can change this yourself using above command.

You can view/verify current datapath-id via

ovs-vsctl get Bridge br-vlan datapath-id
"00006ea5a4b38a4a"

(please note that other-config is needed in the set, but not get)

Closes-Bug: #1697243
Co-Authored-By: Rodolfo Alonso Hernandez <ralonsoh@redhat.com>

Change-Id: I575ddf0a66e2cfe745af3874728809cf54e37745
(cherry picked from commit 379a9faf62)
(cherry picked from commit c02b1148db)
2019-02-03 08:41:20 +00:00
..
drivers Change duplicate OVS bridge datapath-ids 2019-02-03 08:41:20 +00:00
extensions use dns api def from neutron-lib 2017-10-20 16:38:33 -06:00
__init__.py Reorganize unit test tree 2015-04-06 23:28:31 +00:00
_test_mech_agent.py fix same mechanism driver called twice bug 2018-02-01 18:51:39 +08: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 Revert "Integration of (Distributed) Port Binding OVO" 2018-01-27 18:19:20 -06: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 Refactoring config options for ml2 config opts 2017-09-08 15:34:49 -04:00
test_extension_driver_api.py Refactoring config options for ml2 config opts 2017-09-08 15:34:49 -04:00
test_managers.py fix same mechanism driver called twice bug 2018-02-01 18:51:39 +08:00
test_ovo_rpc.py Stop loading OVOServerRpcInterface in ML2 testcase 2017-04-18 01:27:37 -07:00
test_plugin.py Update neutron files for new over-indentation hacking rule (E117) 2019-02-02 10:48:26 +00:00
test_port_binding.py Revert "Integration of (Distributed) Port Binding OVO" 2018-01-27 18:19:20 -06:00
test_rpc.py use qos constants from neutron-lib 2017-10-26 19:57:19 +00:00
test_security_group.py use core resource api defs from lib 2017-11-08 09:48:50 -07:00
test_tracked_resources.py use core resource api defs from lib 2017-11-08 09:48:50 -07:00