diff options
Diffstat (limited to 'scripts/automation/trex_control_plane')
-rwxr-xr-x | scripts/automation/trex_control_plane/stf/trex_stf_lib/trex_client.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/automation/trex_control_plane/stf/trex_stf_lib/trex_client.py b/scripts/automation/trex_control_plane/stf/trex_stf_lib/trex_client.py index 0aac043e..1a2fd340 100755 --- a/scripts/automation/trex_control_plane/stf/trex_stf_lib/trex_client.py +++ b/scripts/automation/trex_control_plane/stf/trex_stf_lib/trex_client.py @@ -101,6 +101,7 @@ class CTRexClient(object): ''' Connects to Master daemon via JsonRPC. This daemon controls TRex daemon server. + Return true if success, false if fail ''' try: print('Connecting to Master daemon @ %s ...' % self.master_daemon_path) @@ -115,7 +116,8 @@ class CTRexClient(object): def connect_server(self): ''' Connects to TRex daemon server via JsonRPC. - This daemon controls TRex. (start/stop + This daemon controls TRex. (start/stop) + Return true if success, false if fail ''' try: print('Connecting to TRex daemon server @ %s ...' % self.trex_server_path) @@ -359,7 +361,7 @@ class CTRexClient(object): Returns TRex path on server ''' try: - return self.master_daemon.get_trex_path() + return self.master_daemon.get_trex_path().encode('ascii', errors='replace') except AppError as err: self._handle_AppError_exception(err.args[0]) finally: |