diff options
author | saravanank <saravanank@vmware.com> | 2020-03-16 02:58:53 +0100 |
---|---|---|
committer | saravanank <saravanank@vmware.com> | 2020-03-16 02:58:53 +0100 |
commit | 36afe48622f8ae651c0673cf641880ee1f4ba5f1 (patch) | |
tree | 67fae6224a7a8fe31a584183928557b2c7772ddf /pimd/pim_cmd.c | |
parent | Merge pull request #6003 from ton31337/fix/skip_kitchen_files (diff) | |
download | frr-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>
Diffstat (limited to 'pimd/pim_cmd.c')
-rw-r--r-- | pimd/pim_cmd.c | 3 |
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"); |