Skip to content

Commit 6f020a8

Browse files
author
Ihar Hrachyshka
committed
neutron: set network_device_mtu to br-ex MTU value
This is needed to apply proper MTU values for DVR router interfaces, and other places where we need to ensure correct MTU for external traffic. Related-Bug: #1527675 Change-Id: I3d62f8b77b759f6c48731c37f8a28d3437effd56
1 parent ccb1c79 commit 6f020a8

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 \
@@ -577,6 +579,10 @@ EOF
577579

578580
if [[ "$DEVSTACK_GATE_TOPOLOGY" == "multinode" ]]; then
579581
echo -e "[[post-config|\$NOVA_CONF]]\n[libvirt]\ncpu_mode=custom\ncpu_model=gate64" >> local.conf
582+
if [[ $DEVSTACK_GATE_NEUTRON -eq "1" ]]; then
583+
echo -e "[[post-config|\$NEUTRON_CONF]]\n[DEFAULT]\nnetwork_device_mtu=$EXTERNAL_BRIDGE_MTU" >> local.conf
584+
fi
585+
580586
# get this in our base config
581587
cp local.conf $BASE/old/devstack
582588

@@ -610,6 +616,9 @@ else
610616
setup_localrc "new" "localrc" "primary"
611617
if [[ "$DEVSTACK_GATE_TOPOLOGY" == "multinode" ]]; then
612618
echo -e "[[post-config|\$NOVA_CONF]]\n[libvirt]\ncpu_mode=custom\ncpu_model=gate64" >> local.conf
619+
if [[ $DEVSTACK_GATE_NEUTRON -eq "1" ]]; then
620+
echo -e "[[post-config|\$NEUTRON_CONF]]\n[DEFAULT]\nnetwork_device_mtu=$EXTERNAL_BRIDGE_MTU" >> local.conf
621+
fi
613622
fi
614623

615624
setup_networking
@@ -671,7 +680,7 @@ else
671680
MTU_NODES=all
672681
fi
673682
$ANSIBLE "$MTU_NODES" -f 5 -i "$WORKSPACE/inventory" -m shell \
674-
-a "sudo ip link set mtu 1450 dev br-ex"
683+
-a "sudo ip link set mtu $EXTERNAL_BRIDGE_MTU dev br-ex"
675684
fi
676685
fi
677686

0 commit comments

Comments
 (0)