commit | 500f9a01a23a3383669ec6e90018388ef5599064 | [log] [tgz] |
---|---|---|
author | Shad Ansari <shad@opennetworking.org> | Fri Feb 04 21:15:24 2022 +0000 |
committer | Shad Ansari <shad@opennetworking.org> | Fri Feb 04 23:37:00 2022 +0000 |
tree | 59498b3eeac49e3474c930e5ae49312909534941 | |
parent | d88692c23d05822733a07dd5db887658a15d97ac [diff] [blame] |
Continuous ping Change-Id: Ieed8bd152819705586e06445df597c68da83722f
diff --git a/ping.py b/ping.py index 5903fd9..acd7911 100644 --- a/ping.py +++ b/ping.py
@@ -11,7 +11,7 @@ def ping(host): #log.debug("Pinging {}".format(host)) if host != None: - return subprocess.call(["ping", "-c", "1", "-W", "1", host], + return subprocess.call(["ping", "-c", "1", "-W", "2", host], stdout=subprocess.DEVNULL, stderr=subprocess.STDOUT) == 0 else: