summaryrefslogtreecommitdiffstats
path: root/scripts/stl/hlt/hlt_vlans_vm.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_vlans_vm.py
parente946a09e5237da5d87048c0f07e0685a99ba193c (diff)
random tests are now provided with seed
Diffstat (limited to 'scripts/stl/hlt/hlt_vlans_vm.py')
-rwxr-xr-xscripts/stl/hlt/hlt_vlans_vm.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/stl/hlt/hlt_vlans_vm.py b/scripts/stl/hlt/hlt_vlans_vm.py
index 70bf1aad..aad0fc5e 100755
--- a/scripts/stl/hlt/hlt_vlans_vm.py
+++ b/scripts/stl/hlt/hlt_vlans_vm.py
@@ -7,7 +7,8 @@ class STLS1(object):
Missing values will be filled with defaults
'''
- def get_streams (self, direction = 0, **kwargs):
+ def get_streams (self, direction = 0, random_seed = 0, **kwargs):
+
return STLHltStream(frame_size = 100,
vlan_id = '1 2 1000 4 5', # 5 vlans
vlan_id_mode = 'increment fixed decrement random', # 5th vlan will be default fixed
@@ -16,6 +17,7 @@ class STLS1(object):
l3_protocol = 'ipv4',
l4_protocol = 'udp',
direction = direction,
+ consistent_random = (random_seed != 0)
)
# dynamic load - used for trex console or simulator