From 6d2a4f3732181489c5fdec9ba3553cfa98e37fe4 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Thu, 4 Apr 2019 12:19:50 -0400 Subject: [PATCH] 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 --- staticd/static_routes.c | 1 + 1 file changed, 1 insertion(+) 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); -- 2.39.5