From 613cea4f9a4765c0ca3ff56ba75492488772c7a3 Mon Sep 17 00:00:00 2001 From: Radek Zetik Date: Fri, 26 Jun 2015 02:38:59 +0100 Subject: Add new biDirectional parameter for particular testcase This change introduces new parameter which sets the communication between ports either uni-directional or bi-directional. JIRA: VSPERF-27 Change-Id: I4eb06f5c91ef42147878cb68cbad24e69eb002c1 Signed-off-by: Radek Zetik Reviewed-by: Maryam Tahhan Reviewed-by: Meghan Halton Reviewed-by: Billy O Mahony Reviewed-by: Martin Klozik Reviewed-by: Dino Simeon Madarang --- core/vswitch_controller_p2p.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'core') diff --git a/core/vswitch_controller_p2p.py b/core/vswitch_controller_p2p.py index ceb29aa9..a71f42f5 100644 --- a/core/vswitch_controller_p2p.py +++ b/core/vswitch_controller_p2p.py @@ -62,6 +62,9 @@ class VswitchControllerP2P(IVswitchController): flow = add_ports_to_flow(_FLOW_TEMPLATE, phy1_number, phy2_number) self._vswitch.add_flow(BRIDGE_NAME, flow) + flow = add_ports_to_flow(_FLOW_TEMPLATE, phy2_number, phy1_number) + self._vswitch.add_flow(BRIDGE_NAME, flow) + except: self._vswitch.stop() raise -- cgit 1.2.3-korg