aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorspirentbrian <brian.castelli@spirent.com>2015-10-27 14:46:33 -0400
committerMaryam Tahhan <maryam.tahhan@intel.com>2015-10-29 18:26:00 +0000
commitd9289a06e5cf868407eab996641f89f26a23f967 (patch)
tree3fbc90891e402e932bcb328acd927f12fbd5d72b /core
parentbd576aaae3b5c2f517af2b2dd49343a2bf9ac968 (diff)
First phase of Spirent Traffic Gen integration
Change-Id: Ib852c81fc8e09593411984bfb6f9bc5d5629f0c4
Diffstat (limited to 'core')
-rw-r--r--core/traffic_controller_rfc2544.py10
1 files changed, 5 insertions, 5 deletions
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.
"""