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
d7e01bb8
Commit
d7e01bb8
authored
10 years ago
by
Bob Lantz
Browse files
Options
Downloads
Patches
Plain Diff
Pass code check
parent
340bf3cb
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
examples/cluster.py
+5
-4
5 additions, 4 deletions
examples/cluster.py
with
5 additions
and
4 deletions
examples/cluster.py
+
5
−
4
View file @
d7e01bb8
...
...
@@ -111,7 +111,7 @@ class ClusterCleanup( object ):
inited
=
False
serveruser
=
{}
@classmethod
def
add
(
cls
,
server
,
user
=
''
):
"
Add an entry to server: user dict
"
...
...
@@ -120,7 +120,7 @@ def add( cls, server, user='' ):
if
not
user
:
user
=
findUser
()
cls
.
serveruser
[
server
]
=
user
@classmethod
def
cleanup
(
cls
):
"
Clean up
"
...
...
@@ -333,7 +333,7 @@ def batchStartup( cls, switches, **_kwargs ):
switch
=
group
[
0
]
OVSSwitch
.
batchStartup
(
group
,
run
=
switch
.
cmd
)
return
switches
@classmethod
def
batchShutdown
(
cls
,
switches
,
**
_kwargs
):
"
Stop switches in per-server batches
"
...
...
@@ -454,7 +454,8 @@ def makeTunnel( self, node1, node2, intfname1, intfname2,
if
not
addr
:
result
=
node
.
cmd
(
'
ip link set tap9 name
'
,
intf
)
else
:
result
=
node
.
cmd
(
'
ip link set tap9 name
'
,
intf
,
'
address
'
,
addr
)
result
=
node
.
cmd
(
'
ip link set tap9 name
'
,
intf
,
'
address
'
,
addr
)
if
result
:
raise
Exception
(
'
error renaming %s: %s
'
%
(
intf
,
result
)
)
return
tunnel
...
...
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