Skip to content
Snippets Groups Projects
Commit 5797f585 authored by lantz's avatar lantz
Browse files

Merge pull request #303 from jhall11/pingall

Add a timeout parameter to the pingAll command
parents 15d2d769 4d1a9cdc
No related branches found
No related tags found
No related merge requests found
......@@ -165,9 +165,9 @@ def do_px( self, line ):
# pylint: enable-msg=W0703,W0122
def do_pingall( self, _line ):
def do_pingall( self, line ):
"Ping between all hosts."
self.mn.pingAll()
self.mn.pingAll( line )
def do_pingpair( self, _line ):
"Ping between first two hosts, useful for testing."
......
......@@ -579,10 +579,10 @@ def pingFull( self, hosts=None, timeout=None ):
(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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment