summaryrefslogtreecommitdiffstats
path: root/scripts/automation/trex_control_plane/common
diff options
context:
space:
mode:
authorHanoh Haim <hhaim@cisco.com>2015-12-29 00:30:09 +0200
committerHanoh Haim <hhaim@cisco.com>2015-12-29 00:30:09 +0200
commit9e16960d1502524ae00df83e3d1c05ddbb2487c7 (patch)
tree8085fa93b41e5c943763fe7e1035672c9e11a361 /scripts/automation/trex_control_plane/common
parentfbcdbcdf05f495a02e62ee8bb6146d266147aefa (diff)
trim packet size command works
Diffstat (limited to 'scripts/automation/trex_control_plane/common')
-rwxr-xr-xscripts/automation/trex_control_plane/common/trex_streams.py13
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)