X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=vnfs%2FvLB%2Fscripts%2Fv_lb_install.sh;fp=vnfs%2FvLB%2Fscripts%2Fv_lb_install.sh;h=5b84f21e78f723b799eb4b70cc2b9e482c7a4e05;hb=25a40e272c013657efd1c8efd4e02cde167422c9;hp=b5f6fd6c28d91d5ec6a3a3c11dee0a21c172231a;hpb=bbc06c1328bb57ad78948f9c0cb14a697780abf3;p=demo.git diff --git a/vnfs/vLB/scripts/v_lb_install.sh b/vnfs/vLB/scripts/v_lb_install.sh index b5f6fd6c..5b84f21e 100644 --- a/vnfs/vLB/scripts/v_lb_install.sh +++ b/vnfs/vLB/scripts/v_lb_install.sh @@ -45,6 +45,13 @@ chmod +x /opt/FDserver/dnsmembership.sh chmod +x /opt/FDserver/add_dns.sh chmod +x /opt/FDserver/remove_dns.sh +# Create a file with public IP of the VM if it doesn't exist. This is for VMs directly attached to the external network. +if [ ! -e /opt/config/local_public_ipaddr.txt ] +then + IP_ADDRESS=$(ifconfig eth0 | grep "inet addr" | tr -s ' ' | cut -d' ' -f3 | cut -d':' -f2) + echo $IP_ADDRESS > /opt/config/local_public_ipaddr.txt +fi + # Install VPP export UBUNTU="trusty" export RELEASE=".stable.1609"