# change the password because this script is run on a passwordless cloud-image
echo 'ubuntu:opnfv' | chpasswd
+# dns fix
+
+echo "8.8.8.8" > /etc/resolvconf/resolv.conf.d/head
+resolvconf -u
+
# Wait for a floating IP
# as a workaround to NAT breakage
sleep 20
# Variables to be filled in with python
NEIGHBOR_IP=%s
OWN_IP=%s
+# directly access the instance from the external net without NAT
+EXT_NET_MASK=%s
+
+ip link set ens7 up
+ip addr add $OWN_IP/$EXT_NET_MASK dev ens7
ZEBRA_CONFIG_LOCATION="/etc/quagga/zebra.conf"
DAEMONS_FILE_LOCATION="/etc/quagga/daemons"
-BGPD_CONFIG_LOCATION="/etc/quagga/daemons"
+BGPD_CONFIG_LOCATION="/etc/quagga/bgpd.conf"
BGPD_LOG_FILE="/var/log/bgpd.log"
-DEBIAN_FONTEND=noninteractive apt-get update
+DEBIAN_FRONTEND=noninteractive apt-get update
DEBIAN_FRONTEND=noninteractive apt-get install quagga -y
touch $BGPD_LOG_FILE
end
CATEOF
chown quagga:quagga $BGPD_CONFIG_LOCATION
-
+service quagga restart
pgrep bgpd
pgrep zebra