summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorDan Klein <danklei@cisco.com>2015-10-14 03:01:29 +0300
committerDan Klein <danklei@cisco.com>2015-10-14 03:01:29 +0300
commit4c797902441d1c61fc9012f56ecf95e17cb26110 (patch)
tree48537cff3a0c1f7ff84dec486c693de71034bcfe /scripts
parent7482f09b8a5e8945e8b735233ad8f1674e637aef (diff)
parentb18e8dc6f2aba20767304334380a9b1561379541 (diff)
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/automation/readme.txt4
-rwxr-xr-xscripts/automation/report_template.html2
-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/server/trex_server.py2
-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
-rwxr-xr-xscripts/automation/trex_perf.py8
11 files changed, 33 insertions, 33 deletions
diff --git a/scripts/automation/readme.txt b/scripts/automation/readme.txt
index 2541a1a3..152eee16 100755
--- a/scripts/automation/readme.txt
+++ b/scripts/automation/readme.txt
@@ -1,7 +1,7 @@
README - trex_perf.py
=====================
-This script uses the T-Rex RESTfull client-server conrtol plane achitecture and tries to find the maximum M (platform factor) for trex before hitting one of two stopping conditions:
+This script uses the TRex RESTfull client-server conrtol plane achitecture and tries to find the maximum M (platform factor) for trex before hitting one of two stopping conditions:
(*) Packet drops
(*) High latency.
Since high latency can change from one platform to another, and might suffer from kickoff peak (espicially at VM), it is the user responsibility to provide the latency condition.
@@ -9,7 +9,7 @@ This script uses the T-Rex RESTfull client-server conrtol plane achitecture and
please note that '-f' and '-c' options are mandatory.
-Also, this is the user's responsibility to make sure a T-Rex is running, listening to relevant client request coming from this script.
+Also, this is the user's responsibility to make sure a TRex is running, listening to relevant client request coming from this script.
example for finding max M (between 10 to 100) with imix_fast_1g.yaml traffic profile:
./trex_perf.py -m 10 100 -c config/trex-hhaim.cfg all drop -f cap2/imix_fast_1g.yaml
diff --git a/scripts/automation/report_template.html b/scripts/automation/report_template.html
index 779d5429..ccd5388d 100755
--- a/scripts/automation/report_template.html
+++ b/scripts/automation/report_template.html
@@ -76,7 +76,7 @@ vertical-align:top;
<body>
<H1>
-T-Rex Performance Report
+TRex Performance Report
</H1>
<H2>
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/server/trex_server.py b/scripts/automation/trex_control_plane/server/trex_server.py
index fd39b9c4..e667dbf2 100755
--- a/scripts/automation/trex_control_plane/server/trex_server.py
+++ b/scripts/automation/trex_control_plane/server/trex_server.py
@@ -318,7 +318,7 @@ class CTRexServer(object):
io = iom,
export = export_path )
- logger.info("TREX FULL COMMAND: {command}".format(command = cmd) )
+ logger.info("TRex FULL COMMAND: {command}".format(command = cmd) )
return (cmd, export_path, long(d))
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()
diff --git a/scripts/automation/trex_perf.py b/scripts/automation/trex_perf.py
index 5d11f549..beec5061 100755
--- a/scripts/automation/trex_perf.py
+++ b/scripts/automation/trex_perf.py
@@ -950,7 +950,7 @@ def generate_job_id ():
return (str(int(random.getrandbits(32))))
def print_header ():
- logger.log("--== T-Trex Performance Tool v1.0 (2014) ==--")
+ logger.log("--== TRex Performance Tool v1.0 (2014) ==--")
# print startup summary
def log_startup_summary (job_summary):
@@ -960,10 +960,10 @@ def log_startup_summary (job_summary):
logger.log("\nWork Request Details:\n")
logger.log("Setup Details:\n")
- logger.log("T-Rex Config File: {0}".format(job_summary['config_file']))
+ logger.log("TRex Config File: {0}".format(job_summary['config_file']))
logger.log("Machine Name: {0}".format(trex_config['trex_name']))
- logger.log("T-Rex Type: {0}".format(trex_config['trex_machine_type']))
- logger.log("T-Rex Dual Int. Tx: {0}".format(trex_config['trex_is_dual']))
+ logger.log("TRex Type: {0}".format(trex_config['trex_machine_type']))
+ logger.log("TRex Dual Int. Tx: {0}".format(trex_config['trex_is_dual']))
logger.log("Router Interface: {0}".format(trex_config['router_interface']))
logger.log("\nJob Details:\n")