Update Proxmox/ThunderboltNetworking_PVE9.md
This commit is contained in:
@@ -147,19 +147,19 @@ retry_failed_targets() {
|
||||
local list="${FAILMAP[$iface]}"
|
||||
[[ -z "$list" ]] && return 0
|
||||
|
||||
log_line "$ICON_INFO" "Retry fehlgeschlagener Pings über $(ci "$iface"): $list"
|
||||
log_line "$ICON_INFO" "Retry fehlgeschlagener Pings: $list"
|
||||
local -a new_fail=()
|
||||
local ip
|
||||
for ip in $list; do
|
||||
if ping_host "$iface" "$ip"; then
|
||||
log_line "$ICON_OK" "Retry erfolgreich: $ip über $(ci "$iface")"
|
||||
log_line "$ICON_OK" "Retry erfolgreich: $ip"
|
||||
else
|
||||
log_line "$ICON_ERR" "Retry fehlgeschlagen: $ip über $(ci "$iface")"
|
||||
log_line "$ICON_ERR" "Retry fehlgeschlagen: $ip"
|
||||
new_fail+=("$ip")
|
||||
fi
|
||||
done
|
||||
if (( ${#new_fail[@]} == 0 )); then
|
||||
log_line "$ICON_OK" "Alle zuvor fehlgeschlagenen Ziele über $(ci "$iface") nun erreichbar"
|
||||
log_line "$ICON_OK" "Alle zuvor fehlgeschlagenen Ziele nun erreichbar"
|
||||
unset 'FAILMAP[$iface]'
|
||||
else
|
||||
FAILMAP[$iface]="${new_fail[*]}"
|
||||
@@ -190,11 +190,11 @@ restart_with_checks() {
|
||||
local ip
|
||||
for ip in "${targets[@]}"; do
|
||||
if ping_host "$iface" "$ip"; then
|
||||
log_line "$ICON_OK" "Ping erfolgreich: $ip über $(ci "$iface")"
|
||||
log_line "$ICON_OK" "Ping erfolgreich: $ip"
|
||||
else
|
||||
all_ok=0
|
||||
failed_now+=("$ip")
|
||||
log_line "$ICON_ERR" "Ping fehlgeschlagen: $ip über $(ci "$iface")"
|
||||
log_line "$ICON_ERR" "Ping fehlgeschlagen: $ip"
|
||||
fi
|
||||
done
|
||||
|
||||
|
||||
Reference in New Issue
Block a user