Skip to content

Commit

Permalink
LibvirtGenericVIFDriver 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.

Change-Id: Ie9c96caa797de623ef0b357c61f1b7233a7d869e
  • Loading branch information
Gary Kotton committed Mar 13, 2013
1 parent 99155de commit 7aeb17d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nova/virt/libvirt/vif.py
Expand Up @@ -351,6 +351,8 @@ def plug_ovs_hybrid(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 7aeb17d

Please sign in to comment.