...
This commit is contained in:
@@ -148,7 +148,7 @@ cleanup_network() {
|
||||
|
||||
# Check if bridge still has any TAP interfaces
|
||||
if [ -n "$bridge_name" ] && ip link show "$bridge_name" &>/dev/null; then
|
||||
local tap_count=$(ip link show master "$bridge_name" 2>/dev/null | grep -c "tap-" || echo "0")
|
||||
local tap_count=$(ip link show master "$bridge_name" 2>/dev/null | grep "tap-" | wc -l)
|
||||
if [ "$tap_count" -eq 0 ]; then
|
||||
info "Bridge '$bridge_name' has no remaining TAP interfaces"
|
||||
# Note: We don't automatically remove the bridge as it might be used by other services
|
||||
|
||||
Reference in New Issue
Block a user