]> git.proxmox.com Git - mirror_frr.git/blobdiff - pimd/pim_cmd_common.c
pimd: When doing json output do not output non-json strings
[mirror_frr.git] / pimd / pim_cmd_common.c
index 75df09ec354ecee4b9155f681ac2462385dffd12..5b905a9536f9eca38000a65282ef54bafa49d0e2 100644 (file)
@@ -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");
 }