diff options
author | Sridhar Rao <sridhar.rao@spirent.com> | 2018-11-11 03:01:49 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-11-11 03:01:49 +0000 |
commit | b9f14e08d2e6fd7c221a43eecf2dacba4a05b855 (patch) | |
tree | 47292d00698492c75461b73d729f53797a7631f1 /tools/pkt_gen/testcenter/testcenter.py | |
parent | ac6f1684311e6311aa81c0135bf18ee57fbbff6d (diff) | |
parent | 6895bba12f952ef8925e14d404aa1ab2184ffd8f (diff) |
Merge "Results: Default latency-histrogram with Spirent TestCenter"
Diffstat (limited to 'tools/pkt_gen/testcenter/testcenter.py')
-rw-r--r-- | tools/pkt_gen/testcenter/testcenter.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tools/pkt_gen/testcenter/testcenter.py b/tools/pkt_gen/testcenter/testcenter.py index 487566bf..7afa3d8d 100644 --- a/tools/pkt_gen/testcenter/testcenter.py +++ b/tools/pkt_gen/testcenter/testcenter.py @@ -98,7 +98,9 @@ def get_rfc2544_common_settings(): "--trial_duration_sec", settings.getValue("TRAFFICGEN_STC_TRIAL_DURATION_SEC"), "--traffic_pattern", - settings.getValue("TRAFFICGEN_STC_TRAFFIC_PATTERN")] + settings.getValue("TRAFFICGEN_STC_TRAFFIC_PATTERN"), + "--vsperf_results_dir", + settings.getValue("RESULTS_PATH")] return args @@ -419,6 +421,11 @@ class TestCenter(trafficgen.ITrafficGenerator): tests) args = rfc2544_common_args + stc_common_args + rfc2544_custom_args + if traffic and 'latency_histogram' in traffic: + if traffic['latency_histogram']['enabled']: + if traffic['latency_histogram']['type'] == 'Default': + args.append("--latency_histogram") + if settings.getValue("TRAFFICGEN_STC_VERBOSE") == "True": args.append("--verbose") verbose = True |