summaryrefslogtreecommitdiffstats
path: root/pimd/pim_cmd.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetwroks.com>2016-08-23 22:22:14 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2016-12-22 02:26:07 +0100
commit00d07c6fda1ef744eb2e7481beeb85aa31bf61d6 (patch)
treefd1260d98f5cc3a062498adc39c6bb03806dcdc6 /pimd/pim_cmd.c
parentpimd: Fix bad state no FHR after quagga restart (diff)
downloadfrr-00d07c6fda1ef744eb2e7481beeb85aa31bf61d6.tar.xz
frr-00d07c6fda1ef744eb2e7481beeb85aa31bf61d6.zip
pimd: Add "show ip pim rp-info" command
List the RP information we have configured. Fix bug where we were not properly initializing some code Ticket: CM-12617 Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_cmd.c')
-rw-r--r--pimd/pim_cmd.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/pimd/pim_cmd.c b/pimd/pim_cmd.c
index bd3a85abb..bbc1de344 100644
--- a/pimd/pim_cmd.c
+++ b/pimd/pim_cmd.c
@@ -2004,6 +2004,19 @@ DEFUN (show_ip_pim_upstream_rpf,
return CMD_SUCCESS;
}
+DEFUN (show_ip_pim_rp,
+ show_ip_pim_rp_cmd,
+ "show ip pim rp-info ",
+ SHOW_STR
+ IP_STR
+ PIM_STR
+ "PIM RP information\n")
+{
+ pim_rp_show_information (vty);
+
+ return CMD_SUCCESS;
+}
+
DEFUN (show_ip_pim_rpf,
show_ip_pim_rpf_cmd,
"show ip pim rpf",
@@ -4863,6 +4876,7 @@ void pim_cmd_init()
install_element (VIEW_NODE, &show_ip_pim_upstream_cmd);
install_element (VIEW_NODE, &show_ip_pim_upstream_join_desired_cmd);
install_element (VIEW_NODE, &show_ip_pim_upstream_rpf_cmd);
+ install_element (VIEW_NODE, &show_ip_pim_rp_cmd);
install_element (VIEW_NODE, &show_ip_multicast_cmd);
install_element (VIEW_NODE, &show_ip_mroute_cmd);
install_element (VIEW_NODE, &show_ip_mroute_count_cmd);