if we do not receive a ping and cannot parse output, return errorTuple

This commit is contained in:
cody burkard
2014-09-09 13:59:41 -07:00
parent cde6c3aaf4
commit 00cbb348a7
+2
View File
@@ -595,6 +595,8 @@ class Mininet( object ):
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