summaryrefslogtreecommitdiffstats
path: root/scripts/stl/hlt/hlt_udp_rand_len_9k.py
diff options
context:
space:
mode:
authorimarom <imarom@cisco.com>2016-08-07 10:58:07 +0300
committerimarom <imarom@cisco.com>2016-08-07 11:47:36 +0300
commit384a2f8e5ceca4279a9e7a1bce5a3ca9697c294b (patch)
treeaedff9df79274a25bc9319857602bdb3b4fa7637 /scripts/stl/hlt/hlt_udp_rand_len_9k.py
parente946a09e5237da5d87048c0f07e0685a99ba193c (diff)
random tests are now provided with seed
Diffstat (limited to 'scripts/stl/hlt/hlt_udp_rand_len_9k.py')
-rwxr-xr-xscripts/stl/hlt/hlt_udp_rand_len_9k.py3
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)
)
]