From 54c51c0299a6be4a15ccb84225b8df1f1c2b4be7 Mon Sep 17 00:00:00 2001 From: Bob Lantz Date: Mon, 6 Aug 2012 11:41:00 -0700 Subject: [PATCH] Fix whitespace and change no controller exception to warning. --- mininet/node.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/mininet/node.py b/mininet/node.py index d201dff..0a20d29 100644 --- a/mininet/node.py +++ b/mininet/node.py @@ -1075,10 +1075,9 @@ class RemoteController( Controller ): return def checkListening( self ): - "Ensure that the remote controller is accessible" + "Warn if remote controller is not accessible" listening = self.cmd( "echo A | telnet -e A %s %d" % ( self.ip, self.port ) ) if 'Unable' in listening: - raise Exception( "Unable to contact the remote controller" - " at %s:%d\n" % (self.ip, self.port)) - + warn( "Unable to contact the remote controller" + " at %s:%d\n" % ( self.ip, self.port ) )