From de0aaffe31e1f787cefe21a5957a07924bb5956f Mon Sep 17 00:00:00 2001 From: Maryam Tahhan Date: Tue, 24 Nov 2015 16:55:54 +0000 Subject: Back2Back: update default params Update the default duration of a back to back test to be 2 seconds which is the minimum recommended by RFC2544, and update the Trials to be 50, which is also the default value specified by the RFC. This patch also fixes the tcl script to allow for the minimum framesize to be sent from the traffic gen. JIRA: Change-Id: I801196c1998ec2bffbeab69a3a290d6ef6feb1c3 Signed-off-by: Maryam Tahhan Reviewed-by: Martin Klozik Reviewed-by: Billy O Mahony --- core/traffic_controller_rfc2544.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'core') diff --git a/core/traffic_controller_rfc2544.py b/core/traffic_controller_rfc2544.py index a6b3e7f9..7117feeb 100644 --- a/core/traffic_controller_rfc2544.py +++ b/core/traffic_controller_rfc2544.py @@ -99,6 +99,8 @@ class TrafficControllerRFC2544(ITrafficController, IResults): traffic['l2'] = {'framesize': packet_size} if traffic['traffic_type'] == 'back2back': + self._duration = int(get_test_param('duration', 1)) + self._trials = int(get_test_param('rfc2544_trials', 1)) result = self._traffic_gen_class.send_rfc2544_back2back( traffic, trials=self._trials, duration=self._duration) -- cgit 1.2.3-korg