summaryrefslogtreecommitdiffstats
path: root/pimd/pim_cmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'pimd/pim_cmd.c')
-rw-r--r--pimd/pim_cmd.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/pimd/pim_cmd.c b/pimd/pim_cmd.c
index 2d6ce2438..3cdf53709 100644
--- a/pimd/pim_cmd.c
+++ b/pimd/pim_cmd.c
@@ -3168,17 +3168,7 @@ DEFPY (show_ip_pim_channel,
"PIM downstream channel info\n"
JSON_STR)
{
- struct vrf *v;
- bool uj = !!json;
-
- v = vrf_lookup_by_name(vrf ? vrf : VRF_DEFAULT_NAME);
-
- if (!v)
- return CMD_WARNING;
-
- pim_show_channel(v->info, vty, uj);
-
- return CMD_SUCCESS;
+ return pim_show_channel_cmd_helper(vrf, vty, !!json);
}
DEFPY (show_ip_pim_upstream_join_desired,