summaryrefslogtreecommitdiffstats
path: root/scripts/stl
diff options
context:
space:
mode:
authorYaroslav Brustinov <ybrustin@cisco.com>2016-02-23 11:23:08 -0500
committerYaroslav Brustinov <ybrustin@cisco.com>2016-02-23 11:23:08 -0500
commit301d6ca6e36efdc5a1534615d57f3527560befad (patch)
treef4cca4b98e063a440727ffd87265e76a838ba27d /scripts/stl
parent66bebea92f15db3ccf055814ab48cda24477fa9d (diff)
hltapi: add line rate and bps support
Diffstat (limited to 'scripts/stl')
-rwxr-xr-xscripts/stl/hlt/hlt_david1.py2
-rwxr-xr-xscripts/stl/hlt/hlt_david3.py2
-rwxr-xr-xscripts/stl/hlt/hlt_tcp_ranges.py1
-rwxr-xr-xscripts/stl/hlt/hlt_udp_inc_dec_len_9k.py2
4 files changed, 5 insertions, 2 deletions
diff --git a/scripts/stl/hlt/hlt_david1.py b/scripts/stl/hlt/hlt_david1.py
index 879ea527..922bb632 100755
--- a/scripts/stl/hlt/hlt_david1.py
+++ b/scripts/stl/hlt/hlt_david1.py
@@ -26,7 +26,7 @@ class STLS1(object):
mac_src = '00.00.c0.a8.00.03',
mac_src2 = '00.00.c0.a8.01.03',
pkts_per_burst = '200000',
- #rate_percent = '0.4', # not supported yet
+ rate_percent = '0.4',
transmit_mode = 'continuous',
vlan_id = '1',
direction = direction,
diff --git a/scripts/stl/hlt/hlt_david3.py b/scripts/stl/hlt/hlt_david3.py
index 01bf2431..af41b3d4 100755
--- a/scripts/stl/hlt/hlt_david3.py
+++ b/scripts/stl/hlt/hlt_david3.py
@@ -16,7 +16,7 @@ class STLS1(object):
ip_dst_count = 1,
l3_length = 474,
ip_dscp = 10,
- #rate_bps = 256000000, # not supported yet
+ rate_bps = 256000000,
mac_src_mode = 'fixed',
mac_src_step = 1,
mac_src_count = 1,
diff --git a/scripts/stl/hlt/hlt_tcp_ranges.py b/scripts/stl/hlt/hlt_tcp_ranges.py
index 31edc61a..b720e1e2 100755
--- a/scripts/stl/hlt/hlt_tcp_ranges.py
+++ b/scripts/stl/hlt/hlt_tcp_ranges.py
@@ -12,6 +12,7 @@ class STLS1(object):
tcp_dst_port = 1234,
name = 'test_tcp_ranges',
direction = direction,
+ rate_pps = 1,
),
]
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 e7ee5b3d..e8766da4 100755
--- a/scripts/stl/hlt/hlt_udp_inc_dec_len_9k.py
+++ b/scripts/stl/hlt/hlt_udp_inc_dec_len_9k.py
@@ -11,6 +11,7 @@ class STLS1(object):
l4_protocol = 'udp',
udp_src_port = 1025,
udp_dst_port = 12,
+ rate_pps = 1,
),
STLHltStream(length_mode = 'decrement',
frame_size_max = 9*1024,
@@ -19,6 +20,7 @@ class STLS1(object):
l4_protocol = 'udp',
udp_src_port = 1025,
udp_dst_port = 12,
+ rate_pps = 1,
)
]