diff options
author | imarom <imarom@cisco.com> | 2016-03-16 14:23:53 +0200 |
---|---|---|
committer | imarom <imarom@cisco.com> | 2016-03-16 14:23:53 +0200 |
commit | 7d0f9e5efeae033151b5442b00c8055376de9c6b (patch) | |
tree | d351996ebb07285e7064443acba3071ef670afb9 /scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_streams.py | |
parent | 7d7cb50d7e75ca1beccc00daf74227c4320685f6 (diff) |
tunables for console
Diffstat (limited to 'scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_streams.py')
-rw-r--r-- | scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_streams.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_streams.py b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_streams.py index 9edc279f..e0334c7e 100644 --- a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_streams.py +++ b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_streams.py @@ -902,6 +902,8 @@ class STLProfile(object): if ipg_usec < 1: raise STLError("ipg_usec cannot be less than 1 usec: '{0}'".format(ipg_usec)) + if loop_count < 0: + raise STLError("'loop_count' cannot be negative") streams = [] last_ts_usec = 0 |