From ea3dac9a3c57ee59270e3321d68b93f2734f24b0 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Wed, 23 Jul 2014 16:07:21 +0900 Subject: [PATCH] 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 --- lib/neutron | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/neutron b/lib/neutron index 2763f260d8..96e9246188 100644 --- a/lib/neutron +++ b/lib/neutron @@ -455,6 +455,9 @@ function create_neutron_initial_network { if is_service_enabled q-l3; then # logic is specific to using the l3-agent for l3 if is_neutron_ovs_base_plugin && [[ "$Q_USE_NAMESPACE" = "True" ]]; then + # Disable in-band as we are going to use local port + # to communicate with VMs + sudo ovs-vsctl set Bridge $PUBLIC_BRIDGE other_config:disable-in-band=true CIDR_LEN=${FLOATING_RANGE#*/} sudo ip addr add $EXT_GW_IP/$CIDR_LEN dev $PUBLIC_BRIDGE sudo ip link set $PUBLIC_BRIDGE up