From e55cbef182ba3ac3b2b5abeb8140903cd0c4b8c9 Mon Sep 17 00:00:00 2001 From: Bob Lantz Date: Thu, 22 Apr 2010 17:12:22 -0700 Subject: [PATCH] Removed debugging printing. Note now that we can pass options into switches; for example, we could enable stp with Switch( 's1', opts='--stp' ). --- mininet/node.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mininet/node.py b/mininet/node.py index 6a3673b..b9c9077 100644 --- a/mininet/node.py +++ b/mininet/node.py @@ -468,7 +468,6 @@ class KernelSwitch( Switch ): dp: netlink id (0, 1, 2, ...) defaultMAC: default MAC as string; random value if None""" Switch.__init__( self, name, **kwargs ) - print kwargs, "opts=", self.opts self.dp = 'nl:%i' % dp self.intf = 'of%i' % dp if self.inNamespace: @@ -498,7 +497,7 @@ class KernelSwitch( Switch ): self.cmd( 'dpctl', 'addif', self.dp, ' '.join( intfs ) ) # Run protocol daemon controller = controllers[ 0 ] - self.cmdPrint( 'ofprotocol ' + self.dp + + self.cmd( 'ofprotocol ' + self.dp + ' tcp:%s:%d' % ( controller.IP(), controller.port ) + ' --fail=closed ' + self.opts + ' 1> ' + ofplog + ' 2>' + ofplog + ' &' )