summaryrefslogtreecommitdiffstats
path: root/core/traffic_controller_rfc2889.py
diff options
context:
space:
mode:
authorMartin Klozik <martinx.klozik@intel.com>2017-01-27 08:11:16 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-01-27 08:11:16 +0000
commitba2f894bbcc1d303cf5895512ac7eff0524d9d69 (patch)
tree66b12507068cab2c7daa3c71c65e0eee727c3b6c /core/traffic_controller_rfc2889.py
parent56e12cde71d4103e1b657ad3199f2bb9e0a3c8ea (diff)
parent7840b1411369b925013711a421066a83310fe114 (diff)
Merge "pkt_gen: STC - RFC 2889 Address Learning and Caching Support"
Diffstat (limited to 'core/traffic_controller_rfc2889.py')
-rw-r--r--core/traffic_controller_rfc2889.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/core/traffic_controller_rfc2889.py b/core/traffic_controller_rfc2889.py
index 210d5f5f..05955e65 100644
--- a/core/traffic_controller_rfc2889.py
+++ b/core/traffic_controller_rfc2889.py
@@ -50,13 +50,13 @@ class TrafficControllerRFC2889(TrafficController, IResults):
else:
traffic['l2'] = {'framesize': packet_size}
- if traffic['traffic_type'] == 'caching':
+ if traffic['traffic_type'] == 'rfc2889_caching':
result = self._traffic_gen_class.send_rfc2889_caching(
- traffic, trials=self._trials, duration=self._duration)
- elif traffic['traffic_type'] == 'congestion':
- result = self._traffic_gen_class.send_rfc2889_congestion(
- traffic, duration=self._duration)
- else:
+ traffic, tests=self._trials, duration=self._duration)
+ elif traffic['traffic_type'] == 'rfc2889_learning':
+ result = self._traffic_gen_class.send_rfc2889_learning(
+ traffic, tests=self._trials, duration=self._duration)
+ elif traffic['traffic_type'] == 'rfc2889_forwarding':
result = self._traffic_gen_class.send_rfc2889_forwarding(
traffic, tests=self._trials, duration=self._duration)