Commit 2deb7d2c authored by David Johnson's avatar David Johnson

Setup ovs/bridge networks.

parent 24c8192f
......@@ -10,7 +10,7 @@ if [ $EUID -ne 0 ] ; then
exit 1
fi
ALLNODESCRIPTS="setup-root-ssh.sh setup-disk-space.sh"
ALLNODESCRIPTS="setup-root-ssh.sh setup-disk-space.sh setup-network.sh"
COMPUTESCRIPTS=""
CTLSCRIPTS="setup-letsencrypt.sh setup-nginx.sh setup-openstack.sh"
......
#!/bin/sh
set -x
if [ -z "$EUID" ]; then
EUID=`id -u`
fi
if [ $EUID -ne 0 ] ; then
echo "This script must be run as root" 1>&2
exit 1
fi
# Grab our libs
. "`dirname $0`/setup-lib.sh"
if [ -f $OURDIR/network-done ]; then
exit 0
fi
logtstart "network"
if [ "${ML2PLUGIN}" = "openvswitch" ]; then
echo "*** Moving Interfaces into OpenVSwitch Bridges"
$DIRNAME/setup-ovs-node.sh 1> $OURDIR/setup-ovs-node.log 2>&1
else
echo "*** Setting up Linux Bridge static network configuration"
$DIRNAME/setup-linuxbridge-node.sh 1> $OURDIR/setup-linuxbridge-node.log 2>&1
fi
touch $OURDIR/network-done
logtend "network"
exit 0
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment