From b598a1458c9ca056167acf79b3e0f76154badfdc Mon Sep 17 00:00:00 2001 From: Philippe Guibert Date: Thu, 5 Mar 2020 14:50:37 +0000 Subject: [PATCH] nhrpd: ignore zebra updates about our routes being deleted/added 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 --- nhrpd/nhrp_route.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nhrpd/nhrp_route.c b/nhrpd/nhrp_route.c index e4270f09a5..0c5513b892 100644 --- a/nhrpd/nhrp_route.c +++ b/nhrpd/nhrp_route.c @@ -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]; -- 2.39.5