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

Removed debugging printing.

Note now that we can pass options into switches; for example,
we could enable stp with Switch( 's1', opts='--stp' ).
parent 3758da2e
No related branches found
No related tags found
No related merge requests found
......@@ -468,7 +468,6 @@ def __init__( self, name, dp=None, **kwargs ):
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 @@ def start( self, controllers ):
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 + ' &' )
......
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