Skip to content

Commit e3e9ea2

Browse files
committed
Revert "remove external_network_bridge option"
This reverts commit faaf96b. Ironic jobs were still using this option, it needs to be switched to an alternative first. Change-Id: I1683d7cfa81f5fe2497cc7045e87f8b20fed4968
1 parent 7c3df6b commit e3e9ea2

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

lib/neutron

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ NEUTRON_ROOTWRAP_CONF_FILE=$NEUTRON_CONF_DIR/rootwrap.conf
9595
NEUTRON_ROOTWRAP_CMD="$NEUTRON_ROOTWRAP $NEUTRON_ROOTWRAP_CONF_FILE"
9696
NEUTRON_ROOTWRAP_DAEMON_CMD="$NEUTRON_ROOTWRAP-daemon $NEUTRON_ROOTWRAP_CONF_FILE"
9797

98+
# This is needed because _neutron_ovs_base_configure_l3_agent will set
99+
# external_network_bridge
100+
Q_USE_PROVIDERNET_FOR_PUBLIC=${Q_USE_PROVIDERNET_FOR_PUBLIC:-True}
98101
# This is needed because _neutron_ovs_base_configure_l3_agent uses it to create
99102
# an external network bridge
100103
PUBLIC_BRIDGE=${PUBLIC_BRIDGE:-br-ex}

lib/neutron_plugins/ovs_base

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,10 @@ function _neutron_ovs_base_configure_firewall_driver {
9696
}
9797

9898
function _neutron_ovs_base_configure_l3_agent {
99+
if [ "$Q_USE_PROVIDERNET_FOR_PUBLIC" != "True" ]; then
100+
iniset $Q_L3_CONF_FILE DEFAULT external_network_bridge $PUBLIC_BRIDGE
101+
fi
102+
99103
neutron-ovs-cleanup --config-file $NEUTRON_CONF
100104
if [[ "$Q_USE_PUBLIC_VETH" = "True" ]]; then
101105
ip link show $Q_PUBLIC_VETH_INT > /dev/null 2>&1 ||

0 commit comments

Comments
 (0)