diff options
Diffstat (limited to 'scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py')
-rwxr-xr-x | scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py | 15 |
1 files changed, 8 insertions, 7 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 946c79dc..f86fff26 100755 --- 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 @@ -2991,19 +2991,20 @@ class STLClient(object): ports = self._validate_port_list(ports) self.logger.pre_cmd('Resolving destination on port(s) {0}:'.format(ports)) - with self.logger.supress(): + + with self.logger.supress(level = LoggerApi.VERBOSE_REGULAR_SYNC): rc = self.__resolve(ports, retries) self.logger.post_cmd(rc) - + + if verbose: + for x in filter(bool, rc.data()): + self.logger.log(format_text("{0}".format(x), 'bold')) + if not rc: raise STLError(rc) - # print the ARP transaction - if verbose: - self.logger.log(rc) - self.logger.log('') - + @__api_check(True) |