diff options
author | imarom <imarom@cisco.com> | 2016-12-21 17:49:38 +0200 |
---|---|---|
committer | imarom <imarom@cisco.com> | 2016-12-21 17:52:14 +0200 |
commit | 1f405257ba6caed845551b0641de914281ecfeba (patch) | |
tree | ed941041bd5d216d73566a07b1869f70b95df5ec /scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py | |
parent | c77174ade8d36f377cfa74da4c487f04988a9679 (diff) |
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 <imarom@cisco.com>
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) |