diff --git a/zebra/zebra_nhg.c b/zebra/zebra_nhg.c index 6a43fe0c84ba..0a79ed5590cd 100644 --- a/zebra/zebra_nhg.c +++ b/zebra/zebra_nhg.c @@ -3145,8 +3145,8 @@ int nexthop_active_update(struct route_node *rn, struct route_entry *re, remove = new_nhe; - if (old_re && old_re->type == re->type && - old_re->instance == re->instance) + if (old_re && old_re->type == re->type && old_re->instance == re->instance && + new_nhe != old_re->nhe) new_nhe = zebra_nhg_rib_compare_old_nhe(rn, re, new_nhe, old_re->nhe);