Add a timeout parameter to the pingAll command

This commit is contained in:
Jon Hall
2014-04-25 04:37:11 +00:00
committed by admin
parent bffe045267
commit 4d1a9cdc1d
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -578,10 +578,10 @@ class Mininet( object ):
(rttmin, rttavg, rttmax, rttdev) )
return all_outputs
def pingAll( self ):
def pingAll( self, timeout=None ):
"""Ping between all hosts.
returns: ploss packet loss percentage"""
return self.ping()
return self.ping( timeout=timeout )
def pingPair( self ):
"""Ping between first two hosts, useful for testing.