X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=vnfs%2FvFW%2Fscripts%2Fv_packetgen_install.sh;fp=vnfs%2FvFW%2Fscripts%2Fv_packetgen_install.sh;h=913b5497781d22e7b335f2169d69b25b9f211e6e;hb=a4a8036f7481467739926c32567c16af2b1038f5;hp=b141b584d4a8c8b73ee77586781937bc7e96405b;hpb=b6ce06ef2529d536fb5c73d1804296a8007f2ad3;p=demo.git diff --git a/vnfs/vFW/scripts/v_packetgen_install.sh b/vnfs/vFW/scripts/v_packetgen_install.sh index b141b584..913b5497 100644 --- a/vnfs/vFW/scripts/v_packetgen_install.sh +++ b/vnfs/vFW/scripts/v_packetgen_install.sh @@ -10,14 +10,24 @@ CLOUD_ENV=$(cat /opt/config/cloud_env.txt) if [[ $CLOUD_ENV == "openstack" ]] then echo 127.0.0.1 $(hostname) >> /etc/hosts + 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) echo "auto eth1" >> /etc/network/interfaces echo "iface eth1 inet static" >> /etc/network/interfaces echo " address $VPG_PRIVATE_IP_O" >> /etc/network/interfaces echo " netmask 255.255.255.0" >> /etc/network/interfaces + echo " mtu $MTU" >> /etc/network/interfaces + + VPG_PRIVATE_IP_1=$(cat /opt/config/vpg_private_ip_1.txt) + echo "auto eth2" >> /etc/network/interfaces + echo "iface eth2 inet static" >> /etc/network/interfaces + echo " address $VPG_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 fi # Download required dependencies