Add public interface to vLB in OpenStack
[demo.git] / vnfs / vLB / scripts / v_lb_install.sh
index 254a475..8bfe9fc 100644 (file)
@@ -17,14 +17,14 @@ then
        echo "    address $VLB_PRIVATE_IP_O" >> /etc/network/interfaces
        echo "    netmask 255.255.255.0" >> /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
+       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
 
        ifup eth1
-#      ifup eth2
+       ifup eth2
 fi
 
 # Download required dependencies