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
e91b2815
Commit
e91b2815
authored
14 years ago
by
Bob Lantz
Browse files
Options
Downloads
Patches
Plain Diff
Moved waitForNode. Maybe candidate for util.py or static method...
parent
c2cc1aac
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/cli.py
+13
-10
13 additions, 10 deletions
mininet/cli.py
with
13 additions
and
10 deletions
mininet/cli.py
+
13
−
10
View file @
e91b2815
...
...
@@ -35,16 +35,6 @@
from
mininet.log
import
info
,
output
,
error
def
waitForNode
(
node
):
"
Wait for a node to finish, and print its output.
"
while
node
.
waiting
:
try
:
data
=
node
.
monitor
()
info
(
'
%s
'
%
data
)
except
KeyboardInterrupt
:
node
.
sendInt
()
class
CLI
(
Cmd
):
"
Simple command-line interface to talk to nodes.
"
...
...
@@ -228,3 +218,16 @@ def default( self, line ):
self
.
stdout
.
write
(
'
*** Unknown syntax: %s
\n
'
%
line
)
# pylint: enable-msg=W0613,R0201
# This function may be a candidate for util.py
def
waitForNode
(
node
):
"
Wait for a node to finish, and print its output.
"
while
node
.
waiting
:
try
:
data
=
node
.
monitor
()
info
(
'
%s
'
%
data
)
except
KeyboardInterrupt
:
node
.
sendInt
()
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