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
299925c2
Commit
299925c2
authored
14 years ago
by
Brandon Heller
Committed by
Bob Lantz
14 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add more param choices for iperf udp on CLI
parent
7d83d462
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
+18
-3
18 additions, 3 deletions
mininet/cli.py
mininet/net.py
+0
-4
0 additions, 4 deletions
mininet/net.py
with
18 additions
and
7 deletions
mininet/cli.py
+
18
−
3
View file @
299925c2
...
...
@@ -168,10 +168,25 @@ def do_iperf( self, line ):
error
(
'
invalid number of args: iperf src dst
\n
'
)
def
do_iperfudp
(
self
,
line
):
"
Simple iperf
UD
P test between two hosts.
"
"
Simple iperf
TC
P test between two
(optionally specified)
hosts.
"
args
=
line
.
split
()
udpBw
=
args
[
0
]
if
len
(
args
)
else
'
10M
'
self
.
mn
.
iperfUdp
(
udpBw
)
if
not
args
:
self
.
mn
.
iperf
(
l4Type
=
'
UDP
'
)
elif
len
(
args
)
==
3
:
udpBw
=
args
[
0
]
hosts
=
[]
err
=
False
for
arg
in
args
[
1
:
3
]:
if
arg
not
in
self
.
nodemap
:
err
=
True
error
(
"
node
'
%s
'
not in network
\n
"
%
arg
)
else
:
hosts
.
append
(
self
.
nodemap
[
arg
]
)
if
not
err
:
self
.
mn
.
iperf
(
hosts
,
l4Type
=
'
UDP
'
,
udpBw
=
udpBw
)
else
:
error
(
'
invalid number of args: iperfudp bw src dst
\n
'
+
'
bw examples: 10M
\n
'
)
def
do_intfs
(
self
,
line
):
"
List interfaces.
"
...
...
This diff is collapsed.
Click to expand it.
mininet/net.py
+
0
−
4
View file @
299925c2
...
...
@@ -505,10 +505,6 @@ def iperf( self, hosts=None, l4Type='TCP', udpBw='10M' ):
output
(
'
*** Results: %s
\n
'
%
result
)
return
result
def
iperfUdp
(
self
,
udpBw
=
'
10M
'
):
"
Run iperf UDP test.
"
return
self
.
iperf
(
l4Type
=
'
UDP
'
,
udpBw
=
udpBw
)
def
configLinkStatus
(
self
,
src
,
dst
,
status
):
"""
Change status of src <-> dst links.
src: node name
...
...
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