Skip to content
Snippets Groups Projects
Commit 1b504a3b authored by NGUYEN Do Duc Anh's avatar NGUYEN Do Duc Anh
Browse files

fix bug

parent c01a4260
No related branches found
No related tags found
No related merge requests found
......@@ -275,8 +275,8 @@ def run_ids_solo5_hvt(map_tap_inf_for_ids):
inter_name, new_bridge, public_if = map_tap_inf_for_ids[i]
private_if = map_inf_inside[i]
# Add the --net option dynamically for each interface
command.append(f"--net:public{i}={public_if}")
command.append(f"--net:private{i}={private_if}")
command.append(f"--net:public{i + 1}={public_if}")
command.append(f"--net:private{i + 1}={private_if}")
# Append the final path to the HVT file
command.append(f"{DIR}/simple-IDS/dist/simple-ids.hvt")
......@@ -429,4 +429,4 @@ def update_ospf_rule(input_map):
print("Failed to configure OSPF.")
except Exception as e:
print(f"An error occurred: {e}")
\ No newline at end of file
print(f"An error occurred: {e}")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment