From 6f2b9b9375db45bd01d4cf8c308c8b5166a55ca0 Mon Sep 17 00:00:00 2001 From: alarig Date: Thu, 24 Jan 2019 21:13:13 +0100 Subject: [PATCH] Send pings only if the VM has been found, and do it in background (because python slowlyness) --- creationRoutesVM.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/creationRoutesVM.sh b/creationRoutesVM.sh index 65916ce..b1b9f02 100755 --- a/creationRoutesVM.sh +++ b/creationRoutesVM.sh @@ -241,14 +241,14 @@ for ID_RANGE_V6 in ${ID_RANGES_V6}; do fi GW_IPv6="fe80::204:92:100:1" + + # Send ICMP to update ARP/NDP cache + send-icmp.py ${MAC} ${IFACE} ${VM_IPV4} ${GW_IPv4} ${VM_NH} ${GW_IPv6} & else # En cas d'echec, on continue de parcourir les autres RANGES echo "Valeur vide ou ne correspond pas à un range IPV6" fi done -# Send ICMP to update ARP/NDP cache -send-icmp.py ${MAC} ${IFACE} ${VM_IPV4} ${GW_IPv4} ${VM_NH} ${GW_IPv6} - write_log INFO 'Script ended' exit 0