summaryrefslogtreecommitdiff
path: root/devstack/tools/ironic/scripts/setup-network.sh
diff options
context:
space:
mode:
Diffstat (limited to 'devstack/tools/ironic/scripts/setup-network.sh')
-rwxr-xr-xdevstack/tools/ironic/scripts/setup-network.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/devstack/tools/ironic/scripts/setup-network.sh b/devstack/tools/ironic/scripts/setup-network.sh
index fc60da082..3eb6ed80b 100755
--- a/devstack/tools/ironic/scripts/setup-network.sh
+++ b/devstack/tools/ironic/scripts/setup-network.sh
@@ -12,6 +12,7 @@ LIBVIRT_CONNECT_URI=${LIBVIRT_CONNECT_URI:-"qemu:///system"}
# Keep track of the DevStack directory
TOP_DIR=$(cd $(dirname "$0")/.. && pwd)
BRIDGE_NAME=${1:-brbm}
+PUBLIC_BRIDGE_MTU=${2:-1500}
export VIRSH_DEFAULT_CONNECT_URI="$LIBVIRT_CONNECT_URI"
@@ -26,3 +27,5 @@ sudo ip link set dev ${BRIDGE_NAME} up
virsh net-define <(sed s/brbm/$BRIDGE_NAME/ $TOP_DIR/templates/brbm.xml)
virsh net-autostart ${BRIDGE_NAME}
virsh net-start ${BRIDGE_NAME}
+
+sudo ip link set dev ${BRIDGE_NAME} mtu $PUBLIC_BRIDGE_MTU