From 5d93773cd66119ac49d9feb171b5fc9108e53fca Mon Sep 17 00:00:00 2001 From: tomsou Date: Thu, 25 May 2017 12:58:33 +0000 Subject: Fix failure in router association- testcase8 Due to some latency at the creation of the instance 8-1 somitimes the router association between 'sdnvpn-8-1-router' and net 'sdnvpn-8-2' fails. The case could be more robust, increasing the number of ping tries from its current value (=1) JIRA: SDNVPN-102 Change-Id: I3b9701c40f1221cfebc540d312b61bb881389762 Signed-off-by: tomsou --- sdnvpn/lib/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdnvpn/lib/utils.py b/sdnvpn/lib/utils.py index f2e65a6..3bac483 100644 --- a/sdnvpn/lib/utils.py +++ b/sdnvpn/lib/utils.py @@ -154,7 +154,7 @@ def generate_ping_userdata(ips_array): "while true; do\n" " for i do\n" " ip=$i\n" - " ping -c 1 $ip 2>&1 >/dev/null\n" + " ping -c 10 $ip 2>&1 >/dev/null\n" " RES=$?\n" " if [ \"Z$RES\" = \"Z0\" ] ; then\n" " echo ping $ip OK\n" -- cgit 1.2.3-korg