diff options
author | 2016-02-09 17:06:15 +0200 | |
---|---|---|
committer | 2016-02-09 17:06:15 +0200 | |
commit | b521bb724aeb7e021fe6e39019db3bf3a62580a4 (patch) | |
tree | d57ae90b14e53ac97c2e6e753d37cec99f104a98 | |
parent | 6ef1947ba7d3e4b5538ba6f33128fe9d58bb9aad (diff) |
add isg to imix profile, to be able to have a regression on it- multi stream with isg
-rw-r--r-- | scripts/automation/regression/unit_tests/functional_tests/stl_basic_tests.py | 7 | ||||
-rw-r--r-- | scripts/exp/imix.pcap | bin | 0 -> 73096 bytes | |||
-rw-r--r-- | scripts/stl/profiles/imix.py | 13 |
3 files changed, 11 insertions, 9 deletions
diff --git a/scripts/automation/regression/unit_tests/functional_tests/stl_basic_tests.py b/scripts/automation/regression/unit_tests/functional_tests/stl_basic_tests.py index 07d72938..99287c01 100644 --- a/scripts/automation/regression/unit_tests/functional_tests/stl_basic_tests.py +++ b/scripts/automation/regression/unit_tests/functional_tests/stl_basic_tests.py @@ -154,13 +154,14 @@ class CStlBasic_Test(functional_general_test.CGeneralFunctional_Test): ["udp_1pkt_tuple_gen.py","-m 1 -l 50",True], ["udp_rand_len_9k.py","-m 1 -l 50",False], # can't do the compare ["udp_1pkt_mpls.py","-m 1 -l 50",True], - ["udp_1pkt_mpls_vm.py","-m 1 ",True] + ["udp_1pkt_mpls_vm.py","-m 1 ",True], + ["imix.py","-m 1 -l 100",True] ]; - #p=[ ["udp_1pkt_mpls_vm.py","-m 1 ",True] ] + #p=[ ["imix.py","-m 1 -l 100",True] ] for obj in p: - self.run_py_profile_path (obj[0],obj[1],compare =obj[2], do_no_remove=True) + self.run_py_profile_path (obj[0],obj[1],compare =obj[2], do_no_remove=False) diff --git a/scripts/exp/imix.pcap b/scripts/exp/imix.pcap Binary files differnew file mode 100644 index 00000000..a05ba218 --- /dev/null +++ b/scripts/exp/imix.pcap 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] |