summaryrefslogtreecommitdiffstats
path: root/scripts/automation/trex_control_plane/client
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/automation/trex_control_plane/client')
-rwxr-xr-xscripts/automation/trex_control_plane/client/outer_packages.py6
-rwxr-xr-xscripts/automation/trex_control_plane/client/trex_client.py12
2 files changed, 8 insertions, 10 deletions
diff --git a/scripts/automation/trex_control_plane/client/outer_packages.py b/scripts/automation/trex_control_plane/client/outer_packages.py
index 092cad2c..886aef93 100755
--- a/scripts/automation/trex_control_plane/client/outer_packages.py
+++ b/scripts/automation/trex_control_plane/client/outer_packages.py
@@ -2,14 +2,12 @@
import sys
import site
-import platform
import os
-
CURRENT_PATH = os.path.dirname(os.path.realpath(__file__))
ROOT_PATH = os.path.abspath(os.path.join(CURRENT_PATH, os.pardir)) # path to trex_control_plane directory
-PATH_TO_PYTHON_LIB = os.path.abspath(os.path.join(ROOT_PATH, 'python_lib'))
-
+PATH_TO_PYTHON_LIB = os.path.abspath(os.path.join(ROOT_PATH, os.pardir, os.pardir,
+ os.pardir, 'external_libs', 'python'))
CLIENT_MODULES = ['enum34-1.0.4',
'jsonrpclib-pelix-0.2.5',
diff --git a/scripts/automation/trex_control_plane/client/trex_client.py b/scripts/automation/trex_control_plane/client/trex_client.py
index 1f297538..0fbb4719 100755
--- a/scripts/automation/trex_control_plane/client/trex_client.py
+++ b/scripts/automation/trex_control_plane/client/trex_client.py
@@ -35,7 +35,7 @@ class CTRexClient(object):
def __init__(self, trex_host, max_history_size = 100, trex_daemon_port = 8090, trex_zmq_port = 4500, verbose = False):
"""
- Instatiate a T-Rex client object, and connecting it to listening deamon-server
+ Instantiate a T-Rex client object, and connecting it to listening daemon-server
:parameters:
trex_host : str
@@ -45,15 +45,15 @@ class CTRexClient(object):
default value : **100**
trex_daemon_port : int
- the port number on which the trex-deamon server can be reached
+ the port number on which the trex-daemon server can be reached
default value: **8090**
trex_zmq_port : int
- the port number on which trex's zmq module will interact with deamon server
+ the port number on which trex's zmq module will interact with daemon server
default value: **4500**
verbose : bool
- sets a verbose output on suported class method.
+ sets a verbose output on supported class method.
default value : **False**
@@ -153,7 +153,7 @@ class CTRexClient(object):
"""
Request to stop a T-Rex run on server.
- The request is only valid if the stop intitiator is the same client as the T-Rex run intitiator.
+ The request is only valid if the stop initiator is the same client as the T-Rex run initiator.
:parameters:
None
@@ -223,7 +223,7 @@ class CTRexClient(object):
"""
Block the client application until T-Rex changes state from 'Starting' to either 'Idle' or 'Running'
- The request is only valid if the stop intitiator is the same client as the T-Rex run intitiator.
+ The request is only valid if the stop initiator is the same client as the T-Rex run initiator.
:parameters:
timeout : int