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
84ce84f5
Commit
84ce84f5
authored
10 years ago
by
Gregory Gee
Browse files
Options
Downloads
Patches
Plain Diff
Add parameter to set protocol list in OVSSwitch. Allows setting OpenFlow version.
s2 = net.addSwitch( 's2', protocols='OpenFlow13' )
parent
5b089770
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/node.py
+4
-1
4 additions, 1 deletion
mininet/node.py
with
4 additions
and
1 deletion
mininet/node.py
+
4
−
1
View file @
84ce84f5
...
...
@@ -993,7 +993,7 @@ class OVSSwitch( Switch ):
"
Open vSwitch switch. Depends on ovs-vsctl.
"
def
__init__
(
self
,
name
,
failMode
=
'
secure
'
,
datapath
=
'
kernel
'
,
inband
=
False
,
**
params
):
inband
=
False
,
protocols
=
None
,
**
params
):
"""
Init.
name: name for switch
failMode: controller loss behavior (secure|open)
...
...
@@ -1003,6 +1003,7 @@ def __init__( self, name, failMode='secure', datapath='kernel',
self
.
failMode
=
failMode
self
.
datapath
=
datapath
self
.
inband
=
inband
self
.
protocols
=
protocols
@classmethod
def
setup
(
cls
):
...
...
@@ -1120,6 +1121,8 @@ def start( self, controllers ):
'
other-config:disable-in-band=true
'
%
self
)
if
self
.
datapath
==
'
user
'
:
cmd
+=
'
-- set bridge %s datapath_type=netdev
'
%
self
if
self
.
protocols
:
cmd
+=
'
-- set bridge %s protocols=%s
'
%
(
self
,
self
.
protocols
)
# Reconnect quickly to controllers (1s vs. 15s max_backoff)
for
uuid
in
self
.
controllerUUIDs
():
if
uuid
.
count
(
'
-
'
)
!=
4
:
...
...
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