diff options
author | 2016-03-30 17:46:02 +0300 | |
---|---|---|
committer | 2016-03-31 15:51:18 +0300 | |
commit | 32b6b28437504ce80182f48cc99dd40f5feb626f (patch) | |
tree | 7fa0875839f6536e84168e55b67ab76636c4cc24 /scripts/automation/trex_control_plane/stl/trex_stl_lib | |
parent | fc4620422d79d218170aad12fc55fa4a98076c13 (diff) |
STL tests (API)
Diffstat (limited to 'scripts/automation/trex_control_plane/stl/trex_stl_lib')
-rw-r--r-- | scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_streams.py | 5 |
1 files changed, 5 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 b6780c5e..a75ba044 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 @@ -832,6 +832,11 @@ class STLProfile(object): def __str__ (self): return '\n'.join([str(stream) for stream in self.streams]) + def is_pauseable (self): + return all([x.get_mode() == "Continuous" for x in (self.get_streams())]) + + def needs_rx_caps (self): + return any([x.has_flow_stats() for x in self.get_streams()]) @staticmethod def load_yaml (yaml_file): |