diff options
author | Sridhar K. N. Rao <sridhar.rao@spirent.com> | 2019-02-20 20:53:27 +0530 |
---|---|---|
committer | Sridhar K. N. Rao <sridhar.rao@spirent.com> | 2019-02-20 22:20:03 +0530 |
commit | 5cca2e41b6f83968c2fcf256c564f27821e25b0b (patch) | |
tree | 96278907f461cc48b811ac98cfd5e027e91ec86c /tools/pkt_gen/testcenter/testcenter.py | |
parent | 85cdafd157ce9e5a5fd7e4233608b06058de175a (diff) |
pkt_gen: STC- Live Results Support
This patch adds live-results reporting from STC traffic generator.
STC reports per-port stream results every second. The results are
written to two different files in results folder.
Added configuration filename for stc-liveresults
JIRA: VSPERF-598
Change-Id: I37de6b5f544355e9e0dd42936328551b59afe065
Signed-off-by: Sridhar K. N. Rao <sridhar.rao@spirent.com>
Diffstat (limited to 'tools/pkt_gen/testcenter/testcenter.py')
-rw-r--r-- | tools/pkt_gen/testcenter/testcenter.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/pkt_gen/testcenter/testcenter.py b/tools/pkt_gen/testcenter/testcenter.py index af30cd73..f01069e2 100644 --- a/tools/pkt_gen/testcenter/testcenter.py +++ b/tools/pkt_gen/testcenter/testcenter.py @@ -171,6 +171,7 @@ class TestCenter(trafficgen.ITrafficGenerator): Spirent TestCenter """ _logger = logging.getLogger(__name__) + _liveresults_file = settings.getValue("TRAFFICGEN_STC_LIVERESULTS_FILE") def connect(self): """ @@ -437,6 +438,10 @@ class TestCenter(trafficgen.ITrafficGenerator): genome = traffic['imix']['genome'] args.append('--imix' + ' ' + genome) + if settings.getValue("TRAFFICGEN_STC_LIVE_RESULTS") == "True": + args.append('--live_results') + args.append('--logfile' + ' ' + self._liveresults_file) + if settings.getValue("TRAFFICGEN_STC_VERBOSE") == "True": args.append("--verbose") verbose = True |