-# Set private IP in /etc/network/interfaces manually in the presence of public interface
-# Some VM images don't add the private interface automatically, we have to do it during the component installation
-if [[ $CLOUD_ENV == "openstack_nofloat" ]]
-then
- #CIDR=$(cat /opt/config/oam_network_cidr.txt)
- #BITMASK=$(echo $CIDR | cut -d"/" -f2)
-
- # Compute the netmask based on the network cidr
- #if [[ $BITMASK == "8" ]]
- #then
- # NETMASK=255.0.0.0
- #elif [[ $BITMASK == "16" ]]
- #then
- # NETMASK=255.255.0.0
- #elif [[ $BITMASK == "24" ]]
- #then
- # NETMASK=255.255.255.0
- #fi
-
- echo "auto eth1" >> /etc/network/interfaces
- #echo "iface eth1 inet static" >> /etc/network/interfaces
- #echo " address $DCAE_IP_ADDR" >> /etc/network/interfaces
- #echo " netmask $NETMASK" >> /etc/network/interfaces
- echo "iface eth1 inet dhcp" >> /etc/network/interfaces
- echo " mtu $MTU" >> /etc/network/interfaces
- ifup eth1
-fi
-