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

fix delete tuntap inf from bridge before delete it to avoid error busy device

parent 5ed882b3
No related branches found
No related tags found
No related merge requests found
...@@ -189,6 +189,8 @@ class IdsOpportunistic: ...@@ -189,6 +189,8 @@ class IdsOpportunistic:
# Double check if IDS deployed correctly to be removed: Checking the interface connect to br0 is private inf of IDS # Double check if IDS deployed correctly to be removed: Checking the interface connect to br0 is private inf of IDS
if inside_inter_name == private_if: if inside_inter_name == private_if:
if_utils.delete_interface_from_bridge(new_bridge, public_if)
if_utils.delete_interface_from_bridge(if_utils.BR_CENTER_NAME, private_if)
if_utils.delete_tuntap_interface(public_if) if_utils.delete_tuntap_interface(public_if)
if_utils.delete_tuntap_interface(private_if) if_utils.delete_tuntap_interface(private_if)
if_utils.delete_bridge(new_bridge) if_utils.delete_bridge(new_bridge)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment