From 915c6d4a60cb7402835caf83888406b4155b7d5a Mon Sep 17 00:00:00 2001 From: Brandon Heller Date: Thu, 15 Nov 2012 00:45:39 -0800 Subject: [PATCH] node: Use space, rather than comma, to separate controllers for OVS Otherwise, OVS thinks the second controller is a parameter of the first, and only creates one controller entry as seen in 'ovs-vsctl show'. --- mininet/node.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mininet/node.py b/mininet/node.py index 2c3b0c8..7e0de3f 100644 --- a/mininet/node.py +++ b/mininet/node.py @@ -962,7 +962,7 @@ class OVSSwitch( Switch ): if not intf.IP(): self.attach( intf ) # Add controllers - clist = ','.join( [ 'tcp:%s:%d' % ( c.IP(), c.port ) + clist = ' '.join( [ 'tcp:%s:%d' % ( c.IP(), c.port ) for c in controllers ] ) self.cmd( 'ovs-vsctl set-controller', self, clist )