summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLouis Scalbert <louis.scalbert@6wind.com>2024-08-30 14:35:58 +0200
committerLouis Scalbert <louis.scalbert@6wind.com>2024-08-30 14:59:22 +0200
commitcdd9dee9b880249058b36400576441c49f513cd9 (patch)
treee8c4766c8c66fa6ceb31f67491122000bb0d5e7d
parenttests: fix iptables command in nhrp_redundancy (diff)
downloadfrr-cdd9dee9b880249058b36400576441c49f513cd9.tar.xz
frr-cdd9dee9b880249058b36400576441c49f513cd9.zip
nhrpd: fix show nhrp shortcut json
Fix show nhrp shortcut json Fixes: 87b9e98203 ("nhrpd: add json support to show nhrp vty commands") Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
-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 22b6bdcec..96ba4728b 100644
--- a/nhrpd/nhrp_vty.c
+++ b/nhrpd/nhrp_vty.c
@@ -882,7 +882,7 @@ static void show_ip_nhrp_shortcut(struct nhrp_shortcut *s, void *pctx)
char buf1[PREFIX_STRLEN], buf2[SU_ADDRSTRLEN];
struct json_object *json = NULL;
- if (!ctx->count) {
+ if (!ctx->count && !ctx->json) {
vty_out(vty, "%-8s %-24s %-24s %s\n", "Type", "Prefix", "Via",
"Identity");
}