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