aboutsummaryrefslogtreecommitdiffstats
path: root/vnfs/vLB/scripts/v_lb_install.sh
diff options
context:
space:
mode:
authorMarco Platania <platania@research.att.com>2017-05-19 14:11:16 -0400
committerMarco Platania <platania@research.att.com>2017-05-19 14:11:16 -0400
commitb8bf242c3eb0bbe7027d631b46e4ecc470b80a81 (patch)
treed5f2b711fc579fd4283efe9b84c97dc4da300769 /vnfs/vLB/scripts/v_lb_install.sh
parenta4a8036f7481467739926c32567c16af2b1038f5 (diff)
Fix issues with the MTU size in vFW/vLB
Change-Id: Icc391c10bafa076b4ce74ca53e29a2e808f65a9d Signed-off-by: Marco Platania <platania@research.att.com>
Diffstat (limited to 'vnfs/vLB/scripts/v_lb_install.sh')
-rw-r--r--vnfs/vLB/scripts/v_lb_install.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/vnfs/vLB/scripts/v_lb_install.sh b/vnfs/vLB/scripts/v_lb_install.sh
index 8bfe9fcd..73fee3d7 100644
--- a/vnfs/vLB/scripts/v_lb_install.sh
+++ b/vnfs/vLB/scripts/v_lb_install.sh
@@ -11,17 +11,25 @@ if [[ $CLOUD_ENV == "openstack" ]]
then
echo 127.0.0.1 $(hostname) >> /etc/hosts
+ # Allow remote login as root
+ mv /root/.ssh/authorized_keys /root/.ssh/authorized_keys.bk
+ cp /home/ubuntu/.ssh/authorized_keys /root/.ssh
+
+ MTU=$(/sbin/ifconfig | grep MTU | sed 's/.*MTU://' | sed 's/ .*//' | sort -n | head -1)
+
VLB_PRIVATE_IP_O=$(cat /opt/config/local_private_ipaddr.txt)
echo "auto eth1" >> /etc/network/interfaces
echo "iface eth1 inet static" >> /etc/network/interfaces
echo " address $VLB_PRIVATE_IP_O" >> /etc/network/interfaces
echo " netmask 255.255.255.0" >> /etc/network/interfaces
+ echo " mtu $MTU" >> /etc/network/interfaces
VLB_PRIVATE_IP_1=$(cat /opt/config/oam_private_ipaddr.txt)
echo "auto eth2" >> /etc/network/interfaces
echo "iface eth2 inet static" >> /etc/network/interfaces
echo " address $VLB_PRIVATE_IP_1" >> /etc/network/interfaces
echo " netmask 255.255.255.0" >> /etc/network/interfaces
+ echo " mtu $MTU" >> /etc/network/interfaces
ifup eth1
ifup eth2