diff options
| author | zhaokun <[email protected]> | 2024-10-10 14:45:20 +0800 |
|---|---|---|
| committer | zhaokun <[email protected]> | 2024-10-10 14:45:20 +0800 |
| commit | bf004c52670e8f0dbc7d0f20ec56c984d7ab7b8f (patch) | |
| tree | 41f959bf8f59f4eb4695f04a6d8a6a6f3a255d26 | |
| parent | 30ad63bc79d73163c492f25a7004017176157b44 (diff) | |
add active flow parameter
| -rw-r--r-- | app.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -84,6 +84,7 @@ def run_traffic_env(): yaml_name = json_data.get("yaml_name") + ".yaml" m = json_data.get("m") d = json_data.get("d") + active_flows = json_data.get("active_flows") clients_start_ip = json_data.get("clients_start_ip") clients_end_ip = json_data.get("clients_end_ip") servers_start_ip = json_data.get("servers_start_ip") @@ -93,7 +94,7 @@ def run_traffic_env(): "traffic_playback_workpath": "/opt/traffic_replay" } tr = trex_replay.TrafficReplay(path_dict) - result = tr.trex_playback(yaml_name, pcap_name, m, d, clients_start_ip, clients_end_ip, servers_start_ip, servers_end_ip) + result = tr.trex_playback(yaml_name, pcap_name, active_flows, m, d, clients_start_ip, clients_end_ip, servers_start_ip, servers_end_ip) # if flag == False and (type == "curl" or type == "wget" or type == "nslookup"): # print("Execute {} operation.".format(type)) # command = json_data.get("command") |
