summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGary Kotton <gkotton@redhat.com>2013-03-13 08:12:58 +0000
committerGary Kotton <gkotton@redhat.com>2013-03-13 08:12:58 +0000
commit7aeb17d5bbf20f6ffc1c8ccab71f5cbbb57be9a2 (patch)
treeba421a34b7b8965f06d04797193e360e317e5b2e
parent99155de44615dbb5718bf7d20bf749ef49a4b507 (diff)
downloadnova-7aeb17d5bbf20f6ffc1c8ccab71f5cbbb57be9a2.tar.gz
nova-7aeb17d5bbf20f6ffc1c8ccab71f5cbbb57be9a2.tar.xz
nova-7aeb17d5bbf20f6ffc1c8ccab71f5cbbb57be9a2.zip
LibvirtGenericVIFDriver update for stp
Fixes bug 1129055 The patch will set the stp status as 'off' and the bridge forwarding delay to 0. Change-Id: Ie9c96caa797de623ef0b357c61f1b7233a7d869e
-rw-r--r--nova/virt/libvirt/vif.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/nova/virt/libvirt/vif.py b/nova/virt/libvirt/vif.py
index 68b0505aa..c8a87bd3c 100644
--- a/nova/virt/libvirt/vif.py
+++ b/nova/virt/libvirt/vif.py
@@ -351,6 +351,8 @@ class LibvirtGenericVIFDriver(LibvirtBaseVIFDriver):
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)