Merge pull request #16373 from anlancs/zebra/fix-nexthop-synchronization

staticd: fix missing static routes
This commit is contained in:
Jafar Al-Gharaibeh 2024-07-15 14:44:48 -04:00 committed by GitHub
commit 74e720c99f
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 */
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);