mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-06 16:20:08 +00:00
zebra: shutdown doesn't uninstall zebra's NHGs
When an interface goes down, it signals any related NHGs to re-validate themselves. During zebra shutdown, ensure we remove any NHGs we've installed. Signed-off-by: Mark Stapp <mstapp@nvidia.com>
This commit is contained in:
parent
583ba572b7
commit
2472d3e876
@ -224,9 +224,13 @@ static int if_zebra_new_hook(struct interface *ifp)
|
||||
static void if_nhg_dependents_check_valid(struct nhg_hash_entry *nhe)
|
||||
{
|
||||
zebra_nhg_check_valid(nhe);
|
||||
if (!CHECK_FLAG(nhe->flags, NEXTHOP_GROUP_VALID))
|
||||
/* Assuming uninstalled as well here */
|
||||
UNSET_FLAG(nhe->flags, NEXTHOP_GROUP_INSTALLED);
|
||||
if (!CHECK_FLAG(nhe->flags, NEXTHOP_GROUP_VALID)) {
|
||||
/* If we're in shutdown, this interface event needs to clean
|
||||
* up installed NHGs, so don't clear that flag directly.
|
||||
*/
|
||||
if (!zrouter.in_shutdown)
|
||||
UNSET_FLAG(nhe->flags, NEXTHOP_GROUP_INSTALLED);
|
||||
}
|
||||
}
|
||||
|
||||
static void if_down_nhg_dependents(const struct interface *ifp)
|
||||
|
Loading…
Reference in New Issue
Block a user