diff options
author | Yaroslav Brustinov <ybrustin@cisco.com> | 2016-02-11 18:20:38 +0200 |
---|---|---|
committer | Yaroslav Brustinov <ybrustin@cisco.com> | 2016-02-11 18:20:38 +0200 |
commit | 19ef256b19acefef392185bac65a93725c6aef27 (patch) | |
tree | 3098ed210a091f4c9a228277471aacbcec55e61d /scripts/stl/hlt | |
parent | e93926178b4a510bd1bec776d69cc77eb7e16aff (diff) |
run_functional_tests not requires unit_tests/functional_tests, can be set to custom test, path from scripts or from regression. added hlt profile test.
Diffstat (limited to 'scripts/stl/hlt')
-rwxr-xr-x | scripts/stl/hlt/hlt_udp_inc_dec_len_9k.py | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/scripts/stl/hlt/hlt_udp_inc_dec_len_9k.py b/scripts/stl/hlt/hlt_udp_inc_dec_len_9k.py new file mode 100755 index 00000000..e7ee5b3d --- /dev/null +++ b/scripts/stl/hlt/hlt_udp_inc_dec_len_9k.py @@ -0,0 +1,33 @@ +from trex_stl_lib.trex_stl_hltapi import STLHltStream + + +class STLS1(object): + + def create_streams (self): + return [STLHltStream(length_mode = 'increment', + frame_size_max = 9*1024, + ip_src_addr = '16.0.0.1', + ip_dst_addr = '48.0.0.1', + l4_protocol = 'udp', + udp_src_port = 1025, + udp_dst_port = 12, + ), + STLHltStream(length_mode = 'decrement', + frame_size_max = 9*1024, + ip_src_addr = '16.0.0.1', + ip_dst_addr = '48.0.0.1', + l4_protocol = 'udp', + udp_src_port = 1025, + udp_dst_port = 12, + ) + ] + + def get_streams (self, direction = 0): + return self.create_streams() + +# dynamic load - used for trex console or simulator +def register(): + return STLS1() + + + |