summaryrefslogtreecommitdiffstats
path: root/scripts/stl/hlt/hlt_udp_inc_dec_len_9k.py
diff options
context:
space:
mode:
authorYaroslav Brustinov <ybrustin@cisco.com>2016-02-24 14:07:11 -0500
committerYaroslav Brustinov <ybrustin@cisco.com>2016-02-24 14:07:11 -0500
commit42afa885616f4def18f5f1f1ca303efdf742356f (patch)
tree187412cbca140ee5763172330e88b386705b3454 /scripts/stl/hlt/hlt_udp_inc_dec_len_9k.py
parent547112ad112a2c3f8792a41e3f41b9d257a2fa7a (diff)
hltapi : add dst_mac vm; vlan mask variable now can be shared; add 2 more profiles; add consistent_random argument for same random sequence each time
Diffstat (limited to 'scripts/stl/hlt/hlt_udp_inc_dec_len_9k.py')
-rwxr-xr-xscripts/stl/hlt/hlt_udp_inc_dec_len_9k.py10
1 files changed, 8 insertions, 2 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
index e8766da4..b3fec989 100755
--- a/scripts/stl/hlt/hlt_udp_inc_dec_len_9k.py
+++ b/scripts/stl/hlt/hlt_udp_inc_dec_len_9k.py
@@ -2,10 +2,16 @@ from trex_stl_lib.trex_stl_hltapi import STLHltStream
class STLS1(object):
+ '''
+ Create 2 Eth/IP/UDP steams with different packet size:
+ First stream will start from 64 bytes (default) and will increase until max_size (9,216)
+ Seconds stream will decrease the packet size in reverse way
+ '''
def create_streams (self):
+ max_size = 9*1024
return [STLHltStream(length_mode = 'increment',
- frame_size_max = 9*1024,
+ frame_size_max = max_size,
ip_src_addr = '16.0.0.1',
ip_dst_addr = '48.0.0.1',
l4_protocol = 'udp',
@@ -14,7 +20,7 @@ class STLS1(object):
rate_pps = 1,
),
STLHltStream(length_mode = 'decrement',
- frame_size_max = 9*1024,
+ frame_size_max = max_size,
ip_src_addr = '16.0.0.1',
ip_dst_addr = '48.0.0.1',
l4_protocol = 'udp',