from collections import OrderedDict # Needed to parse xstats representation.
sys.path.insert(
- 0, u"/opt/trex-core-2.82/scripts/automation/trex_control_plane/interactive/"
+ 0, u"/opt/trex-core-2.88/scripts/automation/trex_control_plane/interactive/"
)
from trex.astf.api import *
total_rcvd, total_sent = rx_0 + rx_1, tx_0 + tx_1
total_lost = total_sent - total_rcvd
- # TODO: Add latency.
print(
- f"cps='unknown', total_received={total_rcvd}, total_sent={total_sent}, "
- f"frame_loss={total_lost}, "
- f"latency_stream_0(usec)=-1/-1/-1, latency_stream_1(usec)=-1/-1/-1, "
- u"latency_hist_stream_0={}, latency_hist_stream_1={}, "
+ f"cps='unknown'; "
+ f"total_received={total_rcvd}; "
+ f"total_sent={total_sent}; "
+ f"frame_loss={total_lost}; "
+ f"latency_stream_0(usec)=-1/-1/-1; "
+ f"latency_stream_1(usec)=-1/-1/-1; "
+ f"latency_hist_stream_0={}; "
+ f"latency_hist_stream_1={}; "
)