From 3744638e5c2c684c6a7d6773625cc5267a5e6481 Mon Sep 17 00:00:00 2001 From: Brandon Heller Date: Thu, 15 Nov 2012 00:47:22 -0800 Subject: [PATCH] node: add OVS passive listening support --- mininet/node.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mininet/node.py b/mininet/node.py index 7e0de3f..a065533 100644 --- a/mininet/node.py +++ b/mininet/node.py @@ -964,6 +964,8 @@ class OVSSwitch( Switch ): # Add controllers clist = ' '.join( [ 'tcp:%s:%d' % ( c.IP(), c.port ) for c in controllers ] ) + if self.listenPort: + clist += ' ptcp:%s' % self.listenPort self.cmd( 'ovs-vsctl set-controller', self, clist ) def stop( self ):