From db89e514c71c5b9d8989753e993d64a46ae37974 Mon Sep 17 00:00:00 2001 From: Philippe Guibert Date: Thu, 19 Mar 2020 12:09:06 +0100 Subject: [PATCH] nhrpd: fix clear nhrp cache dynamic entries as the helper said, the dynamic cache entries should be flushed once the vty command 'clear ip/ipv6 nhrp cache' mentions. This was not the case. Signed-off-by: Philippe Guibert --- nhrpd/nhrp_vty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nhrpd/nhrp_vty.c b/nhrpd/nhrp_vty.c index f6d18fb77f..3bae3c1761 100644 --- a/nhrpd/nhrp_vty.c +++ b/nhrpd/nhrp_vty.c @@ -763,7 +763,7 @@ DEFUN(show_dmvpn, show_dmvpn_cmd, static void clear_nhrp_cache(struct nhrp_cache *c, void *data) { struct info_ctx *ctx = data; - if (c->cur.type <= NHRP_CACHE_CACHED) { + if (c->cur.type <= NHRP_CACHE_DYNAMIC) { nhrp_cache_update_binding(c, c->cur.type, -1, NULL, 0, NULL); ctx->count++; } -- 2.39.5