From 2dd8f3e01998676a96c20a93c48b626fd44c2345 Mon Sep 17 00:00:00 2001 From: Gary Kotton Date: Mon, 18 Feb 2013 12:31:27 +0000 Subject: [PATCH] LibvirtHybridOVSBridgeDriver update for STP Fixes bug 1129055 The patch will set the stp status as 'off' and the bridge forwarding delay to 0. Cherry picked from 7aeb17d5bbf20f6ffc1c8ccab71f5cbbb57be9a2 Change-Id: Id6874de0752a23646360590794773e7a7028a945 --- 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 8f6342f88c0..d9927eaeb88 100644 --- a/nova/virt/libvirt/vif.py +++ b/nova/virt/libvirt/vif.py @@ -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)