From b97c1dbd56f1798367d5a4c589ccdd5d4d10d263 Mon Sep 17 00:00:00 2001 From: Bob Lantz Date: Sun, 13 May 2012 15:11:41 -0700 Subject: [PATCH] Set dpid on OVSSwitch. --- mininet/node.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mininet/node.py b/mininet/node.py index 8a5e99121..c12ae085d 100644 --- a/mininet/node.py +++ b/mininet/node.py @@ -937,6 +937,8 @@ def start( self, controllers ): # Annoyingly, --if-exists option seems not to work self.cmd( 'ovs-vsctl del-br', self ) self.cmd( 'ovs-vsctl add-br', self ) + self.cmd( 'ovs-vsctl -- set Bridge', self, + 'other_config:datapath-id=' + self.dpid ) self.cmd( 'ovs-vsctl set-fail-mode', self, self.failMode ) for intf in self.intfList(): if not intf.IP():