mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 10:37:29 +00:00
Merge pull request #1776 from dslicenc/static-inactive-cm19675
zebra: fix rnh deleting nht entry
This commit is contained in:
commit
5cfb017a67
@ -416,8 +416,6 @@ static int nexthop_active(afi_t afi, struct route_entry *re,
|
||||
|
||||
if (set) {
|
||||
UNSET_FLAG(nexthop->flags, NEXTHOP_FLAG_RECURSIVE);
|
||||
zebra_deregister_rnh_static_nexthops(nexthop->vrf_id,
|
||||
nexthop->resolved, top);
|
||||
nexthops_free(nexthop->resolved);
|
||||
nexthop->resolved = NULL;
|
||||
re->nexthop_mtu = 0;
|
||||
@ -2112,7 +2110,9 @@ void rib_unlink(struct route_node *rn, struct route_entry *re)
|
||||
dest->selected_fib = NULL;
|
||||
|
||||
/* free RE and nexthops */
|
||||
zebra_deregister_rnh_static_nexthops(re->vrf_id, re->nexthop, rn);
|
||||
if (re->type == ZEBRA_ROUTE_STATIC)
|
||||
zebra_deregister_rnh_static_nexthops(re->vrf_id,
|
||||
re->nexthop, rn);
|
||||
nexthops_free(re->nexthop);
|
||||
XFREE(MTYPE_RE, re);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user