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
19dd7f70
Commit
19dd7f70
authored
10 years ago
by
cody burkard
Browse files
Options
Downloads
Patches
Plain Diff
switched back to node.cmd for OVS commands. this is faster..
parent
42cdda38
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
mininet/node.py
+3
-6
3 additions, 6 deletions
mininet/node.py
with
3 additions
and
6 deletions
mininet/node.py
+
3
−
6
View file @
19dd7f70
...
...
@@ -1092,8 +1092,7 @@ def start( self, controllers ):
raise
Exception
(
'
OVS kernel switch does not work in a namespace
'
)
# Annoyingly, --if-exists option seems not to work
self
.
sendCmd
(
'
ovs-vsctl del-br
'
,
self
)
self
.
waiting
=
False
self
.
cmd
(
'
ovs-vsctl del-br
'
,
self
)
int
(
self
.
dpid
,
16
)
# DPID must be a hex string
# Interfaces and controllers
intfs
=
'
'
.
join
(
'
-- add-port %s %s
'
%
(
self
,
intf
)
+
...
...
@@ -1114,12 +1113,10 @@ def start( self, controllers ):
'
-- set-controller %s %s
'
%
(
self
,
clist
)
)
# Construct ovs-vsctl commands for old versions of OVS
else
:
self
.
sendCmd
(
'
ovs-vsctl add-br
'
,
self
)
self
.
waiting
=
False
self
.
cmd
(
'
ovs-vsctl add-br
'
,
self
)
for
intf
in
self
.
intfList
():
if
not
intf
.
IP
():
self
.
sendCmd
(
'
ovs-vsctl add-port
'
,
self
,
intf
)
self
.
waiting
=
False
self
.
cmd
(
'
ovs-vsctl add-port
'
,
self
,
intf
)
cmd
=
(
'
ovs-vsctl set Bridge %s
'
%
self
+
'
other_config:datapath-id=%s
'
%
self
.
dpid
+
'
-- set-fail-mode %s %s
'
%
(
self
,
self
.
failMode
)
+
...
...
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