Revision c3ff5c37
b/snf-tools/synnefo_tools/burnin.py | ||
---|---|---|
604 | 604 |
|
605 | 605 |
def _ping_once(self, ipv6, ip): |
606 | 606 |
"""Test server responds to a single IPv4 or IPv6 ping""" |
607 |
cmd = "ping%s -c 2 -w 3 %s" % ("6" if ipv6 else "", ip)
|
|
607 |
cmd = "ping%s -c 7 -w 20 %s" % ("6" if ipv6 else "", ip)
|
|
608 | 608 |
ping = subprocess.Popen(cmd, shell=True, |
609 | 609 |
stdout=subprocess.PIPE, stderr=subprocess.PIPE) |
610 | 610 |
(stdout, stderr) = ping.communicate() |
... | ... | |
1058 | 1058 |
def _ping_once(self, ip): |
1059 | 1059 |
|
1060 | 1060 |
"""Test server responds to a single IPv4 or IPv6 ping""" |
1061 |
cmd = "ping -c 2 -w 3 %s" % (ip)
|
|
1061 |
cmd = "ping -c 7 -w 20 %s" % (ip)
|
|
1062 | 1062 |
ping = subprocess.Popen(cmd, shell=True, |
1063 | 1063 |
stdout=subprocess.PIPE, stderr=subprocess.PIPE) |
1064 | 1064 |
(stdout, stderr) = ping.communicate() |
Also available in: Unified diff