Revision b453e006 mininet/node.py
mininet/node.py | ||
---|---|---|
995 | 995 |
|
996 | 996 |
def checkListening( self ): |
997 | 997 |
"Make sure no controllers are running on our port" |
998 |
# Verify that Telnet is installed first: |
|
999 |
out, err, returnCode = errRun( "which telnet" ) |
|
1000 |
if 'telnet' not in out or returnCode != 0: |
|
1001 |
raise Exception( "Error running telnet to check for listening " |
|
1002 |
"controllers; please check that it is " |
|
1003 |
"installed." ) |
|
998 | 1004 |
listening = self.cmd( "echo A | telnet -e A %s %d" % |
999 | 1005 |
( self.ip, self.port ) ) |
1000 | 1006 |
if 'Unable' not in listening: |
Also available in: Unified diff