summaryrefslogtreecommitdiffstats
path: root/tools/pkt_gen/ixia
diff options
context:
space:
mode:
authorMartin Klozik <martinx.klozik@intel.com>2015-08-13 11:09:09 +0100
committerMartin Klozik <martinx.klozik@intel.com>2015-08-13 11:27:04 +0100
commit47206e37b1cd5210b043474158d6dd7edba577d3 (patch)
treed3d2248412b6b38bd38288dd30c6b525f71b3a68 /tools/pkt_gen/ixia
parentb5de49062df3a39152a799d2c1677287622b107d (diff)
Add new testcase for LTD.Scalability.RFC2544.0PacketLoss
This test adds a multistream config item, taking the required number of flows to setup in the traffic, to the existing testcase and then running the standard 2544 Throughput test. The config is plumbed through from the 01_testcase.conf via ITraffic to the IxNet. 01_testcase.conf contains new parameter MultiStream for 2544 Throughput test. JIRA: VSPERF-19 Change-Id: I12e0e76a5f54dc13b854f3a65f3a4a0fe90ff885 Signed-off-by: Radek Zetik <radekx.zetik@intel.com> Signed-off-by: Martin Klozik <martinx.klozik@intel.com> Reviewed-by: Billy O Mahony <billy.o.mahony@intel.com> Reviewed-by: Eugene Snider <Eugene.Snider@huawei.com> Reviewed-by: Gurpreet Singh <gurpreet.singh@spirent.com> Reviewed-by: Tv Rao <tv.rao@freescale.com>
Diffstat (limited to 'tools/pkt_gen/ixia')
-rwxr-xr-xtools/pkt_gen/ixia/ixia.py12
1 files changed, 5 insertions, 7 deletions
diff --git a/tools/pkt_gen/ixia/ixia.py b/tools/pkt_gen/ixia/ixia.py
index 92ef5203..992aff32 100755
--- a/tools/pkt_gen/ixia/ixia.py
+++ b/tools/pkt_gen/ixia/ixia.py
@@ -228,8 +228,7 @@ class Ixia(trafficgen.ITrafficGenerator):
#TODO - implement Burst results setting via TrafficgenResults.
- def send_cont_traffic(self, traffic=None, time=20, framerate=100,
- multistream=False):
+ def send_cont_traffic(self, traffic=None, time=20, framerate=100):
"""See ITrafficGenerator for description
"""
flow = {
@@ -237,15 +236,14 @@ class Ixia(trafficgen.ITrafficGenerator):
'time': time,
'type': 'contPacket',
'framerate': framerate,
- 'multipleStreams': multistream,
+ 'multipleStreams': traffic['multistream'],
}
result = self._send_traffic(flow, traffic)
return Ixia._create_result(result)
- def start_cont_traffic(self, traffic=None, time=20, framerate=100,
- multistream=False):
+ def start_cont_traffic(self, traffic=None, time=20, framerate=100):
"""See ITrafficGenerator for description
"""
return self.send_cont_traffic(traffic, 0, framerate)
@@ -256,7 +254,7 @@ class Ixia(trafficgen.ITrafficGenerator):
return self.run_tcl('stopTraffic')
def send_rfc2544_throughput(self, traffic=None, trials=3, duration=20,
- lossrate=0.0, multistream=False):
+ lossrate=0.0):
"""See ITrafficGenerator for description
"""
params = {}
@@ -265,7 +263,7 @@ class Ixia(trafficgen.ITrafficGenerator):
'trials': trials,
'duration': duration,
'lossrate': lossrate,
- 'multipleStreams': multistream,
+ 'multipleStreams': traffic['multistream'],
}
params['traffic'] = self.traffic_defaults.copy()