mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-05 11:48:50 +00:00
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>
This commit is contained in:
parent
25e10819e3
commit
cdd9dee9b8
@ -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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user