Restart networking before checking public connectivity

Restart resolved to apply DNS received via dhcp.

Related-Prod: PRODX-3456
Change-Id: I909165bfb0da623fd34ecb78751ae0edb4a6b828
diff --git a/de/heat-templates/scripts/launch.sh b/de/heat-templates/scripts/launch.sh
index 6f5704e..7c8a939 100644
--- a/de/heat-templates/scripts/launch.sh
+++ b/de/heat-templates/scripts/launch.sh
@@ -66,9 +66,10 @@
 DEVOPS_UTILS_DST=/usr/share/devops-utils
 
 #Wait external network
-sed -i 's/#DNS=/DNS=4.2.2.1/g' /etc/systemd/resolved.conf
+netplan apply
 systemctl restart systemd-resolved
-curl --connect-timeout 10 --retry 6 --retry-delay 10 ${DEVOPS_UTILS_REPO} || (sleep 1; /bin/false)
+sleep 15
+curl --connect-timeout 10 --retry 12 --retry-delay 10 ${DEVOPS_UTILS_REPO} || (sleep 1; /bin/false)
 
 git clone ${DEVOPS_UTILS_REPO} ${DEVOPS_UTILS_DST}
 pushd ${DEVOPS_UTILS_DST}