Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mininet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Olaf Bergmann
mininet
Commits
5797f585
Commit
5797f585
authored
10 years ago
by
lantz
Browse files
Options
Downloads
Plain Diff
Merge pull request #303 from jhall11/pingall
Add a timeout parameter to the pingAll command
parents
15d2d769
4d1a9cdc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
mininet/cli.py
+2
-2
2 additions, 2 deletions
mininet/cli.py
mininet/net.py
+2
-2
2 additions, 2 deletions
mininet/net.py
with
4 additions
and
4 deletions
mininet/cli.py
+
2
−
2
View file @
5797f585
...
...
@@ -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.
"
...
...
This diff is collapsed.
Click to expand it.
mininet/net.py
+
2
−
2
View file @
5797f585
...
...
@@ -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.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment