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

Ensure dpid is a valid hex string in OVSSwitch

parent 33e39a24
No related branches found
No related tags found
No related merge requests found
......@@ -989,6 +989,7 @@ def start( self, controllers ):
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 )
......
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