summaryrefslogtreecommitdiffstats
path: root/vnfs/vLB/scripts/v_dns_install.sh
diff options
context:
space:
mode:
authorMarco Platania <platania@research.att.com>2017-08-15 13:44:48 -0400
committerMarco Platania <platania@research.att.com>2017-08-15 13:44:48 -0400
commita445ef826ac13e271f89f3e6b221df2d0be3d623 (patch)
tree9d7c978f5ec9f95de0853914ac0095cf29e96cee /vnfs/vLB/scripts/v_dns_install.sh
parent0f379776bf59d6f0faf5c8e24996eeaf6bbb6239 (diff)
Update vLB to Ubuntu 1604 and VPP 1707
vLB based on Ubuntu 1404 and VPP 1609 doesn't work in some OpenStack labs Change-Id: Ibbd904d0eed1f02b7aca2d173e469c53f235f700 Issue-ID: UCA-34 Signed-off-by: Marco Platania <platania@research.att.com>
Diffstat (limited to 'vnfs/vLB/scripts/v_dns_install.sh')
-rw-r--r--vnfs/vLB/scripts/v_dns_install.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/vnfs/vLB/scripts/v_dns_install.sh b/vnfs/vLB/scripts/v_dns_install.sh
index 83441ac9..19dc047e 100644
--- a/vnfs/vLB/scripts/v_dns_install.sh
+++ b/vnfs/vLB/scripts/v_dns_install.sh
@@ -92,4 +92,17 @@ sleep 1
cd /opt
mv vdns.sh /etc/init.d
update-rc.d vdns.sh defaults
+
+# Rename network interface in openstack Ubuntu 16.04 images. Then, reboot the VM to pick up changes
+if [[ $CLOUD_ENV != "rackspace" ]]
+then
+ sed -i "s/GRUB_CMDLINE_LINUX=.*/GRUB_CMDLINE_LINUX=\"net.ifnames=0 biosdevname=0\"/g" /etc/default/grub
+ grub-mkconfig -o /boot/grub/grub.cfg
+ sed -i "s/ens[0-9]*/eth0/g" /etc/network/interfaces.d/*.cfg
+ sed -i "s/ens[0-9]*/eth0/g" /etc/udev/rules.d/70-persistent-net.rules
+ echo 'network: {config: disabled}' >> /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg
+ echo "APT::Periodic::Unattended-Upgrade \"0\";" >> /etc/apt/apt.conf.d/10periodic
+ reboot
+fi
+
./v_dns_init.sh \ No newline at end of file