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>
This commit is contained in:
Donald Sharp 2019-04-04 12:19:50 -04:00
parent 59d11e7cd1
commit 6d2a4f3732

View File

@ -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);