summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2020-03-20 18:22:51 -0400
committerGitHub <noreply@github.com>2020-03-20 18:22:51 -0400
commitfc07143bf8fe50e7b15483e91e9066ec0df78389 (patch)
treee63e65dd236f31fd20ed7baae8e9ca1173adcc1d
parentc133ddca171985ff301ba84f1793a5e77ae9befc (diff)
parentdb89e514c71c5b9d8989753e993d64a46ae37974 (diff)
Merge pull request #6043 from pguibert6WIND/nhrp_clear_cache
nhrpd: fix clear nhrp cache dynamic entries
-rw-r--r--nhrpd/nhrp_vty.c2
1 files changed, 1 insertions, 1 deletions
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++;
}