aboutsummaryrefslogtreecommitdiffstats
path: root/tools/pkt_gen/ixia/ixia.py
diff options
context:
space:
mode:
authorMaryam Tahhan <maryam.tahhan@intel.com>2015-11-08 17:35:50 -0500
committerMaryam Tahhan <maryam.tahhan@intel.com>2015-12-02 13:47:36 +0000
commit0c292cdcf82ca1d5a71a93c1e1f91cb061a2c6f2 (patch)
tree988973cdfaa43f705856d31157967fab9afb178d /tools/pkt_gen/ixia/ixia.py
parent0606ef6290ac1e41468f57b0ef2ff1d0571aee3e (diff)
pkt_gen: add duration to all send functions
Allow a configurable duration for all send functions. JIRA: VSPERF-125 Change-Id: I7c6f5d136a7d7100e3990f7fdc00121b07081a80 Signed-off-by: Maryam Tahhan <maryam.tahhan@intel.com> Reviewed-by: Martin Klozik <martinx.klozik@intel.com> Reviewed-by: Billy O Mahony <billy.o.mahony@intel.com> Reviewed-by: Dino Simeon Madarang <dino.simeonx.madarang@intel.com> Reviewed-by: Radek Zetik <radekx.zetik@intel.com>
Diffstat (limited to 'tools/pkt_gen/ixia/ixia.py')
-rwxr-xr-xtools/pkt_gen/ixia/ixia.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/pkt_gen/ixia/ixia.py b/tools/pkt_gen/ixia/ixia.py
index 3a4f8442..0bf21414 100755
--- a/tools/pkt_gen/ixia/ixia.py
+++ b/tools/pkt_gen/ixia/ixia.py
@@ -211,12 +211,12 @@ class Ixia(trafficgen.ITrafficGenerator):
return result
- def send_burst_traffic(self, traffic=None, numpkts=100, time=20):
+ def send_burst_traffic(self, traffic=None, numpkts=100, duration=20):
"""See ITrafficGenerator for description
"""
flow = {
'numpkts': numpkts,
- 'time': time,
+ 'duration': duration,
'type': 'stopStream',
'framerate': traffic['frame_rate'],
}
@@ -227,12 +227,12 @@ class Ixia(trafficgen.ITrafficGenerator):
#TODO - implement Burst results setting via TrafficgenResults.
- def send_cont_traffic(self, traffic=None, time=20, multistream=False):
+ def send_cont_traffic(self, traffic=None, duration=30, multistream=False):
"""See ITrafficGenerator for description
"""
flow = {
'numpkts': 100,
- 'time': time,
+ 'duration': duration,
'type': 'contPacket',
'framerate': traffic['frame_rate'],
'multipleStreams': traffic['multistream'],
@@ -242,7 +242,7 @@ class Ixia(trafficgen.ITrafficGenerator):
return Ixia._create_result(result)
- def start_cont_traffic(self, traffic=None, time=20):
+ def start_cont_traffic(self, traffic=None, duration=30):
"""See ITrafficGenerator for description
"""
return self.send_cont_traffic(traffic, 0)