mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-04-28 11:50:21 +00:00
pimd: When doing json output do not output non-json strings
When entering some show commands that use json in pimd when the interface cannot be found do not output non-json format in that case. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
parent
131153ea22
commit
06504bea79
@ -2747,7 +2747,7 @@ void pim_show_interfaces_single(struct pim_instance *pim, struct vty *vty,
|
||||
}
|
||||
}
|
||||
|
||||
if (!found_ifname)
|
||||
if (!found_ifname && !json)
|
||||
vty_out(vty, "%% No such interface\n");
|
||||
}
|
||||
|
||||
@ -3200,7 +3200,7 @@ void pim_show_neighbors_single(struct pim_instance *pim, struct vty *vty,
|
||||
}
|
||||
}
|
||||
|
||||
if (!found_neighbor)
|
||||
if (!found_neighbor && !json)
|
||||
vty_out(vty, "%% No such interface or neighbor\n");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user