Set dpid on OVSSwitch.

This commit is contained in:
Bob Lantz
2012-05-13 15:11:41 -07:00
parent d75e39ac61
commit b97c1dbd56
+2
View File
@@ -937,6 +937,8 @@ class OVSSwitch( Switch ):
# Annoyingly, --if-exists option seems not to work # Annoyingly, --if-exists option seems not to work
self.cmd( 'ovs-vsctl del-br', self ) self.cmd( 'ovs-vsctl del-br', self )
self.cmd( 'ovs-vsctl add-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 ) self.cmd( 'ovs-vsctl set-fail-mode', self, self.failMode )
for intf in self.intfList(): for intf in self.intfList():
if not intf.IP(): if not intf.IP():