From 00cbb348a7677bd1a31575b7c2f41e33a402460c Mon Sep 17 00:00:00 2001 From: cody burkard <cody@onlab.us> Date: Tue, 9 Sep 2014 13:59:41 -0700 Subject: [PATCH] if we do not receive a ping and cannot parse output, return errorTuple --- mininet/net.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mininet/net.py b/mininet/net.py index 0ef0a043..d8836b3e 100755 --- a/mininet/net.py +++ b/mininet/net.py @@ -595,6 +595,8 @@ def _parsePingFull( pingOutput ): r += r'(\d+\.\d+)/(\d+\.\d+)/(\d+\.\d+)/(\d+\.\d+) ms' m = re.search( r, pingOutput ) if m is None: + if received == 0: + return errorTuple error( '*** Error: could not parse ping output: %s\n' % pingOutput ) return errorTuple -- GitLab