diff options
Diffstat (limited to 'scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py')
-rw-r--r-- | scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py | 27 |
1 files changed, 9 insertions, 18 deletions
diff --git a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py index d307a383..0f3cd65c 100644 --- a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py +++ b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py @@ -2234,21 +2234,16 @@ class STLClient(object): else: self.stop(active_ports) - try: - # pcap injection removes all previous streams from the ports - self.remove_all_streams(ports = opts.ports) + # pcap injection removes all previous streams from the ports + self.remove_all_streams(ports = opts.ports) - profile = STLProfile.load_pcap(opts.file[0], - opts.ipg_usec, - opts.speedup, - opts.count) - - id_list = self.add_streams(profile.get_streams(), opts.ports) - self.start(ports = opts.ports, duration = opts.duration, force = opts.force) + profile = STLProfile.load_pcap(opts.file[0], + opts.ipg_usec, + opts.speedup, + opts.count) - except STLError as e: - stl.logger.log(e.brief()) - return + id_list = self.add_streams(profile.get_streams(), opts.ports) + self.start(ports = opts.ports, duration = opts.duration, force = opts.force) return True @@ -2268,11 +2263,7 @@ class STLClient(object): if opts is None: return - try: - self.set_port_attr(opts.ports, opts.prom) - except STLError as e: - stl.logger.log(brief()) - return + self.set_port_attr(opts.ports, opts.prom) |