From 1a658054ab0b594e577cb59595a70b4817772f72 Mon Sep 17 00:00:00 2001 From: Bob Lantz Date: Wed, 26 Jun 2013 05:00:30 -0700 Subject: [PATCH] Ensure dpid is a valid hex string in OVSSwitch --- mininet/node.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mininet/node.py b/mininet/node.py index d6a66ba..9656499 100644 --- a/mininet/node.py +++ b/mininet/node.py @@ -989,6 +989,7 @@ class OVSSwitch( Switch ): self.cmd( 'ovs-vsctl add-br', self ) if self.datapath == 'user': self.cmd( 'ovs-vsctl set bridge', self,'datapath_type=netdev' ) + int( self.dpid, 16 ) # DPID must be a hex string self.cmd( 'ovs-vsctl -- set Bridge', self, 'other_config:datapath-id=' + self.dpid ) self.cmd( 'ovs-vsctl set-fail-mode', self, self.failMode )