diff options
| author | Abhishek N R <abnr@vmware.com> | 2022-07-18 06:08:19 -0700 | 
|---|---|---|
| committer | Abhishek N R <abnr@vmware.com> | 2022-08-01 22:08:40 -0700 | 
| commit | 8656814dacea84d5dd89b3c3ad867cafe56dde64 (patch) | |
| tree | 68fa0971482d99cd1c33ffa79c0a9f6a7a1bad8c /pimd/pim_cmd.c | |
| parent | ad9b47e65eda5a0fd33e3fc874457bf1fb1ccd7e (diff) | |
pim6d: Implementing "clear ipv6 pim interface traffic" command.
Signed-off-by: Abhishek N R <abnr@vmware.com>
Diffstat (limited to 'pimd/pim_cmd.c')
| -rw-r--r-- | pimd/pim_cmd.c | 43 | 
1 files changed, 5 insertions, 38 deletions
diff --git a/pimd/pim_cmd.c b/pimd/pim_cmd.c index 9681493808..a3188128fa 100644 --- a/pimd/pim_cmd.c +++ b/pimd/pim_cmd.c @@ -1678,50 +1678,17 @@ DEFPY (clear_ip_pim_interfaces,  	return CMD_SUCCESS;  } -DEFUN (clear_ip_pim_interface_traffic, +DEFPY (clear_ip_pim_interface_traffic,         clear_ip_pim_interface_traffic_cmd,         "clear ip pim [vrf NAME] interface traffic", -       "Reset functions\n" -       "IP information\n" -       "PIM clear commands\n" +       CLEAR_STR +       IP_STR +       CLEAR_IP_PIM_STR         VRF_CMD_HELP_STR         "Reset PIM interfaces\n"         "Reset Protocol Packet counters\n")  { -	int idx = 2; -	struct vrf *vrf = pim_cmd_lookup_vrf(vty, argv, argc, &idx); -	struct interface *ifp = NULL; -	struct pim_interface *pim_ifp = NULL; - -	if (!vrf) -		return CMD_WARNING; - -	FOR_ALL_INTERFACES (vrf, ifp) { -		pim_ifp = ifp->info; - -		if (!pim_ifp) -			continue; - -		pim_ifp->pim_ifstat_hello_recv = 0; -		pim_ifp->pim_ifstat_hello_sent = 0; -		pim_ifp->pim_ifstat_join_recv = 0; -		pim_ifp->pim_ifstat_join_send = 0; -		pim_ifp->pim_ifstat_prune_recv = 0; -		pim_ifp->pim_ifstat_prune_send = 0; -		pim_ifp->pim_ifstat_reg_recv = 0; -		pim_ifp->pim_ifstat_reg_send = 0; -		pim_ifp->pim_ifstat_reg_stop_recv = 0; -		pim_ifp->pim_ifstat_reg_stop_send = 0; -		pim_ifp->pim_ifstat_assert_recv = 0; -		pim_ifp->pim_ifstat_assert_send = 0; -		pim_ifp->pim_ifstat_bsm_rx = 0; -		pim_ifp->pim_ifstat_bsm_tx = 0; -		pim_ifp->igmp_ifstat_joins_sent = 0; -		pim_ifp->igmp_ifstat_joins_failed = 0; -		pim_ifp->igmp_peak_group_count = 0; -	} - -	return CMD_SUCCESS; +	return clear_pim_interface_traffic(vrf, vty);  }  DEFPY (clear_ip_pim_oil,  | 
