Skip to content

Commit

Permalink
Set dpid on OVSSwitch.
Browse files Browse the repository at this point in the history
  • Loading branch information
lantz committed May 13, 2012
1 parent d75e39a commit b97c1db
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mininet/node.py
Expand Up @@ -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():
Expand Down

1 comment on commit b97c1db

@lantz
Copy link
Member Author

@lantz lantz commented on b97c1db May 13, 2012

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should fix issue #34.

Please sign in to comment.