Fix error handling bridge devices on host systems.

This commit is contained in:
2026-01-15 17:02:40 +01:00
parent 16eb4d7e0f
commit 7dd1a17e10
3 changed files with 189 additions and 189 deletions

View File

@@ -121,6 +121,18 @@ detect_ipv6() {
}
# -------------
# - Network Device Stuff
# -------------
# get virtual ethernet interfaces and the master of the given bridge
#
get_vth_ports() {
local br="$1"
# lists virtual interfaces (veth*)) and the master interface of the given bridge
ip -o link show master "$br" 2>/dev/null | awk -F': ' '{print $2}'
}
# -------------
# - Fail2ban
# -------------