summaryrefslogtreecommitdiffstats
path: root/scripts/automation/trex_control_plane
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/automation/trex_control_plane')
-rwxr-xr-xscripts/automation/trex_control_plane/client/trex_adv_client.py2
-rw-r--r--scripts/automation/trex_control_plane/console/trex_console.py4
-rwxr-xr-xscripts/automation/trex_control_plane/examples/client_interactive_example.py2
-rw-r--r--scripts/automation/trex_control_plane/examples/interactive_stateless.py14
-rwxr-xr-xscripts/automation/trex_control_plane/unit_tests/control_plane_general_test.py2
-rwxr-xr-xscripts/automation/trex_control_plane/unit_tests/control_plane_unit_test.py2
-rwxr-xr-xscripts/automation/trex_control_plane/unit_tests/functional_test.py24
7 files changed, 25 insertions, 25 deletions
diff --git a/scripts/automation/trex_control_plane/client/trex_adv_client.py b/scripts/automation/trex_control_plane/client/trex_adv_client.py
index b3fe3dad..bf7ccf58 100755
--- a/scripts/automation/trex_control_plane/client/trex_adv_client.py
+++ b/scripts/automation/trex_control_plane/client/trex_adv_client.py
@@ -8,7 +8,7 @@ class CTRexAdvClient(trex_client.CTRexClient):
super(CTRexAdvClient, self).__init__(trex_host, max_history_size, trex_daemon_port, trex_zmq_port, verbose)
pass
- # T-REX KIWI advanced methods
+ # TRex KIWI advanced methods
def start_quick_trex(self, pcap_file, d, delay, dual, ipv6, times, interfaces):
try:
return self.server.start_quick_trex(pcap_file = pcap_file, duration = d, dual = dual, delay = delay, ipv6 = ipv6, times = times, interfaces = interfaces)
diff --git a/scripts/automation/trex_control_plane/console/trex_console.py b/scripts/automation/trex_control_plane/console/trex_console.py
index 3aeab901..9478db5a 100644
--- a/scripts/automation/trex_control_plane/console/trex_console.py
+++ b/scripts/automation/trex_control_plane/console/trex_console.py
@@ -326,11 +326,11 @@ class TrexConsole(cmd.Cmd):
def setParserOptions ():
parser = argparse.ArgumentParser(prog="trex_console.py")
- parser.add_argument("-s", "--server", help = "T-Rex Server [default is localhost]",
+ parser.add_argument("-s", "--server", help = "TRex Server [default is localhost]",
default = "localhost",
type = str)
- parser.add_argument("-p", "--port", help = "T-Rex Server Port [default is 5050]\n",
+ parser.add_argument("-p", "--port", help = "TRex Server Port [default is 5050]\n",
default = 5050,
type = int)
diff --git a/scripts/automation/trex_control_plane/examples/client_interactive_example.py b/scripts/automation/trex_control_plane/examples/client_interactive_example.py
index 9ee28898..d21b2b15 100755
--- a/scripts/automation/trex_control_plane/examples/client_interactive_example.py
+++ b/scripts/automation/trex_control_plane/examples/client_interactive_example.py
@@ -74,7 +74,7 @@ class InteractiveTRexClient(cmd.Cmd):
print termstyle.green("*** End of TRex status prompt ***")
def do_show_trex_files_path (self, line):
- """Prompts the local path in which files are stored when pushed to t-rex server from client"""
+ """Prompts the local path in which files are stored when pushed to trex server from client"""
print self.trex.get_trex_files_path()
print termstyle.green("*** End of trex_files_path prompt ***")
diff --git a/scripts/automation/trex_control_plane/examples/interactive_stateless.py b/scripts/automation/trex_control_plane/examples/interactive_stateless.py
index 7c25b4ef..e64b4755 100644
--- a/scripts/automation/trex_control_plane/examples/interactive_stateless.py
+++ b/scripts/automation/trex_control_plane/examples/interactive_stateless.py
@@ -76,18 +76,18 @@ class InteractiveStatelessTRex(cmd.Cmd):
def do_push_files(self, filepaths):
- """Pushes a custom file to be stored locally on T-Rex server.\
+ """Pushes a custom file to be stored locally on TRex server.\
\nPush multiple files by specifying their path separated by ' ' (space)."""
try:
filepaths = filepaths.split(' ')
- print termstyle.green("*** Starting pushing files ({trex_files}) to T-Rex. ***".format(
+ print termstyle.green("*** Starting pushing files ({trex_files}) to TRex. ***".format(
trex_files=', '.join(filepaths))
)
ret_val = self.trex.push_files(filepaths)
if ret_val:
- print termstyle.green("*** End of T-Rex push_files method (success) ***")
+ print termstyle.green("*** End of TRex push_files method (success) ***")
else:
- print termstyle.magenta("*** End of T-Rex push_files method (failed) ***")
+ print termstyle.magenta("*** End of TRex push_files method (failed) ***")
except IOError as inst:
print termstyle.magenta(inst)
@@ -99,10 +99,10 @@ if __name__ == "__main__":
parser.add_argument('-v', '--version', action='version', version='%(prog)s 1.0 \t (C) Cisco Systems Inc.\n')
parser.add_argument("-t", "--trex-host", required = True, dest="trex_host",
- action="store", help="Specify the hostname or ip to connect with T-Rex server.",
+ action="store", help="Specify the hostname or ip to connect with TRex server.",
metavar="HOST" )
parser.add_argument("-p", "--trex-port", type=int, default = 5050, metavar="PORT", dest="trex_port",
- help="Select port on which the T-Rex server listens. Default port is 5050.", action="store")
+ help="Select port on which the TRex server listens. Default port is 5050.", action="store")
# parser.add_argument("-m", "--maxhist", type=int, default = 100, metavar="SIZE", dest="hist_size",
# help="Specify maximum history size saved at client side. Default size is 100.", action="store")
parser.add_argument("--virtual", dest="virtual",
@@ -124,5 +124,5 @@ if __name__ == "__main__":
except socket.error, e:
if e.errno == errno.ECONNREFUSED:
raise socket.error(errno.ECONNREFUSED,
- "Connection from T-Rex server was terminated. \
+ "Connection from TRex server was terminated. \
Please make sure the server is up.")
diff --git a/scripts/automation/trex_control_plane/unit_tests/control_plane_general_test.py b/scripts/automation/trex_control_plane/unit_tests/control_plane_general_test.py
index 95f259b8..32ad5243 100755
--- a/scripts/automation/trex_control_plane/unit_tests/control_plane_general_test.py
+++ b/scripts/automation/trex_control_plane/unit_tests/control_plane_general_test.py
@@ -9,7 +9,7 @@ Name:
Description:
- This script creates the functionality to test the performance of the T-Rex traffic generator control plane.
+ This script creates the functionality to test the performance of the TRex traffic generator control plane.
The scenarios assumes a WORKING server is listening and processing the requests.
::
diff --git a/scripts/automation/trex_control_plane/unit_tests/control_plane_unit_test.py b/scripts/automation/trex_control_plane/unit_tests/control_plane_unit_test.py
index 37130ee4..1120256c 100755
--- a/scripts/automation/trex_control_plane/unit_tests/control_plane_unit_test.py
+++ b/scripts/automation/trex_control_plane/unit_tests/control_plane_unit_test.py
@@ -18,7 +18,7 @@ class TRexCPConfiguringPlugin(Plugin):
super(TRexCPConfiguringPlugin, self).options(parser, env)
parser.add_option('-t', '--trex-server', action='store',
dest='trex_server', default='trex-dan',
- help='Specify T-Rex server hostname. This server will be used to test control-plane functionality.')
+ help='Specify TRex server hostname. This server will be used to test control-plane functionality.')
def configure(self, options, conf):
if options.trex_server:
diff --git a/scripts/automation/trex_control_plane/unit_tests/functional_test.py b/scripts/automation/trex_control_plane/unit_tests/functional_test.py
index f742403d..30836985 100755
--- a/scripts/automation/trex_control_plane/unit_tests/functional_test.py
+++ b/scripts/automation/trex_control_plane/unit_tests/functional_test.py
@@ -37,7 +37,7 @@ class CTRexStartStop_Test(CControlPlaneGeneral_Test):
def test_parameter_name_error(self):
ret = self.trex.start_trex( c = 4,
- wrong_key = 1.1, # <----- This key does not exists in T-Rex API
+ wrong_key = 1.1, # <----- This key does not exists in TRex API
d = 70,
f = 'avl/sfr_delay_10_1g.yaml',
nc = True,
@@ -50,7 +50,7 @@ class CTRexStartStop_Test(CControlPlaneGeneral_Test):
run_status = self.trex.get_running_status()
assert isinstance(run_status, dict)
assert_equal (run_status['state'], TRexStatus.Idle )
- assert_equal (run_status['verbose'], "T-Rex run failed due to wrong input parameters, or due to reachability issues.")
+ assert_equal (run_status['verbose'], "TRex run failed due to wrong input parameters, or due to reachability issues.")
assert_raises(TRexError, self.trex.get_running_info)
def test_too_early_sample(self):
@@ -83,33 +83,33 @@ class CTRexStartStop_Test(CControlPlaneGeneral_Test):
assert self.trex.is_running() == False
def test_start_more_than_once_same_user(self):
- assert self.trex.is_running() == False # first, make sure T-Rex is not running
- ret = self.trex.start_trex(**self.valid_start_params) # start 1st T-Rex run
+ assert self.trex.is_running() == False # first, make sure TRex is not running
+ ret = self.trex.start_trex(**self.valid_start_params) # start 1st TRex run
assert ret == True # make sure 1st run submitted successfuly
# time.sleep(1)
- assert_raises(TRexInUseError, self.trex.start_trex, **self.valid_start_params) # try to start T-Rex again
+ assert_raises(TRexInUseError, self.trex.start_trex, **self.valid_start_params) # try to start TRex again
ret = self.trex.stop_trex()
assert ret==True # make sure stop succeeded
assert self.trex.is_running() == False
def test_start_more_than_once_different_users(self):
- assert self.trex.is_running() == False # first, make sure T-Rex is not running
- ret = self.trex.start_trex(**self.valid_start_params) # start 1st T-Rex run
+ assert self.trex.is_running() == False # first, make sure TRex is not running
+ ret = self.trex.start_trex(**self.valid_start_params) # start 1st TRex run
assert ret == True # make sure 1st run submitted successfuly
# time.sleep(1)
tmp_trex = CTRexClient(self.trex_server_name) # initialize another client connecting same server
- assert_raises(TRexInUseError, tmp_trex.start_trex, **self.valid_start_params) # try to start T-Rex again
+ assert_raises(TRexInUseError, tmp_trex.start_trex, **self.valid_start_params) # try to start TRex again
ret = self.trex.stop_trex()
assert ret==True # make sure stop succeeded
assert self.trex.is_running() == False
def test_simultaneous_sampling(self):
- assert self.trex.is_running() == False # first, make sure T-Rex is not running
+ assert self.trex.is_running() == False # first, make sure TRex is not running
tmp_trex = CTRexClient(self.trex_server_name) # initialize another client connecting same server
- ret = self.trex.start_trex(**self.valid_start_params) # start T-Rex run
+ ret = self.trex.start_trex(**self.valid_start_params) # start TRex run
assert ret == True # make sure 1st run submitted successfuly
time.sleep(6)
@@ -123,7 +123,7 @@ class CTRexStartStop_Test(CControlPlaneGeneral_Test):
assert tmp_trex.get_result_obj().is_valid_hist() == True
if self.trex.get_result_obj().is_done_warmup():
assert tmp_trex.get_result_obj().is_done_warmup() == True
- # except TRexError as inst: # T-Rex might have stopped between is_running result and get_running_info() call
+ # except TRexError as inst: # TRex might have stopped between is_running result and get_running_info() call
# # hence, ingore that case
# break
@@ -132,7 +132,7 @@ class CTRexStartStop_Test(CControlPlaneGeneral_Test):
def test_fast_toggling(self):
assert self.trex.is_running() == False
for i in range(20):
- ret = self.trex.start_trex(**self.valid_start_params) # start T-Rex run
+ ret = self.trex.start_trex(**self.valid_start_params) # start TRex run
assert ret == True
assert self.trex.is_running() == False # we expect the status to be 'Starting'
ret = self.trex.stop_trex()