From 554abdd57a4af84d4ac8a60f46f78f4802525f41 Mon Sep 17 00:00:00 2001
From: Bob Lantz <rlantz@cs.stanford.edu>
Date: Thu, 4 Dec 2014 08:37:39 -0800
Subject: [PATCH] warn -> debug in connected; change IVS class comment

---
 mininet/node.py | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/mininet/node.py b/mininet/node.py
index c0dcbd70..d6710863 100644
--- a/mininet/node.py
+++ b/mininet/node.py
@@ -888,8 +888,10 @@ def sendCmd( self, *cmd, **kwargs ):
 
     def connected( self ):
         "Is the switch connected to a controller? (override this method)"
-        warn( "Warning: connected() needs to be implemented in"
-              " Switch subclass %s\n" % self.__class__ )
+        # Assume that we are connected by default to whatever we need to
+        # be connected to. This should be overridden by any OpenFlow
+        # switch, but not by a standalone bridge.
+        debug( 'Assuming', repr( self ), 'is connected to a controller\n' )
         return True
 
     def __repr__( self ):
@@ -1219,7 +1221,7 @@ def start( self, controllers ):
 
 
 class IVSSwitch( Switch ):
-    """IVS virtual switch"""
+    "Indigo Virtual Switch"
 
     def __init__( self, name, verbose=False, **kwargs ):
         Switch.__init__( self, name, **kwargs )
-- 
GitLab