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
38addf2e
Commit
38addf2e
authored
10 years ago
by
Bob Lantz
Browse files
Options
Downloads
Patches
Plain Diff
Add alias + switch: { 'ovs': OVSSwitch, 'lxbr': LinuxBridge }
parent
3878c000
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bin/mn
+7
-3
7 additions, 3 deletions
bin/mn
mininet/nodelib.py
+2
-3
2 additions, 3 deletions
mininet/nodelib.py
with
9 additions
and
6 deletions
bin/mn
+
7
−
3
View file @
38addf2e
...
...
@@ -25,8 +25,9 @@ from mininet.cli import CLI
from
mininet.log
import
lg
,
LEVELS
,
info
,
debug
,
error
from
mininet.net
import
Mininet
,
MininetWithControlNet
,
VERSION
from
mininet.node
import
(
Host
,
CPULimitedHost
,
Controller
,
OVSController
,
NOX
,
RemoteController
,
UserSwitch
,
OVS
Kernel
Switch
,
NOX
,
RemoteController
,
UserSwitch
,
OVSSwitch
,
OVSLegacyKernelSwitch
,
IVSSwitch
)
from
mininet.nodelib
import
LinuxBridge
from
mininet.link
import
Link
,
TCLink
from
mininet.topo
import
SingleSwitchTopo
,
LinearTopo
,
SingleSwitchReversedTopo
from
mininet.topolib
import
TreeTopo
...
...
@@ -44,9 +45,12 @@ TOPOS = { 'minimal': lambda: SingleSwitchTopo( k=2 ),
SWITCHDEF
=
'
ovsk
'
SWITCHES
=
{
'
user
'
:
UserSwitch
,
'
ovsk
'
:
OVSKernelSwitch
,
'
ovs
'
:
OVSSwitch
,
# Keep ovsk for compatibility with 2.0
'
ovsk
'
:
OVSSwitch
,
'
ovsl
'
:
OVSLegacyKernelSwitch
,
'
ivs
'
:
IVSSwitch
}
'
ivs
'
:
IVSSwitch
,
'
lxbr
'
:
LinuxBridge
}
HOSTDEF
=
'
proc
'
HOSTS
=
{
'
proc
'
:
Host
,
...
...
This diff is collapsed.
Click to expand it.
mininet/nodelib.py
+
2
−
3
View file @
38addf2e
"""
Package: nodelib
Node Library for Mininet
This contains additional
n
ode types which you may find to be useful
This contains additional
N
ode types which you may find to be useful
"""
from
mininet.net
import
Mininet
...
...
@@ -11,6 +9,7 @@
from
mininet.node
import
Switch
from
mininet.log
import
setLogLevel
,
info
class
LinuxBridge
(
Switch
):
"
Linux Bridge (with optional spanning tree)
"
...
...
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