summaryrefslogtreecommitdiffstats
path: root/scripts/api
diff options
context:
space:
mode:
authorimarom <imarom@cisco.com>2016-02-01 03:45:44 -0500
committerimarom <imarom@cisco.com>2016-02-01 03:47:29 -0500
commitf9dcbd38e90601f5571bb5bcfb67170876ecd3c6 (patch)
tree4a6eb47e4a1a528e3df2c866c717b6cfad5d41c3 /scripts/api
parent696cbfb3616a506cca7e7c68c1b92ff037f54f87 (diff)
simulator support (API and profiles)
Diffstat (limited to 'scripts/api')
-rw-r--r--scripts/api/stl/examples/udp_64B.pcapbin104 -> 0 bytes
-rw-r--r--scripts/api/stl/trex_stl_api.py12
2 files changed, 11 insertions, 1 deletions
diff --git a/scripts/api/stl/examples/udp_64B.pcap b/scripts/api/stl/examples/udp_64B.pcap
deleted file mode 100644
index 699b9c80..00000000
--- a/scripts/api/stl/examples/udp_64B.pcap
+++ /dev/null
Binary files differ
diff --git a/scripts/api/stl/trex_stl_api.py b/scripts/api/stl/trex_stl_api.py
index 09a0af18..0bfd1181 100644
--- a/scripts/api/stl/trex_stl_api.py
+++ b/scripts/api/stl/trex_stl_api.py
@@ -7,19 +7,29 @@ import time
root_path = os.path.dirname(os.path.abspath(__file__))
sys.path.insert(0, os.path.join(root_path, '../../automation/trex_control_plane/'))
+sys.path.insert(0, os.path.join(root_path, '../../stl/'))
# aliasing
import common.trex_streams
from client_utils.packet_builder import CTRexPktBuilder
import common.trex_stl_exceptions
import client.trex_stateless_client
+import client.trex_stateless_sim
+# client and errors
STLClient = client.trex_stateless_client.STLClient
STLError = common.trex_stl_exceptions.STLError
-STLStream = common.trex_streams.STLStream
+# streams
+STLStream = common.trex_streams.STLStream
STLTXCont = common.trex_streams.STLTXCont
STLTXSingleBurst = common.trex_streams.STLTXSingleBurst
STLTXMultiBurst = common.trex_streams.STLTXMultiBurst
+# packet builder
STLPktBuilder = CTRexPktBuilder
+
+# simulator
+STLSim = client.trex_stateless_sim.STLSim
+
+