Skip to content

Commit

Permalink
pimd: show ip pim bsr json output - removing vtysh caption
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
sarav511 committed Mar 16, 2020
1 parent 7f2ccbe commit 36afe48
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pimd/pim_cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down Expand Up @@ -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");
Expand Down

0 comments on commit 36afe48

Please sign in to comment.