Browse code

Disable in-band control for PUBLIC_BRIDGE

By default, Open vSwitch installs internal flows for in-band control
to bridges with controller setting. "with controller setting" part
is false for openvswitch agent but can be true for ofagent.
Unfortunately the internal flows are incompatible with our use of
the local port here to communicate with neutron router. This commit
avoids the problem by disabling the in-band control functionality.

Related to blueprint ofagent-port-monitor
Change-Id: Ia79d12da3c2224366425be5f6927859181e18909

YAMAMOTO Takashi authored on 2014/07/23 16:07:21
Showing 1 changed files
... ...
@@ -455,6 +455,9 @@ function create_neutron_initial_network {
455 455
         if is_service_enabled q-l3; then
456 456
             # logic is specific to using the l3-agent for l3
457 457
             if is_neutron_ovs_base_plugin && [[ "$Q_USE_NAMESPACE" = "True" ]]; then
458
+                # Disable in-band as we are going to use local port
459
+                # to communicate with VMs
460
+                sudo ovs-vsctl set Bridge $PUBLIC_BRIDGE other_config:disable-in-band=true
458 461
                 CIDR_LEN=${FLOATING_RANGE#*/}
459 462
                 sudo ip addr add $EXT_GW_IP/$CIDR_LEN dev $PUBLIC_BRIDGE
460 463
                 sudo ip link set $PUBLIC_BRIDGE up