From 8d528f2b4c66d94ea8760053f9bc75c595630056 Mon Sep 17 00:00:00 2001 From: Christian Trautman Date: Thu, 25 May 2017 10:43:34 -0400 Subject: xena_cont_bug_fix: Fix duration issue Port duration is in microseconds. I broke this with a previous commit. Change-Id: Id2770149355f40107ab8ee0523482b5867e0e72a Signed-off-by: Christian Trautman --- tools/pkt_gen/xena/xena.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/pkt_gen') diff --git a/tools/pkt_gen/xena/xena.py b/tools/pkt_gen/xena/xena.py index 31347c5f..b72a59dd 100755 --- a/tools/pkt_gen/xena/xena.py +++ b/tools/pkt_gen/xena/xena.py @@ -448,7 +448,7 @@ class Xena(ITrafficGenerator): self._params['traffic']['l2']['framesize']) stream.set_packet_payload('incrementing', '0x00') stream.set_payload_id(payload_id) - port.set_port_time_limit(self._duration) + port.set_port_time_limit(self._duration * 1000000) if self._params['traffic']['l2']['framesize'] == 64: # set micro tpld -- cgit 1.2.3-korg