diff options
author | imarom <imarom@cisco.com> | 2016-08-07 10:58:07 +0300 |
---|---|---|
committer | imarom <imarom@cisco.com> | 2016-08-07 11:47:36 +0300 |
commit | 384a2f8e5ceca4279a9e7a1bce5a3ca9697c294b (patch) | |
tree | aedff9df79274a25bc9319857602bdb3b4fa7637 /scripts/stl/hlt/hlt_udp_rand_len_9k.py | |
parent | e946a09e5237da5d87048c0f07e0685a99ba193c (diff) |
random tests are now provided with seed
Diffstat (limited to 'scripts/stl/hlt/hlt_udp_rand_len_9k.py')
-rwxr-xr-x | scripts/stl/hlt/hlt_udp_rand_len_9k.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/stl/hlt/hlt_udp_rand_len_9k.py b/scripts/stl/hlt/hlt_udp_rand_len_9k.py index 1966823c..38d7d565 100755 --- a/scripts/stl/hlt/hlt_udp_rand_len_9k.py +++ b/scripts/stl/hlt/hlt_udp_rand_len_9k.py @@ -6,7 +6,7 @@ class STLS1(object): Create Eth/IP/UDP steam with random packet size (L3 size from 50 to 9*1024) ''' - def get_streams (self, direction = 0, **kwargs): + def get_streams (self, direction = 0, random_seed = 0, **kwargs): min_size = 50 max_size = 9*1024 return [STLHltStream(length_mode = 'random', @@ -20,6 +20,7 @@ class STLS1(object): udp_dst_port = 12, rate_pps = 1000, ignore_macs = True, + consistent_random = (random_seed != 0) ) ] |