Skip to content

fix: use RouteListFiltered in checkTerminationRoutes#178

Merged
privateip merged 1 commit into
mainfrom
fix/issue-167
Jun 30, 2026
Merged

fix: use RouteListFiltered in checkTerminationRoutes#178
privateip merged 1 commit into
mainfrom
fix/issue-167

Conversation

@privateip

Copy link
Copy Markdown
Contributor

Replace RouteList with RouteListFiltered so the kernel pre-filters IPv6 routes by VRF table ID instead of dumping the entire host route table and filtering in Go. This eliminates a full kernel route-table scan on every CNI CHECK call and follows the same pattern used in vrf.flush().

fixes #167

Replace RouteList with RouteListFiltered so the kernel pre-filters
IPv6 routes by VRF table ID instead of dumping the entire host route
table and filtering in Go. This eliminates a full kernel route-table
scan on every CNI CHECK call and follows the same pattern used in
vrf.flush().

fixes #167
@privateip privateip requested a review from a team as a code owner June 30, 2026 20:46
@privateip privateip requested a review from 0xmc June 30, 2026 20:46
@privateip privateip merged commit 5279f48 into main Jun 30, 2026
5 checks passed
@privateip privateip deleted the fix/issue-167 branch June 30, 2026 23:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

checkTerminationRoutes should use RouteListFiltered instead of fetching all routes

2 participants