Skip to content

Commit

Permalink
LibvirtHybridOVSBridgeDriver update for STP
Browse files Browse the repository at this point in the history
Fixes bug 1129055

The patch will set the stp status as 'off' and the bridge
forwarding delay to 0.

Cherry picked from 7aeb17d

Change-Id: Id6874de0752a23646360590794773e7a7028a945
  • Loading branch information
Gary Kotton committed Mar 20, 2013
1 parent cdc2386 commit 2dd8f3e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nova/virt/libvirt/vif.py
Expand Up @@ -217,6 +217,8 @@ def plug(self, instance, vif):

if not linux_net._device_exists(br_name):
utils.execute('brctl', 'addbr', br_name, run_as_root=True)
utils.execute('brctl', 'setfd', br_name, 0, run_as_root=True)
utils.execute('brctl', 'stp', br_name, 'off', run_as_root=True)

if not linux_net._device_exists(v2_name):
linux_net._create_veth_pair(v1_name, v2_name)
Expand Down

0 comments on commit 2dd8f3e

Please sign in to comment.