summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorRadek Zetik <radekx.zetik@intel.com>2015-06-26 02:38:59 +0100
committerMaryam Tahhan <maryam.tahhan@intel.com>2015-07-17 08:50:48 +0000
commit613cea4f9a4765c0ca3ff56ba75492488772c7a3 (patch)
tree4b4932ca02546c4ac1f023f9b644fbdb1949d3c8 /core
parentd9c1a522d6a77eb4a61b674e65065b32c3d09b5b (diff)
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 <radekx.zetik@intel.com> Reviewed-by: Maryam Tahhan <maryam.tahhan@intel.com> Reviewed-by: Meghan Halton <meghan.halton@intel.com> Reviewed-by: Billy O Mahony <billy.o.mahony@intel.com> Reviewed-by: Martin Klozik <martinx.klozik@intel.com> Reviewed-by: Dino Simeon Madarang <dino.simeonx.madarang@intel.com>
Diffstat (limited to 'core')
-rw-r--r--core/vswitch_controller_p2p.py3
1 files changed, 3 insertions, 0 deletions
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