diff options
author | Philippe Guibert <philippe.guibert@6wind.com> | 2020-03-05 15:50:37 +0100 |
---|---|---|
committer | Philippe Guibert <philippe.guibert@6wind.com> | 2020-03-05 16:04:53 +0100 |
commit | d0bfe25dead1d3dfdc18951f1b6d0023be9ac76c (patch) | |
tree | 4719f6f4fdac67d422a1fc23d6d8c04cdb9bc0d5 /nhrpd/nhrp_route.c | |
parent | Merge pull request #5855 from ton31337/fix/allow_using_add_sub_for_local-pref... (diff) | |
download | frr-d0bfe25dead1d3dfdc18951f1b6d0023be9ac76c.tar.xz frr-d0bfe25dead1d3dfdc18951f1b6d0023be9ac76c.zip |
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 <philippe.guibert@6wind.com>
Diffstat (limited to 'nhrpd/nhrp_route.c')
-rw-r--r-- | nhrpd/nhrp_route.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nhrpd/nhrp_route.c b/nhrpd/nhrp_route.c index a23ac3474..ddb69a1ac 100644 --- a/nhrpd/nhrp_route.c +++ b/nhrpd/nhrp_route.c @@ -199,6 +199,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]; |