summaryrefslogtreecommitdiffstats
path: root/vnfs
diff options
context:
space:
mode:
authorMarco Platania <platania@research.att.com>2017-04-25 10:48:04 -0400
committerMarco Platania <platania@research.att.com>2017-04-25 10:48:04 -0400
commit25a40e272c013657efd1c8efd4e02cde167422c9 (patch)
treeca6283dd18b6d4a8c314f60778bcfa51a75277fd /vnfs
parentbbc06c1328bb57ad78948f9c0cb14a697780abf3 (diff)
fix circular dependency in heat for vLB
Change-Id: I606d4d16b1dd48aaf1fdb81174c9edc1186daea2 Signed-off-by: Marco Platania <platania@research.att.com>
Diffstat (limited to 'vnfs')
-rw-r--r--vnfs/vLB/scripts/v_lb_install.sh7
1 files changed, 7 insertions, 0 deletions
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"