Skip to content
Snippets Groups Projects
Commit e91b2815 authored by Bob Lantz's avatar Bob Lantz
Browse files

Moved waitForNode. Maybe candidate for util.py or static method...

parent c2cc1aac
No related branches found
No related tags found
No related merge requests found
......@@ -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()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment