]> git.proxmox.com Git - mirror_frr.git/commitdiff
nhrpd: fix clear nhrp cache dynamic entries
authorPhilippe Guibert <philippe.guibert@6wind.com>
Thu, 19 Mar 2020 11:09:06 +0000 (12:09 +0100)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Thu, 19 Mar 2020 11:09:06 +0000 (12:09 +0100)
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 <philippe.guibert@6wind.com>
nhrpd/nhrp_vty.c

index f6d18fb77f8e0fdccb386683d8675e6415f6ce09..3bae3c176182149da7d331d51b46f06f8a82a9f3 100644 (file)
@@ -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++;
        }