diff options
author | Martin Klozik <martinx.klozik@intel.com> | 2018-02-28 06:34:23 -0800 |
---|---|---|
committer | Martin Klozik <martinx.klozik@intel.com> | 2018-03-22 05:43:56 +0000 |
commit | e9ff0fdf355d26d0c171c6c1137c4beb12561233 (patch) | |
tree | d202c427858a5e0b0eee6ddc83be35b6b5de5327 /tools/pkt_gen/moongen | |
parent | a9655607f7618fd392cf719e8d9ea2dbf6c8dd1c (diff) |
trex: Add support for burst traffic type
Support for burst traffic type was added into T-Rex. This
traffic type is useful for tests, where a limited number
of frames should be sent through DUT.
JIRA: VSPERF-562
Change-Id: I03b7150e66a0210cce91b20c751b8624c16f951b
Signed-off-by: Martin Klozik <martinx.klozik@intel.com>
Reviewed-by: Al Morton <acmorton@att.com>
Reviewed-by: Christian Trautman <ctrautma@redhat.com>
Reviewed-by: Sridhar Rao <sridhar.rao@spirent.com>
Reviewed-by: Richard Elias <richardx.elias@intel.com>
Diffstat (limited to 'tools/pkt_gen/moongen')
-rw-r--r-- | tools/pkt_gen/moongen/moongen.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/pkt_gen/moongen/moongen.py b/tools/pkt_gen/moongen/moongen.py index 570720e8..1f332e87 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: |