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

Consistently use tcp:%s:%d for controller IP address format.

(In user, kernel and ovsk switch classes.)
parent 68f5925e
No related branches found
No related tags found
No related merge requests found
......@@ -440,7 +440,8 @@ def start( self, controllers ):
' punix:/tmp/' + self.name +
' 1> ' + ofdlog + ' 2> ' + ofdlog + ' &' )
self.cmd( 'ofprotocol unix:/tmp/' + self.name +
' tcp:' + controller.IP() + ' --fail=closed ' + self.opts +
' tcp:%s:%d' % ( controller.IP(), controller.port ) +
' --fail=closed ' + self.opts +
' 1> ' + ofplog + ' 2>' + ofplog + ' &' )
def stop( self ):
......@@ -544,7 +545,7 @@ def start( self, controllers ):
# Run protocol daemon
controller = controllers[ 0 ]
self.cmd( 'ovs-openflowd ' + self.dp +
' tcp:%s:%i' % ( controller.IP(), controller.port ) +
' tcp:%s:%d' % ( controller.IP(), controller.port ) +
' --fail=closed ' + self.opts +
' 1>' + ofplog + ' 2>' + ofplog + '&' )
self.execed = False
......
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