summaryrefslogtreecommitdiffstats
path: root/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_sim.py
diff options
context:
space:
mode:
authorimarom <imarom@cisco.com>2016-02-16 03:49:36 -0500
committerimarom <imarom@cisco.com>2016-02-16 06:14:41 -0500
commit8f6067d8738fa77a147955ee208ece8dea198111 (patch)
tree738a8fe43da5ec2045e568d9c2c822b29732a7db /scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_sim.py
parent16270f0ee64b0981c6c6dcd2bbff230172f67ee3 (diff)
help was broken in the simulator
also some more bugs
Diffstat (limited to 'scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_sim.py')
-rw-r--r--scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_sim.py11
1 files changed, 2 insertions, 9 deletions
diff --git a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_sim.py b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_sim.py
index 380b7a39..907125e9 100644
--- a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_sim.py
+++ b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_sim.py
@@ -27,8 +27,6 @@ from trex_stl_client import STLClient
import re
import json
-import zlib
-import struct
import argparse
@@ -218,19 +216,14 @@ class STLSim(object):
# internal run
- def __run (self, cmds_json, zipped = True):
+ def __run (self, cmds_json):
# write to temp file
f = tempfile.NamedTemporaryFile(delete = False)
msg = json.dumps(cmds_json)
- # stress the zip path
- if zipped:
- compressed = zlib.compress(msg)
- new_msg = struct.pack(">II", 0xABE85CEA, len(msg)) + compressed
-
- f.write(new_msg)
+ f.write(msg)
f.close()
# launch bp-sim