]> git.proxmox.com Git - mirror_frr.git/commitdiff
pim6d: Implement show ipv6 pim interface traffic
authorMobashshera Rasool <mrasool@vmware.com>
Thu, 26 May 2022 09:50:32 +0000 (02:50 -0700)
committerMobashshera Rasool <mrasool@vmware.com>
Mon, 13 Jun 2022 04:31:09 +0000 (21:31 -0700)
This CLI shows the number of PIM protocol packets
sent/received on each interface.

Signed-off-by: Mobashshera Rasool <mrasool@vmware.com>
pimd/pim6_cmd.c

index fea83f37b63f7e906cad6522d91cd662aaf28d21..4f0758cf6a4fc1afe9938ab5fbcc1b2782b7d3e2 100644 (file)
@@ -1228,6 +1228,22 @@ DEFPY (show_ipv6_mroute_summary_vrf_all,
        return pim_show_mroute_summary_vrf_all_helper(vty, !!json);
 }
 
+DEFPY (show_ipv6_pim_interface_traffic,
+       show_ipv6_pim_interface_traffic_cmd,
+       "show ipv6 pim [vrf NAME] interface traffic [WORD$if_name] [json$json]",
+       SHOW_STR
+       IPV6_STR
+       PIM_STR
+       VRF_CMD_HELP_STR
+       "PIM interface information\n"
+       "Protocol Packet counters\n"
+       "Interface name\n"
+       JSON_STR)
+{
+       return pim_show_interface_traffic_helper(vrf, if_name, vty, !!json);
+}
+
+
 DEFPY (clear_ipv6_pim_statistics,
        clear_ipv6_pim_statistics_cmd,
        "clear ipv6 pim statistics [vrf NAME]$name",
@@ -1559,6 +1575,7 @@ void pim_cmd_init(void)
        install_element(VIEW_NODE, &show_ipv6_mroute_count_vrf_all_cmd);
        install_element(VIEW_NODE, &show_ipv6_mroute_summary_cmd);
        install_element(VIEW_NODE, &show_ipv6_mroute_summary_vrf_all_cmd);
+       install_element(VIEW_NODE, &show_ipv6_pim_interface_traffic_cmd);
 
        install_element(ENABLE_NODE, &clear_ipv6_pim_statistics_cmd);
        install_element(ENABLE_NODE, &clear_ipv6_mroute_cmd);