diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-04-04 12:19:50 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-04-04 12:19:50 -0400 |
| commit | 6d2a4f3732181489c5fdec9ba3553cfa98e37fe4 (patch) | |
| tree | fa71b095e18d8b33a26a5a30765e8e4bfc57800e | |
| parent | 59d11e7cd197e5902b632d0f8ca6e523ed50489a (diff) | |
staticd: Allow reinstall of static nexthops on vrf restart
When staticd receives notification that a vrf that it is using
is back up into a state that can be used, go through and
mark all the si data structures nexthops as not installed.
This will allow us to complete the loop and reinstall routes
that need to be fully resolved.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
| -rw-r--r-- | staticd/static_routes.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/staticd/static_routes.c b/staticd/static_routes.c index a5f0f74b00..cde31df14f 100644 --- a/staticd/static_routes.c +++ b/staticd/static_routes.c @@ -329,6 +329,7 @@ static void static_fixup_vrf(struct static_vrf *svrf, continue; si->nh_vrf_id = svrf->vrf->vrf_id; + si->nh_registered = false; if (si->ifindex) { ifp = if_lookup_by_name(si->ifname, si->nh_vrf_id); |
