Lines Matching defs:trex

28 import trex
29 from trex import CTRexScenario
60 self.trex = CTRexScenario.trex
77 if self.trex and not self.no_daemon: # stateful
78 CTRexScenario.trex_version = self.trex.get_trex_version()
141 obj=trex.copy_elk_info ()
175 cpu_util = trex_res.get_avg_steady_state_value('trex-global.data.m_cpu_util_raw')
176 trex_tx_bps = trex_res.get_avg_steady_state_value('trex-global.data.m_tx_bps')
177 trex_tx_pps = trex_res.get_avg_steady_state_value('trex-global.data.m_tx_pps')
215 trex_tx_pckt = trex_res.get_last_value("trex-global.data.m_total_tx_pkts")
232 "kcps" : (trex_res.get_last_value("trex-global.data.m_tx_cps")/1000.0),
287 trex_cur_bps = max(trex_res.get_value_list('trex-global.data.m_tx_bps')) / 1e6
297 trex_tx_pckt = trex_res.get_last_value("trex-global.data.m_total_tx_pkts")
304 m_total_alloc_error = trex_res.get_last_value("trex-global.data.m_total_alloc_error")
305 m_total_queue_full = trex_res.get_last_value("trex-global.data.m_total_queue_full")
306 m_total_queue_drop = trex_res.get_last_value("trex-global.data.m_total_queue_drop")
323 if self.configuration.trex['trex_name'] == '10.56.217.210': # temporary workaround for latency issue in kiwi02, remove it ASAP. http://trex-tgn.cisco.com/youtrack/issue/trex-194
340 ports_names = trex_res.get_last_value('trex-latecny-v2.data', 'port\-\d+')
342 raise AbnormalResultError('Could not find ports info in TRex results, path: trex-latecny-v2.data.port-*')
344 path = 'trex-latecny-v2.data.%s.hist.cnt' % port_name
354 # check for trex-router packet consistency
402 if not self.stl_trex and not self.trex.is_idle():
404 self.trex.force_kill(confirm = False)
421 if not self.stl_trex and not self.trex.is_idle():
423 self.trex.force_kill(confirm = False)
426 if self.trex and CTRexScenario.server_logs and not self.no_daemon:
429 daemon_log = self.trex.get_trex_daemon_log()
437 print(''.join(self.trex.get_trex_log()))