]> git.puffer.fish Git - mirror/frr.git/commitdiff
nhrpd: ignore zebra updates about our routes being deleted/added 6832/head
authorPhilippe Guibert <philippe.guibert@6wind.com>
Thu, 5 Mar 2020 14:50:37 +0000 (14:50 +0000)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Fri, 31 Jul 2020 11:50:57 +0000 (13:50 +0200)
nhrp listens for route entries to be deleted, in case some new routes
impact the current routes installed by nhrp. To prevent from
unconfiguring nhrp shortcut route, just prevent nhrp routes to be
processed.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
nhrpd/nhrp_route.c

index e4270f09a5df93618f1344cf18a837e4085b4b40..0c5513b89297c4a63a02fd0655985f65361878a9 100644 (file)
@@ -198,6 +198,10 @@ int nhrp_route_read(ZAPI_CALLBACK_ARGS)
        if (CHECK_FLAG(api.message, ZAPI_MESSAGE_SRCPFX))
                return 0;
 
+       /* ignore our routes */
+       if (api.type == ZEBRA_ROUTE_NHRP)
+               return 0;
+
        sockunion_family(&nexthop_addr) = AF_UNSPEC;
        if (CHECK_FLAG(api.message, ZAPI_MESSAGE_NEXTHOP)) {
                api_nh = &api.nexthops[0];