File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,8 @@ PUBLIC_NETWORK_GATEWAY=${DEVSTACK_GATE_PUBLIC_NETWORK_GATEWAY:-172.24.5.1}
5050FLOATING_HOST_PREFIX=${DEVSTACK_GATE_FLOATING_HOST_PREFIX:- 172.24.4}
5151FLOATING_HOST_MASK=${DEVSTACK_GATE_FLOATING_HOST_MASK:- 23}
5252
53+ EXTERNAL_BRIDGE_MTU=1450
54+
5355function setup_ssh {
5456 local path=$1
5557 $ANSIBLE all --sudo -f 5 -i " $WORKSPACE /inventory" -m file \
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
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
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
656665fi
657666
You can’t perform that action at this time.
0 commit comments