From 32a2593e6b7735bcbd0e6e28cd57e93fb7dccb34 Mon Sep 17 00:00:00 2001 From: Martin Klozik Date: Thu, 10 Nov 2016 15:29:45 +0000 Subject: yardstick: CLI params support for yardstick TCs Vswitchperf specific class in yardstick was updated to reflect new functionality of --test-params. These changes have impact on vsperf documentation and yardstick samples. As part of this fix following changes were made: * trafficgen mode can be executed with default configuration * yardstick specific TC samples were updated * dummy traffic generator was enhanced to support back2back * dummy traffic generator was enhanced to accept traffic results from configuration JIRA: VSPERF-422 JIRA: VSPERF-205 Change-Id: Ibeaa6ef46bde453e3ca5dee6e4568fc8c3853521 Signed-off-by: Martin Klozik Reviewed-by: Al Morton Reviewed-by: Christian Trautman Reviewed-by: Bill Michalowski Reviewed-by: Antonio Fischetti Reviewed-by: --- vsperf | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'vsperf') diff --git a/vsperf b/vsperf index ee494dcd..385f7929 100755 --- a/vsperf +++ b/vsperf @@ -504,8 +504,11 @@ def main(): # than both a settings file and environment variables settings.load_from_dict(args) + settings.setValue('mode', args['mode']) + # set dpdk and ovs paths accorfing to VNF and VSWITCH - functions.settings_update_paths() + if settings.getValue('mode') != 'trafficgen': + functions.settings_update_paths() # if required, handle list-* operations handle_list_options(args) @@ -584,8 +587,6 @@ def main(): # for backward compatibility settings.setValue('WHITELIST_NICS', list(nic['pci'] for nic in nic_list)) - settings.setValue('mode', args['mode']) - # generate results directory name date = datetime.datetime.fromtimestamp(time.time()) results_dir = "results_" + date.strftime('%Y-%m-%d_%H-%M-%S') -- cgit 1.2.3-korg