From 7caf7a6be0fae6b341181b3e6286372e2e93b4b8 Mon Sep 17 00:00:00 2001 From: Martin Klozik Date: Fri, 11 Dec 2015 14:29:18 +0000 Subject: testcase: scalability - configurable installation of flows to the vswitch Stream specific flows can be pre-installed into the vswitch based on the value of testcase specific configuration option "Pre-installed Flows". In case, it is set to 'Yes', then specific flow for each stream will be inserted into the switch. Otherwise only generic flows will be installed. Default value of "Pre-installed Flows" is set to 'No'. Its value can be overridden by CLI parameter pre-installed_flows. This configuration parameter is an enhancement of "MultiSream" feature and it is ignored if "MultiStream" is disabled. Python module 'netaddr' is required by this implementation and it has been added to requirements.txt file. Change-Id: I8a17577a702bf2be2753134eb203b936a87fc2e5 JIRA: VSPERF-83 Signed-off-by: Martin Klozik Reviewed-by: Maryam Tahhan Reviewed-by: Brian Castelli --- testcases/testcase.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'testcases/testcase.py') diff --git a/testcases/testcase.py b/testcases/testcase.py index 986fbe4b..a152f91e 100644 --- a/testcases/testcase.py +++ b/testcases/testcase.py @@ -70,7 +70,8 @@ class TestCase(object): multistream = get_test_param('multistream', multistream) stream_type = cfg.get('Stream Type', 'L4') stream_type = get_test_param('stream_type', stream_type) - pre_installed_flows = False # placeholder for VSPERF-83 implementation + pre_installed_flows = cfg.get('Pre-installed Flows', 'No') + pre_installed_flows = get_test_param('pre-installed_flows', pre_installed_flows) # check if test requires background load and which generator it uses -- cgit 1.2.3-korg