diff options
| author | Sai Gomathi N <nsaigomathi@vmware.com> | 2022-06-01 21:54:44 -0700 |
|---|---|---|
| committer | Sai Gomathi N <nsaigomathi@vmware.com> | 2022-06-08 23:25:51 -0700 |
| commit | b6bf33775de493676cad5ae27c5545550d8a99c8 (patch) | |
| tree | dfa72dcf7c0551e7e2ceed89f013805d5bfc31dd /pimd/pim_cmd.c | |
| parent | f5b2f86ac0ccaecaed248e8cc80569c3c274e70b (diff) | |
pim6d: Moving the common lines of pim_show_channel cli
Moving the common lines of pim_show_channel cli
in pim_cmd.c and pim6_cmd.c to pim_cmd_common.c file
Signed-off-by: Sai Gomathi N <nsaigomathi@vmware.com>
Diffstat (limited to 'pimd/pim_cmd.c')
| -rw-r--r-- | pimd/pim_cmd.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/pimd/pim_cmd.c b/pimd/pim_cmd.c index 2d6ce24381..3cdf53709d 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, |
