summaryrefslogtreecommitdiffstats
path: root/scripts/stl
diff options
context:
space:
mode:
authorHanoh Haim <hhaim@cisco.com>2016-02-09 17:06:15 +0200
committerHanoh Haim <hhaim@cisco.com>2016-02-09 17:06:15 +0200
commitb521bb724aeb7e021fe6e39019db3bf3a62580a4 (patch)
treed57ae90b14e53ac97c2e6e753d37cec99f104a98 /scripts/stl
parent6ef1947ba7d3e4b5538ba6f33128fe9d58bb9aad (diff)
add isg to imix profile, to be able to have a regression on it- multi stream with isg
Diffstat (limited to 'scripts/stl')
-rw-r--r--scripts/stl/profiles/imix.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/scripts/stl/profiles/imix.py b/scripts/stl/profiles/imix.py
index c453222d..c5b994f9 100644
--- a/scripts/stl/profiles/imix.py
+++ b/scripts/stl/profiles/imix.py
@@ -21,12 +21,12 @@ class STLImix(object):
'dst': {'start': "8.0.0.1", 'end': "8.0.0.254"}}
# default IMIX properties
- self.imix_table = [ {'size': 60, 'pps': 28},
- {'size': 590, 'pps': 20},
- {'size': 1514, 'pps': 4}]
+ self.imix_table = [ {'size': 60, 'pps': 28, 'isg':0 },
+ {'size': 590, 'pps': 20, 'isg':0.1 },
+ {'size': 1514, 'pps': 4, 'isg':0.2 } ]
- def create_stream (self, size, pps, vm):
+ def create_stream (self, size, pps,isg, vm ):
# create a base packet and pad it to size
base_pkt = Ether()/IP()/UDP()
pad = max(0, size - len(base_pkt)) * 'x'
@@ -34,7 +34,8 @@ class STLImix(object):
pkt = STLPktBuilder(pkt = base_pkt/pad,
vm = vm)
- return STLStream(packet = pkt,
+ return STLStream(isg = isg,
+ packet = pkt,
mode = STLTXCont())
@@ -64,7 +65,7 @@ class STLImix(object):
]
# create imix streams
- return [self.create_stream(x['size'], x['pps'], vm) for x in self.imix_table]
+ return [self.create_stream(x['size'], x['pps'],x['isg'] , vm) for x in self.imix_table]