From 36afe48622f8ae651c0673cf641880ee1f4ba5f1 Mon Sep 17 00:00:00 2001 From: saravanank Date: Sun, 15 Mar 2020 18:58:53 -0700 Subject: pimd: show ip pim bsr json output - removing vtysh caption Root cause: The header display is put in common outside the vtysh/json if-else. Fix: Brought inside vtysh condition. Signed-off-by: Saravanan K --- pimd/pim_cmd.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'pimd/pim_cmd.c') diff --git a/pimd/pim_cmd.c b/pimd/pim_cmd.c index abc154896..7dd9b916f 100644 --- a/pimd/pim_cmd.c +++ b/pimd/pim_cmd.c @@ -3732,8 +3732,6 @@ static void pim_show_bsr(struct pim_instance *pim, char bsr_str[PREFIX_STRLEN]; json_object *json = NULL; - vty_out(vty, "PIMv2 Bootstrap information\n"); - if (pim->global_scope.current_bsr.s_addr == INADDR_ANY) { strlcpy(bsr_str, "0.0.0.0", sizeof(bsr_str)); pim_time_uptime(uptime, sizeof(uptime), @@ -3779,6 +3777,7 @@ static void pim_show_bsr(struct pim_instance *pim, } else { + vty_out(vty, "PIMv2 Bootstrap information\n"); vty_out(vty, "Current preferred BSR address: %s\n", bsr_str); vty_out(vty, "Priority Fragment-Tag State UpTime\n"); -- cgit v1.2.3