diff options
author | Abhishek N R <abnr@vmware.com> | 2022-06-09 10:33:01 +0200 |
---|---|---|
committer | Abhishek N R <abnr@vmware.com> | 2022-06-09 10:33:01 +0200 |
commit | 5e52c8d5c84e35cc5bbddeb79929ba38324b0204 (patch) | |
tree | 0e64d012cbcc79c5ab4b84966d85296f2b9a1b0f /pimd/pim_cmd.c | |
parent | pim6d: Moving resuable code to common api for "show pim rp-info" command (diff) | |
download | frr-5e52c8d5c84e35cc5bbddeb79929ba38324b0204.tar.xz frr-5e52c8d5c84e35cc5bbddeb79929ba38324b0204.zip |
pim6d: Moving reusable code to common api for "show pim secondary" command
Signed-off-by: Abhishek N R <abnr@vmware.com>
Diffstat (limited to 'pimd/pim_cmd.c')
-rw-r--r-- | pimd/pim_cmd.c | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/pimd/pim_cmd.c b/pimd/pim_cmd.c index b67bc2352..f8d0cf7ea 100644 --- a/pimd/pim_cmd.c +++ b/pimd/pim_cmd.c @@ -2980,24 +2980,7 @@ DEFPY (show_ip_pim_secondary, VRF_CMD_HELP_STR "PIM neighbor addresses\n") { - struct pim_instance *pim; - struct vrf *v; - - 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_neighbors_secondary(pim, vty); - - return CMD_SUCCESS; + return pim_show_secondary_helper(vrf, vty); } DEFPY (show_ip_pim_state, |