summaryrefslogtreecommitdiffstats
path: root/scripts/automation/trex_control_plane/stl/examples/stl_simple_console_like.py
diff options
context:
space:
mode:
authorHanoh Haim <hhaim@cisco.com>2016-03-30 13:58:11 +0300
committerHanoh Haim <hhaim@cisco.com>2016-03-30 13:58:11 +0300
commit422c7c52632ebb6fbc5d5ff638b6ef0e1bc56f6b (patch)
tree5794318455a66a03828f98a5d6e825f47df3084e /scripts/automation/trex_control_plane/stl/examples/stl_simple_console_like.py
parent2ec326cbe088f3ee5634336e326ae8c3561c7461 (diff)
parentb91c216db1aa10ca7cc81b8c74b04ab79df251fe (diff)
Merge GA to Python API
Diffstat (limited to 'scripts/automation/trex_control_plane/stl/examples/stl_simple_console_like.py')
-rw-r--r--scripts/automation/trex_control_plane/stl/examples/stl_simple_console_like.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/automation/trex_control_plane/stl/examples/stl_simple_console_like.py b/scripts/automation/trex_control_plane/stl/examples/stl_simple_console_like.py
index 03909e65..1d4ef250 100644
--- a/scripts/automation/trex_control_plane/stl/examples/stl_simple_console_like.py
+++ b/scripts/automation/trex_control_plane/stl/examples/stl_simple_console_like.py
@@ -29,9 +29,10 @@ def simple ():
print(c.get_port_info(my_ports))
c.ping()
+ profile_file = os.path.join(stl_path.STL_PROFILES_PATH, 'udp_1pkt_simple.py')
print("start")
- c.start_line (" -f ../../../../stl/udp_1pkt_simple.py -m 10mpps --port 0 1 ")
+ c.start_line (" -f %s -m 10mpps --port 0 1 " % profile_file)
time.sleep(2);
c.pause_line("--port 0 1");
time.sleep(2);