function configure_ovs {
if is_service_enabled df-controller ; then
# setup external bridge if necessary check_dnat=$(echo $DF_APPS_LIST | grep "DNATApp")
if [[ "$check_dnat" != "" ]]; then
echo "Setup external bridge for DNAT"
sudo ovs-vsctl add-br $PUBLIC_BRIDGE || true
fi
_neutron_ovs_base_setup_bridge $INTEGRATION_BRIDGE
sudo ovs-vsctl --no-wait set bridge $INTEGRATION_BRIDGE fail-mode=secure other-config:disable-in-band=true
if [ -n "$OVS_INTEGRATION_BRIDGE_PROTOCOLS" ]; then
sudo ovs-vsctl set bridge $INTEGRATION_BRIDGE protocols=$OVS_INTEGRATION_BRIDGE_PROTOCOLS
fi
fi
if [ -n "$OVS_MANAGER" ]; then
sudo ovs-vsctl set-manager $OVS_MANAGER
fi
this is problematic code:
_neutron_ ovs_base_ setup_bridge $INTEGRATION_BRIDGE
The full code:
function configure_ovs {
check_ dnat=$( echo $DF_APPS_LIST | grep "DNATApp")
if is_service_enabled df-controller ; then
# setup external bridge if necessary
if [[ "$check_dnat" != "" ]]; then
echo "Setup external bridge for DNAT"
sudo ovs-vsctl add-br $PUBLIC_BRIDGE || true
fi
sudo ovs-vsctl --no-wait set bridge $INTEGRATION_BRIDGE fail-mode=secure other-config:
if [ -n "$OVS_INTEGRATI
sudo ovs-vsctl set bridge $INTEGRATION_BRIDGE protocols=
fi
fi
if [ -n "$OVS_MANAGER" ]; then
sudo ovs-vsctl set-manager $OVS_MANAGER
fi
cd $_pwd
}