diff options
Diffstat (limited to 'staticd/static_nht.c')
| -rw-r--r-- | staticd/static_nht.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/staticd/static_nht.c b/staticd/static_nht.c index aea175b19b..f9f937f905 100644 --- a/staticd/static_nht.c +++ b/staticd/static_nht.c @@ -70,8 +70,12 @@ void static_nht_update(struct prefix *p, uint32_t nh_num, if (orig != si->nh_valid) reinstall = true; + + if (reinstall) { + static_zebra_route_add(rn, si, vrf_id, + SAFI_UNICAST, true); + reinstall = false; + } } - if (reinstall) - static_zebra_route_add(rn, vrf_id, SAFI_UNICAST, true); } } |
