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 --- testcases/testcase.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'testcases') 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) -- cgit 1.2.3-korg