From 67b0760d2b123ee834f8552057aed0e68a282257 Mon Sep 17 00:00:00 2001 From: Dino Simeon Madarang Date: Thu, 15 Oct 2015 16:01:14 +0100 Subject: Stop OVS from generating misleading add-br errors Create bridge and set datapath_type in 1 transaction to prevent OVS from generating misleading error messages which jenkins considers as build errors. Update vswitch interface to include optional parameters. Change-Id: I668f474ea909b284f3726807aab42d52ae2fb504 JIRA: VSPERF-122 Signed-off-by: Dino Simeon Madarang Reviewed-by: Maryam Tahhan Reviewed-by: Billy O Mahony Reviewed-by: Gene Snider Reviewed-by: Martin Klozik Reviewed-by: Radek Zetik --- vswitches/ovs_vanilla.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vswitches/ovs_vanilla.py') diff --git a/vswitches/ovs_vanilla.py b/vswitches/ovs_vanilla.py index acea4ecb..04058d97 100644 --- a/vswitches/ovs_vanilla.py +++ b/vswitches/ovs_vanilla.py @@ -77,11 +77,11 @@ class OvsVanilla(IVSwitch): self._module_manager.remove_modules() - def add_switch(self, switch_name): + def add_switch(self, switch_name, params=None): """See IVswitch for general description """ bridge = OFBridge(switch_name) - bridge.create() + bridge.create(params) bridge.set_db_attribute('Open_vSwitch', '.', 'other_config:max-idle', '60000') self._bridges[switch_name] = bridge -- cgit 1.2.3-korg