aboutsummaryrefslogtreecommitdiffstats
path: root/vnfs
diff options
context:
space:
mode:
authorMarco Platania <platania@research.att.com>2017-05-18 09:39:59 -0400
committerMarco Platania <platania@research.att.com>2017-05-18 09:39:59 -0400
commitbf3bb2e3d96c321d3ef8f0ed32b0600cf0736408 (patch)
tree5b299b8aee29a2df0fe2f184f383ffcb4c8a80fe /vnfs
parent0e6ed6d79983a9726ff6fe699d921356c4c5cc2f (diff)
Assign public IP to vLB VM
Change-Id: I30d2a21b24e2c5b3985307444408c30319886f9d Signed-off-by: Marco Platania <platania@research.att.com>
Diffstat (limited to 'vnfs')
-rw-r--r--vnfs/vLB/scripts/v_dns_install.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/vnfs/vLB/scripts/v_dns_install.sh b/vnfs/vLB/scripts/v_dns_install.sh
index 5e1d55bf..78c992f8 100644
--- a/vnfs/vLB/scripts/v_dns_install.sh
+++ b/vnfs/vLB/scripts/v_dns_install.sh
@@ -17,7 +17,14 @@ then
echo " address $VDNS_PRIVATE_IP_O" >> /etc/network/interfaces
echo " netmask 255.255.255.0" >> /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
+
ifup eth1
+ ifup eth2
fi
# Download required dependencies