From 1f405257ba6caed845551b0641de914281ecfeba Mon Sep 17 00:00:00 2001 From: imarom Date: Wed, 21 Dec 2016 17:49:38 +0200 Subject: RX services - general API to allow addition of new features see trex_stl_lib/rx_services/trex_stl_rx_service_api.py Signed-off-by: imarom --- .../stl/trex_stl_lib/trex_stl_client.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py') 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) -- cgit 1.2.3-korg