Skip to content

Commit

Permalink
Merge pull request FRRouting#16389 from FRRouting/mergify/bp/stable/9…
Browse files Browse the repository at this point in the history
….1/pr-16373

staticd: fix missing static routes (backport FRRouting#16373)
  • Loading branch information
mjstapp committed Jul 16, 2024
2 parents 6e117e7 + b8ecfc0 commit f412949
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion staticd/static_zebra.c
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,8 @@ void static_zebra_nht_register(struct static_nexthop *nh, bool reg)
/* refresh with existing data */
afi_t afi = prefix_afi(&lookup.nh);

if (nh->state == STATIC_NOT_INSTALLED)
if (nh->state == STATIC_NOT_INSTALLED ||
nh->state == STATIC_SENT_TO_ZEBRA)
nh->state = STATIC_START;
static_nht_update(&rn->p, &nhtd->nh, nhtd->nh_num, afi,
si->safi, nh->nh_vrf_id);
Expand Down

0 comments on commit f412949

Please sign in to comment.