Fix issues with the MTU size in vFW/vLB 81/4381/1
authorMarco Platania <platania@research.att.com>
Fri, 19 May 2017 18:11:16 +0000 (14:11 -0400)
committerMarco Platania <platania@research.att.com>
Fri, 19 May 2017 18:11:16 +0000 (14:11 -0400)
Change-Id: Icc391c10bafa076b4ce74ca53e29a2e808f65a9d
Signed-off-by: Marco Platania <platania@research.att.com>
vnfs/vFW/scripts/v_firewall_install.sh
vnfs/vFW/scripts/v_packetgen_install.sh
vnfs/vFW/scripts/v_sink_install.sh
vnfs/vLB/scripts/v_dns_install.sh
vnfs/vLB/scripts/v_lb_install.sh

index cfa59a1..2116438 100644 (file)
@@ -10,6 +10,11 @@ CLOUD_ENV=$(cat /opt/config/cloud_env.txt)
 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)
 
        VFW_PRIVATE_IP_O=$(cat /opt/config/vfw_private_ip_0.txt)
index 913b549..c3a510d 100644 (file)
@@ -10,6 +10,11 @@ CLOUD_ENV=$(cat /opt/config/cloud_env.txt)
 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)
 
        VPG_PRIVATE_IP_O=$(cat /opt/config/vpg_private_ip_0.txt)
index 0e1a7ad..32c6167 100644 (file)
@@ -8,6 +8,11 @@ CLOUD_ENV=$(cat /opt/config/cloud_env.txt)
 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)
 
        VSN_PRIVATE_IP_O=$(cat /opt/config/vsn_private_ip_0.txt)
index 78c992f..279205c 100644 (file)
@@ -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)
+
        VDNS_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 $VDNS_PRIVATE_IP_O" >> /etc/network/interfaces
        echo "    netmask 255.255.255.0" >> /etc/network/interfaces
+       echo "    mtu $MTU" >> /etc/network/interfaces
 
        VDNS_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 $VDNS_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
index 8bfe9fc..73fee3d 100644 (file)
@@ -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