summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzhaokun <[email protected]>2024-11-25 16:12:15 +0800
committerzhaokun <[email protected]>2024-11-25 16:12:15 +0800
commit7dbd7e03d5c2b18449be43c199c91ed844a415fa (patch)
tree45861cbc6720092d340d60d5596e430350fc9164
parent5ce77c1173cf468a312cf9c1cb1a787dee0cc909 (diff)
add if logic for trexdevelop
-rw-r--r--app.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/app.py b/app.py
index 2efc685..423c0b0 100644
--- a/app.py
+++ b/app.py
@@ -72,7 +72,7 @@ def run_traffic_env():
elif tool == "vxlan":
print(datetime.now().strftime("%Y-%m-%d %H:%M:%S"), str(datetime.now().microsecond)[:3], "Simulate vxlan traffic by tcpreplay.", flush=True)
print("to be added")
- elif tool == "":
+ elif tool == "trex":
print("Execute {} operation.".format(type))
pcap_name = json_data.get("pcap_name") + ".pcap"
yaml_name = json_data.get("yaml_name") + ".yaml"