diff options
author | tomsou <soth@intracom-telecom.com> | 2017-05-25 12:58:33 +0000 |
---|---|---|
committer | tomsou <soth@intracom-telecom.com> | 2017-05-25 12:58:33 +0000 |
commit | 5d93773cd66119ac49d9feb171b5fc9108e53fca (patch) | |
tree | 82e0b7ec29479b19e781563a6926d7c2d824ddcc | |
parent | f27dee492379404be1570c37a2c76bdbe234abc4 (diff) |
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 <soth@intracom-telecom.com>
-rw-r--r-- | sdnvpn/lib/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
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" |