From ee91690697d026c168de223f0b6b61c2e59e76ad Mon Sep 17 00:00:00 2001 From: Yaroslav Brustinov Date: Tue, 23 Feb 2016 08:34:35 -0500 Subject: hltapi: optimization to utilize similar variables for several fields, fix incorrect size from l3_length, add profiles --- scripts/stl/hlt/hlt_david1.py | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100755 scripts/stl/hlt/hlt_david1.py (limited to 'scripts/stl/hlt/hlt_david1.py') diff --git a/scripts/stl/hlt/hlt_david1.py b/scripts/stl/hlt/hlt_david1.py new file mode 100755 index 00000000..879ea527 --- /dev/null +++ b/scripts/stl/hlt/hlt_david1.py @@ -0,0 +1,43 @@ +from trex_stl_lib.trex_stl_hltapi import STLHltStream + + +class STLS1(object): + + def create_streams (self, direction = 0): + return STLHltStream( + #enable_auto_detect_instrumentation = '1', # not supported yet + ip_dst_addr = '192.168.1.3', + ip_dst_count = '1', + ip_dst_mode = 'increment', + ip_dst_step = '0.0.0.1', + ip_src_addr = '192.168.0.3', + ip_src_count = '1', + ip_src_mode = 'increment', + ip_src_step = '0.0.0.1', + l3_imix1_ratio = 7, + l3_imix1_size = 70, + l3_imix2_ratio = 4, + l3_imix2_size = 570, + l3_imix3_ratio = 1, + l3_imix3_size = 1518, + l3_protocol = 'ipv4', + length_mode = 'imix', + #mac_dst_mode = 'discovery', # not supported yet + mac_src = '00.00.c0.a8.00.03', + mac_src2 = '00.00.c0.a8.01.03', + pkts_per_burst = '200000', + #rate_percent = '0.4', # not supported yet + transmit_mode = 'continuous', + vlan_id = '1', + direction = direction, + ) + + def get_streams (self, direction = 0): + return self.create_streams(direction) + +# dynamic load - used for trex console or simulator +def register(): + return STLS1() + + + -- cgit 1.2.3-korg