diff options
| author | Jafar Al-Gharaibeh <jafar@atcorp.com> | 2024-07-15 14:44:48 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-15 14:44:48 -0400 |
| commit | 74e720c99f80a79ab5dde8b04a1559319149a74b (patch) | |
| tree | b23d360ab45a02d178559cace5ee11baba95d24c /staticd/static_zebra.c | |
| parent | 659741f3fa682d0d32ab24a178794be4ef2e0220 (diff) | |
| parent | 4518d386f7683289b079708fcdb0c42ced4754d9 (diff) | |
Merge pull request #16373 from anlancs/zebra/fix-nexthop-synchronization
staticd: fix missing static routes
Diffstat (limited to 'staticd/static_zebra.c')
| -rw-r--r-- | staticd/static_zebra.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/staticd/static_zebra.c b/staticd/static_zebra.c index c4efc14a9d..420ed7903b 100644 --- a/staticd/static_zebra.c +++ b/staticd/static_zebra.c @@ -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); |
