summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsaravanank <saravanank@vmware.com>2020-03-16 02:58:53 +0100
committersaravanank <saravanank@vmware.com>2020-03-16 02:58:53 +0100
commit36afe48622f8ae651c0673cf641880ee1f4ba5f1 (patch)
tree67fae6224a7a8fe31a584183928557b2c7772ddf
parentMerge pull request #6003 from ton31337/fix/skip_kitchen_files (diff)
downloadfrr-36afe48622f8ae651c0673cf641880ee1f4ba5f1.tar.xz
frr-36afe48622f8ae651c0673cf641880ee1f4ba5f1.zip
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 <saravanank@vmware.com>
-rw-r--r--pimd/pim_cmd.c3
1 files changed, 1 insertions, 2 deletions
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");