From d9289a06e5cf868407eab996641f89f26a23f967 Mon Sep 17 00:00:00 2001 From: spirentbrian Date: Tue, 27 Oct 2015 14:46:33 -0400 Subject: First phase of Spirent Traffic Gen integration Change-Id: Ib852c81fc8e09593411984bfb6f9bc5d5629f0c4 --- core/traffic_controller_rfc2544.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'core') diff --git a/core/traffic_controller_rfc2544.py b/core/traffic_controller_rfc2544.py index de45de92..c3d9ab91 100644 --- a/core/traffic_controller_rfc2544.py +++ b/core/traffic_controller_rfc2544.py @@ -48,7 +48,8 @@ class TrafficControllerRFC2544(ITrafficController, IResults): self._packet_sizes = None packet_sizes_cli = get_test_param('pkt_sizes') if packet_sizes_cli: - self._packet_sizes = [int(x.strip()) for x in packet_sizes_cli.split(',')] + self._packet_sizes = [int(x.strip()) + for x in packet_sizes_cli.split(',')] else: self._packet_sizes = settings.getValue('TRAFFICGEN_PKT_SIZES') @@ -70,13 +71,13 @@ class TrafficControllerRFC2544(ITrafficController, IResults): :param result_dict: Dictionary containing results from trafficgen :param packet_size: Packet size value. - :returns: dictionary of results with addictional entries. + :returns: dictionary of results with additional entries. """ ret_value = result_dict - #TODO Old TOIT controller had knowledge about scenario beeing - #executed, should new controller also fill Configuration & ID, + # TODO Old TOIT controller had knowledge about scenario beeing + # executed, should new controller also fill Configuration & ID, # or this should be passed to TestCase? ret_value[ResultsConstants.TYPE] = 'rfc2544' ret_value[ResultsConstants.PACKET_SIZE] = str(packet_size) @@ -151,7 +152,6 @@ class TrafficControllerRFC2544(ITrafficController, IResults): logging.info(" Key: " + str(key) + ", Value: " + str(value)) - def get_results(self): """IResult interface implementation. """ -- cgit 1.2.3-korg