]> git.proxmox.com Git - mirror_frr.git/commitdiff
Merge pull request #4083 from donaldsharp/static_reinstall_nexthops
authorJafar Al-Gharaibeh <Jafaral@users.noreply.github.com>
Fri, 5 Apr 2019 06:09:03 +0000 (01:09 -0500)
committerGitHub <noreply@github.com>
Fri, 5 Apr 2019 06:09:03 +0000 (01:09 -0500)
staticd: Allow reinstall of static nexthops on vrf restart

staticd/static_routes.c

index a5f0f74b003e667d21ae201ee068b29e3f8412c2..cde31df14fece75fe24d222d6f9e8ff28768829c 100644 (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);