diff options
author | Sridhar Rao <sridhar.rao@spirent.com> | 2019-03-19 05:26:52 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2019-03-19 05:26:52 +0000 |
commit | e255889356b90ea74f7f2fa4e8b88b461682d995 (patch) | |
tree | a806253e868bd565ffb8a88beac9e8e1457fc1c2 /tools/pkt_gen/testcenter/testcenter.py | |
parent | 94ebcf4df013c7b6a7003ac22c4799fbefb185e6 (diff) | |
parent | 5cca2e41b6f83968c2fcf256c564f27821e25b0b (diff) |
Merge "pkt_gen: STC- Live Results Support"
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 |