Skip to content

Commit 2edc150

Browse files
Jenkinsopenstack-gerrit
authored andcommitted
Merge "neutron: set network_device_mtu to br-ex MTU value"
2 parents 5211df0 + 6f020a8 commit 2edc150

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

devstack-vm-gate.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ PUBLIC_NETWORK_GATEWAY=${DEVSTACK_GATE_PUBLIC_NETWORK_GATEWAY:-172.24.5.1}
5050
FLOATING_HOST_PREFIX=${DEVSTACK_GATE_FLOATING_HOST_PREFIX:-172.24.4}
5151
FLOATING_HOST_MASK=${DEVSTACK_GATE_FLOATING_HOST_MASK:-23}
5252

53+
EXTERNAL_BRIDGE_MTU=1450
54+
5355
function setup_ssh {
5456
local path=$1
5557
$ANSIBLE all --sudo -f 5 -i "$WORKSPACE/inventory" -m file \
@@ -557,6 +559,10 @@ EOF
557559

558560
if [[ "$DEVSTACK_GATE_TOPOLOGY" == "multinode" ]]; then
559561
echo -e "[[post-config|\$NOVA_CONF]]\n[libvirt]\ncpu_mode=custom\ncpu_model=gate64" >> local.conf
562+
if [[ $DEVSTACK_GATE_NEUTRON -eq "1" ]]; then
563+
echo -e "[[post-config|\$NEUTRON_CONF]]\n[DEFAULT]\nnetwork_device_mtu=$EXTERNAL_BRIDGE_MTU" >> local.conf
564+
fi
565+
560566
# get this in our base config
561567
cp local.conf $BASE/old/devstack
562568

@@ -590,6 +596,9 @@ else
590596
setup_localrc "new" "localrc" "primary"
591597
if [[ "$DEVSTACK_GATE_TOPOLOGY" == "multinode" ]]; then
592598
echo -e "[[post-config|\$NOVA_CONF]]\n[libvirt]\ncpu_mode=custom\ncpu_model=gate64" >> local.conf
599+
if [[ $DEVSTACK_GATE_NEUTRON -eq "1" ]]; then
600+
echo -e "[[post-config|\$NEUTRON_CONF]]\n[DEFAULT]\nnetwork_device_mtu=$EXTERNAL_BRIDGE_MTU" >> local.conf
601+
fi
593602
fi
594603

595604
setup_networking
@@ -651,7 +660,7 @@ else
651660
MTU_NODES=all
652661
fi
653662
$ANSIBLE "$MTU_NODES" -f 5 -i "$WORKSPACE/inventory" -m shell \
654-
-a "sudo ip link set mtu 1450 dev br-ex"
663+
-a "sudo ip link set mtu $EXTERNAL_BRIDGE_MTU dev br-ex"
655664
fi
656665
fi
657666

0 commit comments

Comments
 (0)