ClusterLabs / resource-agents

Combined repository of OCF agents from the RHCS and Linux-HA projects
GNU General Public License v2.0
493 stars 583 forks source link

findif.sh: ignore unreachable, blackhole, and prohibit routes #1965

Closed oalbrigt closed 3 months ago

oalbrigt commented 3 months ago

Fixes #1963.

bootc commented 3 months ago

If you're doing it this way I think you'll also want to ignore prohibit and blackhole routes.

I'm not entirely clear why this code does a ip route list match rather than simply a ip route get to get the route that the kernel would use. Would that not be better? Yes it works differently and it's not necessarily obvious if a route uses the default route in this case, but does it matter for this usage?

oalbrigt commented 3 months ago

We can ignore those as well. I dont know the reason why it was used in the first place, but it's what has been used forever.