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
3ac5cafe
Commit
3ac5cafe
authored
10 years ago
by
Bob Lantz
Browse files
Options
Downloads
Patches
Plain Diff
Fix code minor code check errors
parent
a7ad7390
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
examples/clustercli.py
+2
-0
2 additions, 0 deletions
examples/clustercli.py
mininet/node.py
+3
-3
3 additions, 3 deletions
mininet/node.py
with
5 additions
and
3 deletions
examples/clustercli.py
+
2
−
0
View file @
3ac5cafe
...
...
@@ -30,12 +30,14 @@ def do_plot( self, _line ):
global
nx
,
plt
if
not
nx
:
try
:
# pylint: disable=import-error
import
networkx
nx
=
networkx
# satisfy pylint
from
matplotlib
import
pyplot
plt
=
pyplot
# satisfiy pylint
import
pygraphviz
assert
pygraphviz
# silence pyflakes
# pylint: enable=import-error
except
ImportError
:
error
(
'
plot requires networkx, matplotlib and pygraphviz -
'
'
please install them and try again
\n
'
)
...
...
This diff is collapsed.
Click to expand it.
mininet/node.py
+
3
−
3
View file @
3ac5cafe
...
...
@@ -52,7 +52,6 @@
import
signal
import
select
from
subprocess
import
Popen
,
PIPE
from
operator
import
or_
from
time
import
sleep
from
mininet.log
import
info
,
error
,
warn
,
debug
...
...
@@ -1130,11 +1129,12 @@ def controllerUUIDs( self, update=False ):
update: update cached value
"""
if
not
self
.
_uuids
or
update
:
controllers
=
self
.
cmd
(
'
ovs-vsctl -- get Bridge
'
,
self
,
'
Controller
'
).
strip
()
'
Controller
'
).
strip
()
if
controllers
.
startswith
(
'
[
'
)
and
controllers
.
endswith
(
'
]
'
):
controllers
=
controllers
[
1
:
-
1
]
if
controllers
:
self
.
_uuids
=
[
c
.
strip
()
for
c
in
controllers
.
split
(
'
,
'
)
]
self
.
_uuids
=
[
c
.
strip
()
for
c
in
controllers
.
split
(
'
,
'
)
]
return
self
.
_uuids
def
connected
(
self
):
...
...
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