aboutsummaryrefslogtreecommitdiffstats
path: root/core
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 /core
parenta3e365e8b39e4e907870a8224a760591c7371130 (diff)
parente9ff0fdf355d26d0c171c6c1137c4beb12561233 (diff)
Merge "trex: Add support for burst traffic type"
Diffstat (limited to 'core')
-rw-r--r--core/traffic_controller_rfc2544.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/traffic_controller_rfc2544.py b/core/traffic_controller_rfc2544.py
index cb921970..2bb30fec 100644
--- a/core/traffic_controller_rfc2544.py
+++ b/core/traffic_controller_rfc2544.py
@@ -62,6 +62,9 @@ class TrafficControllerRFC2544(TrafficController, IResults):
elif traffic['traffic_type'] == 'rfc2544_continuous':
result = self._traffic_gen_class.send_cont_traffic(
traffic, duration=self._duration)
+ elif traffic['traffic_type'] == 'burst':
+ result = self._traffic_gen_class.send_burst_traffic(
+ traffic, duration=self._duration)
elif traffic['traffic_type'] == 'rfc2544_throughput':
result = self._traffic_gen_class.send_rfc2544_throughput(
traffic, tests=self._tests, duration=self._duration, lossrate=self._lossrate)