Merge pull request #16388 from FRRouting/mergify/bp/stable/10.0/pr-16373

staticd: fix missing static routes (backport #16373)
This commit is contained in:
Jafar Al-Gharaibeh 2024-07-16 09:56:22 -04:00 committed by GitHub
commit 0037fb4987
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -341,7 +341,8 @@ void static_zebra_nht_register(struct static_nexthop *nh, bool reg)
/* refresh with existing data */ /* refresh with existing data */
afi_t afi = prefix_afi(&lookup.nh); 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; nh->state = STATIC_START;
static_nht_update(&rn->p, &nhtd->nh, nhtd->nh_num, afi, static_nht_update(&rn->p, &nhtd->nh, nhtd->nh_num, afi,
si->safi, nh->nh_vrf_id); si->safi, nh->nh_vrf_id);