aboutsummaryrefslogtreecommitdiffstats
path: root/testcases
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 /testcases
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 'testcases')
-rw-r--r--testcases/testcase.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/testcases/testcase.py b/testcases/testcase.py
index cc1e6e4a..5ad91f2a 100644
--- a/testcases/testcase.py
+++ b/testcases/testcase.py
@@ -39,6 +39,7 @@ class TestCase(object):
self._traffic_type = cfg['Traffic Type']
self._deployment = cfg['Deployment']
self._collector = cfg['Collector']
+ self._bidir = cfg['biDirectional']
self._results_dir = results_dir
def run(self):
@@ -68,7 +69,7 @@ class TestCase(object):
with vswitch_ctl:
if vnf_ctl:
vnf_ctl.start()
- traffic = {'traffic_type': self._traffic_type}
+ traffic = {'traffic_type': self._traffic_type, 'bidir': self._bidir}
with traffic_ctl:
traffic_ctl.send_traffic(traffic)