Skip to content

Remove static route entries in FIB for nexthops that become unreachable - #4833

Open
gizmoguy wants to merge 2 commits into
faucetsdn:mainfrom
gizmoguy:del-dead-nexthop-static-routes
Open

Remove static route entries in FIB for nexthops that become unreachable#4833
gizmoguy wants to merge 2 commits into
faucetsdn:mainfrom
gizmoguy:del-dead-nexthop-static-routes

Conversation

@gizmoguy

@gizmoguy gizmoguy commented Jul 30, 2026

Copy link
Copy Markdown
Member

Currently when a gateway becomes unreachable that is a nexthop for a static route, only the host route is removed from the FIB, not the static routes.

This patch also expires the static routes to prevent unusable routes from existing in the FIB.

The test case for this patch requires the fix from #4827 to pass

@gizmoguy
gizmoguy force-pushed the del-dead-nexthop-static-routes branch 3 times, most recently from 16acce2 to 601f9e7 Compare July 31, 2026 02:20
@codecov

codecov Bot commented Jul 31, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.44%. Comparing base (076889d) to head (18eb45e).
⚠️ Report is 44 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4833      +/-   ##
==========================================
+ Coverage   91.42%   91.44%   +0.02%     
==========================================
  Files          46       46              
  Lines        8923     8925       +2     
==========================================
+ Hits         8157     8161       +4     
+ Misses        766      764       -2     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@gizmoguy
gizmoguy force-pushed the del-dead-nexthop-static-routes branch 3 times, most recently from f144444 to 73706dd Compare July 31, 2026 02:47
@gizmoguy
gizmoguy force-pushed the del-dead-nexthop-static-routes branch from 73706dd to 18eb45e Compare July 31, 2026 03:03
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.

1 participant