summaryrefslogtreecommitdiffstats
path: root/pimd/pim6_cmd.c
diff options
context:
space:
mode:
authorSarita Patra <saritap@vmware.com>2022-07-12 15:43:10 +0200
committerSarita Patra <saritap@vmware.com>2022-10-20 10:07:48 +0200
commit2792bff1450610185f314f3f7d2b6781de34fe6f (patch)
treed78702c423f7c6ab647d93bbecafaf97a2b192f4 /pimd/pim6_cmd.c
parentpimd: Move "show ip pim bsm-database" cmd to DEFPY (diff)
downloadfrr-2792bff1450610185f314f3f7d2b6781de34fe6f.tar.xz
frr-2792bff1450610185f314f3f7d2b6781de34fe6f.zip
pim6d: Add "show ipv6 show ip pim bsm-database [vrf NAME] [json]" cli
Signed-off-by: Sarita Patra <saritap@vmware.com>
Diffstat (limited to '')
-rw-r--r--pimd/pim6_cmd.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/pimd/pim6_cmd.c b/pimd/pim6_cmd.c
index fb61c9618..0b6515a57 100644
--- a/pimd/pim6_cmd.c
+++ b/pimd/pim6_cmd.c
@@ -1294,6 +1294,19 @@ DEFPY (show_ipv6_pim_bsr,
return pim_show_bsr_helper(vrf, vty, !!json);
}
+DEFPY (show_ipv6_pim_bsm_db,
+ show_ipv6_pim_bsm_db_cmd,
+ "show ipv6 pim bsm-database [vrf NAME] [json$json]",
+ SHOW_STR
+ IPV6_STR
+ PIM_STR
+ "PIM cached bsm packets information\n"
+ VRF_CMD_HELP_STR
+ JSON_STR)
+{
+ return pim_show_bsm_db_helper(vrf, vty, !!json);
+}
+
DEFPY (clear_ipv6_pim_statistics,
clear_ipv6_pim_statistics_cmd,
"clear ipv6 pim statistics [vrf NAME]$name",
@@ -1816,6 +1829,7 @@ void pim_cmd_init(void)
install_element(VIEW_NODE, &show_ipv6_mroute_summary_vrf_all_cmd);
install_element(VIEW_NODE, &show_ipv6_pim_interface_traffic_cmd);
install_element(VIEW_NODE, &show_ipv6_pim_bsr_cmd);
+ install_element(VIEW_NODE, &show_ipv6_pim_bsm_db_cmd);
install_element(ENABLE_NODE, &clear_ipv6_pim_statistics_cmd);
install_element(ENABLE_NODE, &clear_ipv6_mroute_cmd);
install_element(ENABLE_NODE, &clear_ipv6_pim_oil_cmd);