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
e3c074b8
Commit
e3c074b8
authored
13 years ago
by
Bob Lantz
Browse files
Options
Downloads
Patches
Plain Diff
Remove deprecated ControllerParams (for now.)
parent
9addfc13
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
mininet/test/test_nets.py
+4
-12
4 additions, 12 deletions
mininet/test/test_nets.py
with
4 additions
and
12 deletions
mininet/test/test_nets.py
+
4
−
12
View file @
e3c074b8
...
...
@@ -7,14 +7,12 @@
from
mininet.net
import
init
,
Mininet
from
mininet.node
import
Host
,
Controller
,
ControllerParams
# from mininet.node import KernelSwitch
from
mininet.node
import
UserSwitch
,
OVSKernelSwitch
from
mininet.topo
import
SingleSwitchTopo
,
LinearTopo
from
mininet.log
import
setLogLevel
SWITCHES
=
{
'
user
'
:
UserSwitch
,
'
ovsk
'
:
OVSKernelSwitch
,
# 'kernel': KernelSwitch
}
...
...
@@ -25,9 +23,7 @@ def testMinimal( self ):
"
Ping test with both datapaths on minimal topology
"
init
()
for
switch
in
SWITCHES
.
values
():
controllerParams
=
ControllerParams
(
'
10.0.0.0
'
,
8
)
mn
=
Mininet
(
SingleSwitchTopo
(),
switch
,
Host
,
Controller
,
controllerParams
)
mn
=
Mininet
(
SingleSwitchTopo
(),
switch
,
Host
,
Controller
)
dropped
=
mn
.
run
(
mn
.
ping
)
self
.
assertEqual
(
dropped
,
0
)
...
...
@@ -35,9 +31,7 @@ def testSingle5( self ):
"
Ping test with both datapaths on 5-host single-switch topology
"
init
()
for
switch
in
SWITCHES
.
values
():
controllerParams
=
ControllerParams
(
'
10.0.0.0
'
,
8
)
mn
=
Mininet
(
SingleSwitchTopo
(
k
=
5
),
switch
,
Host
,
Controller
,
controllerParams
)
mn
=
Mininet
(
SingleSwitchTopo
(
k
=
5
),
switch
,
Host
,
Controller
)
dropped
=
mn
.
run
(
mn
.
ping
)
self
.
assertEqual
(
dropped
,
0
)
...
...
@@ -49,13 +43,11 @@ def testLinear5( self ):
"
Ping test with both datapaths on a 5-switch topology
"
init
()
for
switch
in
SWITCHES
.
values
():
controllerParams
=
ControllerParams
(
'
10.0.0.0
'
,
8
)
mn
=
Mininet
(
LinearTopo
(
k
=
5
),
switch
,
Host
,
Controller
,
controllerParams
)
mn
=
Mininet
(
LinearTopo
(
k
=
5
),
switch
,
Host
,
Controller
)
dropped
=
mn
.
run
(
mn
.
ping
)
self
.
assertEqual
(
dropped
,
0
)
if
__name__
==
'
__main__
'
:
setLogLevel
(
'
warning
'
)
setLogLevel
(
'
warning
'
)
unittest
.
main
()
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