diff options
| author | Sai Gomathi N <nsaigomathi@vmware.com> | 2022-06-09 03:23:28 -0700 | 
|---|---|---|
| committer | Sai Gomathi N <nsaigomathi@vmware.com> | 2022-06-09 03:23:28 -0700 | 
| commit | cefa37cf41709bc23a1be296b6ed63097ea47350 (patch) | |
| tree | 908546d941f71f1aaeae812eef90b7cce7ef0536 /pimd/pim6_cmd.c | |
| parent | 78b0e6907301bf93500a9341035541770f90b896 (diff) | |
pim6d: Moving the common lines of pim_show_nexthop cli
Moving the common lines of pim_show_nexthop 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/pim6_cmd.c')
| -rw-r--r-- | pimd/pim6_cmd.c | 11 | 
1 files changed, 1 insertions, 10 deletions
diff --git a/pimd/pim6_cmd.c b/pimd/pim6_cmd.c index a46e7fa178..55d77f6e96 100644 --- a/pimd/pim6_cmd.c +++ b/pimd/pim6_cmd.c @@ -1418,16 +1418,7 @@ DEFPY (show_ipv6_pim_nexthop,         VRF_CMD_HELP_STR         "PIM cached nexthop rpf information\n")  { -	struct vrf *v; - -	v = vrf_lookup_by_name(vrf ? vrf : VRF_DEFAULT_NAME); - -	if (!v) -		return CMD_WARNING; - -	pim_show_nexthop(v->info, vty); - -	return CMD_SUCCESS; +	return pim_show_nexthop_cmd_helper(vrf, vty);  }  DEFPY (show_ipv6_pim_nexthop_lookup,  | 
