diff options
author | 2016-02-01 03:45:44 -0500 | |
---|---|---|
committer | 2016-02-01 03:47:29 -0500 | |
commit | f9dcbd38e90601f5571bb5bcfb67170876ecd3c6 (patch) | |
tree | 4a6eb47e4a1a528e3df2c866c717b6cfad5d41c3 /scripts/api | |
parent | 696cbfb3616a506cca7e7c68c1b92ff037f54f87 (diff) |
simulator support (API and profiles)
Diffstat (limited to 'scripts/api')
-rw-r--r-- | scripts/api/stl/examples/udp_64B.pcap | bin | 104 -> 0 bytes | |||
-rw-r--r-- | scripts/api/stl/trex_stl_api.py | 12 |
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 Binary files differdeleted file mode 100644 index 699b9c80..00000000 --- a/scripts/api/stl/examples/udp_64B.pcap +++ /dev/null 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 + + |