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
This commit is contained in:
parent
307cfcb9d1
commit
ea3dac9a3c
@ -455,6 +455,9 @@ function create_neutron_initial_network {
|
|||||||
if is_service_enabled q-l3; then
|
if is_service_enabled q-l3; then
|
||||||
# logic is specific to using the l3-agent for l3
|
# logic is specific to using the l3-agent for l3
|
||||||
if is_neutron_ovs_base_plugin && [[ "$Q_USE_NAMESPACE" = "True" ]]; then
|
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#*/}
|
CIDR_LEN=${FLOATING_RANGE#*/}
|
||||||
sudo ip addr add $EXT_GW_IP/$CIDR_LEN dev $PUBLIC_BRIDGE
|
sudo ip addr add $EXT_GW_IP/$CIDR_LEN dev $PUBLIC_BRIDGE
|
||||||
sudo ip link set $PUBLIC_BRIDGE up
|
sudo ip link set $PUBLIC_BRIDGE up
|
||||||
|
Loading…
Reference in New Issue
Block a user