Commit 4f62bb79 authored by Vitaly Lipatov's avatar Vitaly Lipatov

route-update.sh: fix multipath route count with POSIX character class

grep '\t' in bracket expression matches literal backslash+t, not tab. Use [^[:space:]] which works correctly with multipath nexthop lines. Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
parent f650bde2
......@@ -411,7 +411,7 @@ process_routes()
rm -f "$stale"
# Verify route count matches expected
local actual=$($ipcmd route show table "$table" 2>/dev/null | grep -c '^[^\t ]')
local actual=$($ipcmd route show table "$table" 2>/dev/null | grep -c '^[^[:space:]]')
if [ "$actual" != "$count" ] ; then
log "[$name]$label WARNING: route count mismatch: expected $count, got $actual"
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment