aboutsummaryrefslogtreecommitdiffstats
path: root/boot/mso_install.sh
diff options
context:
space:
mode:
authorMarco Platania <platania@research.att.com>2017-05-23 10:29:17 -0400
committerMarco Platania <platania@research.att.com>2017-05-23 10:29:17 -0400
commitf975a02616cc81003667cdcba5ce59cf02dab248 (patch)
tree86b7a2fb56bd68e92b6577c67073728e364ff856 /boot/mso_install.sh
parent03a12a547512908cd80e582b6050dfbcc99a4f7b (diff)
Change MTU size to private NICs
Change-Id: I6cfdd2d23dd36b9063dbc98ac0c164db0dcef787 Signed-off-by: Marco Platania <platania@research.att.com>
Diffstat (limited to 'boot/mso_install.sh')
-rw-r--r--boot/mso_install.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/boot/mso_install.sh b/boot/mso_install.sh
index fe7a9149..45bb712b 100644
--- a/boot/mso_install.sh
+++ b/boot/mso_install.sh
@@ -7,6 +7,7 @@ DNS_IP_ADDR=$(cat /opt/config/dns_ip_addr.txt)
CLOUD_ENV=$(cat /opt/config/cloud_env.txt)
OPENSTACK_API_KEY=$(cat /opt/config/openstack_api_key.txt)
GERRIT_BRANCH=$(cat /opt/config/gerrit_branch.txt)
+MTU=$(/sbin/ifconfig | grep MTU | sed 's/.*MTU://' | sed 's/ .*//' | sort -n | head -1)
# Add host name to /etc/host to avoid warnings in openstack images
if [[ $CLOUD_ENV != "rackspace" ]]
@@ -42,6 +43,7 @@ then
echo "iface eth1 inet static" >> /etc/network/interfaces
echo " address $LOCAL_IP" >> /etc/network/interfaces
echo " netmask $NETMASK" >> /etc/network/interfaces
+ echo " mtu $MTU" >> /etc/network/interfaces
ifup eth1
fi
@@ -69,8 +71,6 @@ curl -L https://github.com/docker/compose/releases/download/1.9.0/docker-compose
chmod +x /opt/docker/docker-compose
# Set the MTU size of docker containers to the minimum MTU size supported by vNICs. OpenStack deployments may need to know the external DNS IP
-MTU=$(/sbin/ifconfig | grep MTU | sed 's/.*MTU://' | sed 's/ .*//' | sort -n | head -1)
-
if [ -s /opt/config/external_dns.txt ]
then
echo "DOCKER_OPTS=\"--dns $(cat /opt/config/external_dns.txt) --mtu=$MTU\"" >> /etc/default/docker