summaryrefslogtreecommitdiffstats
path: root/scripts/api/stl/trex_stl_api.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/api/stl/trex_stl_api.py')
-rw-r--r--scripts/api/stl/trex_stl_api.py25
1 files changed, 25 insertions, 0 deletions
diff --git a/scripts/api/stl/trex_stl_api.py b/scripts/api/stl/trex_stl_api.py
new file mode 100644
index 00000000..09a0af18
--- /dev/null
+++ b/scripts/api/stl/trex_stl_api.py
@@ -0,0 +1,25 @@
+import os
+import sys
+import time
+
+
+# update the import path to include the stateless client
+root_path = os.path.dirname(os.path.abspath(__file__))
+
+sys.path.insert(0, os.path.join(root_path, '../../automation/trex_control_plane/'))
+
+# aliasing
+import common.trex_streams
+from client_utils.packet_builder import CTRexPktBuilder
+import common.trex_stl_exceptions
+import client.trex_stateless_client
+
+STLClient = client.trex_stateless_client.STLClient
+STLError = common.trex_stl_exceptions.STLError
+STLStream = common.trex_streams.STLStream
+
+STLTXCont = common.trex_streams.STLTXCont
+STLTXSingleBurst = common.trex_streams.STLTXSingleBurst
+STLTXMultiBurst = common.trex_streams.STLTXMultiBurst
+
+STLPktBuilder = CTRexPktBuilder