summaryrefslogtreecommitdiffstats
path: root/pimd/pim_cmd.c
diff options
context:
space:
mode:
authorAbhishek N R <abnr@vmware.com>2022-06-09 11:57:49 +0200
committerAbhishek N R <abnr@vmware.com>2022-06-09 11:57:49 +0200
commit622da92f356a5cda26d994ba260b107da5abd921 (patch)
treeef2934ff1b60ae4b097b76447c0f0dccbe38cbf6 /pimd/pim_cmd.c
parentpim6d: Moving reusable code to common api for "show pim upstream" command (diff)
downloadfrr-622da92f356a5cda26d994ba260b107da5abd921.tar.xz
frr-622da92f356a5cda26d994ba260b107da5abd921.zip
pim6d: Moving reusable code to common api for "show pim upstream join desired" command
Signed-off-by: Abhishek N R <abnr@vmware.com>
Diffstat (limited to 'pimd/pim_cmd.c')
-rw-r--r--pimd/pim_cmd.c20
1 files changed, 1 insertions, 19 deletions
diff --git a/pimd/pim_cmd.c b/pimd/pim_cmd.c
index ac16fd1b7..54e1aae4d 100644
--- a/pimd/pim_cmd.c
+++ b/pimd/pim_cmd.c
@@ -3118,25 +3118,7 @@ DEFPY (show_ip_pim_upstream_join_desired,
"PIM upstream join-desired\n"
JSON_STR)
{
- struct pim_instance *pim;
- struct vrf *v;
- bool uj = !!json;
-
- v = vrf_lookup_by_name(vrf ? vrf : VRF_DEFAULT_NAME);
-
- if (!v)
- return CMD_WARNING;
-
- pim = pim_get_pim_instance(v->vrf_id);
-
- if (!pim) {
- vty_out(vty, "%% Unable to find pim instance\n");
- return CMD_WARNING;
- }
-
- pim_show_join_desired(pim, vty, uj);
-
- return CMD_SUCCESS;
+ return pim_show_upstream_join_desired_helper(vrf, vty, !!json);
}
DEFPY (show_ip_pim_upstream_rpf,