aboutsummaryrefslogtreecommitdiffstats
path: root/tools/pkt_gen/moongen
diff options
context:
space:
mode:
authorMartin Klozik <martinx.klozik@intel.com>2018-04-11 09:07:03 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-04-11 09:07:03 +0000
commit7e263087c47e471fff47f204e79d7fe21a56eaa9 (patch)
treee8f950b9aad97aa38bb728d06adb454ae7cf03e1 /tools/pkt_gen/moongen
parenta3e365e8b39e4e907870a8224a760591c7371130 (diff)
parente9ff0fdf355d26d0c171c6c1137c4beb12561233 (diff)
Merge "trex: Add support for burst traffic type"
Diffstat (limited to 'tools/pkt_gen/moongen')
-rw-r--r--tools/pkt_gen/moongen/moongen.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/pkt_gen/moongen/moongen.py b/tools/pkt_gen/moongen/moongen.py
index 2ac2ec31..b7d55c4d 100644
--- a/tools/pkt_gen/moongen/moongen.py
+++ b/tools/pkt_gen/moongen/moongen.py
@@ -240,14 +240,13 @@ class Moongen(ITrafficGenerator):
"""
self._logger.info("MOONGEN: In moongen disconnect method")
- def send_burst_traffic(self, traffic=None, numpkts=100, duration=20):
+ def send_burst_traffic(self, traffic=None, duration=20):
"""Send a burst of traffic.
- Send a ``numpkts`` packets of traffic, using ``traffic``
+ Send a ``traffic['burst_traffic']`` packets of traffic, using ``traffic``
configuration, with a timeout of ``time``.
:param traffic: Detailed "traffic" spec, i.e. IP address, VLAN tags
- :param numpkts: Number of packets to send
:param duration: Time to wait to receive packets
:returns: dictionary of strings with following data: