diff options
author | 2015-12-29 00:30:09 +0200 | |
---|---|---|
committer | 2015-12-29 00:30:09 +0200 | |
commit | 9e16960d1502524ae00df83e3d1c05ddbb2487c7 (patch) | |
tree | 8085fa93b41e5c943763fe7e1035672c9e11a361 /scripts/automation/trex_control_plane | |
parent | fbcdbcdf05f495a02e62ee8bb6146d266147aefa (diff) |
trim packet size command works
Diffstat (limited to 'scripts/automation/trex_control_plane')
-rwxr-xr-x | scripts/automation/trex_control_plane/common/trex_streams.py | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/scripts/automation/trex_control_plane/common/trex_streams.py b/scripts/automation/trex_control_plane/common/trex_streams.py index 86eee1f4..007e2464 100755 --- a/scripts/automation/trex_control_plane/common/trex_streams.py +++ b/scripts/automation/trex_control_plane/common/trex_streams.py @@ -271,15 +271,12 @@ class CStreamsDB(object): stream_list = CStreamList() loaded_obj = stream_list.load_yaml(filename) - try: - compiled_streams = stream_list.compile_streams() - rc = self.load_streams(stream_pack_name, - LoadedStreamList(loaded_obj, - [StreamPack(v.stream_id, v.stream.dump()) - for k, v in compiled_streams.items()])) + compiled_streams = stream_list.compile_streams() + rc = self.load_streams(stream_pack_name, + LoadedStreamList(loaded_obj, + [StreamPack(v.stream_id, v.stream.dump()) + for k, v in compiled_streams.items()])) - except Exception as e: - return None return self.get_stream_pack(stream_pack_name) |