FRRouting / frr

The FRRouting Protocol Suite
https://frrouting.org/
Other
3.12k stars 1.2k forks source link

zebra: Properly note that a nhg's nexthop has gone down #16330

Open donaldsharp opened 5 days ago

donaldsharp commented 5 days ago

Current code when a link is set down is to just mark the nexthop group as not properly setup. Leaving situations where when an interface goes down and show output is entered we see incorrect state. This is true for anything that would be checking those flags at that point in time.

Modify the interface down nexthop group code to notice the nexthops appropriately ( and I mean set the appropriate flags ) and to allow a show ip route command to actually display what is going on with the nexthops.

eva# show ip route 1.0.0.0 Routing entry for 1.0.0.0/32 Known via "sharp", distance 150, metric 0, best Last update 00:00:06 ago

sharpd@eva:~/frr1$ sudo ip link set dummy2 down

eva# show ip route 1.0.0.0 Routing entry for 1.0.0.0/32 Known via "sharp", distance 150, metric 0, best Last update 00:00:12 ago

Notice now that the 1.0.0.0/32 route now correctly displays the route for the nexthop group entry.

ton31337 commented 5 days ago

@Mergifyio backport dev/10.1

mergify[bot] commented 5 days ago

backport dev/10.1

🟠 Waiting for conditions to match

- [ ] `merged` [📌 backport requirement]
ton31337 commented 4 days ago

Should we fix checkpatch.pl stuff?

donaldsharp commented 4 days ago

yes we should