From 7aeb17d5bbf20f6ffc1c8ccab71f5cbbb57be9a2 Mon Sep 17 00:00:00 2001 From: Gary Kotton Date: Wed, 13 Mar 2013 08:12:58 +0000 Subject: [PATCH] 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 --- nova/virt/libvirt/vif.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nova/virt/libvirt/vif.py b/nova/virt/libvirt/vif.py index 68b0505aa46..c8a87bd3c88 100644 --- a/nova/virt/libvirt/vif.py +++ b/nova/virt/libvirt/vif.py @@ -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)