diff options
author | Abhishek N R <abnr@vmware.com> | 2022-07-19 08:44:47 +0200 |
---|---|---|
committer | Abhishek N R <abnr@vmware.com> | 2022-07-19 14:48:52 +0200 |
commit | 23db4cbd3d6131c8235f6c92058e9b317d62c02c (patch) | |
tree | abc668a8562e41b26ef8da464be8c259d2243e8b /pimd/pim6_cmd.c | |
parent | Merge pull request #11632 from opensourcerouting/fix/address_family_bgp_str (diff) | |
download | frr-23db4cbd3d6131c8235f6c92058e9b317d62c02c.tar.xz frr-23db4cbd3d6131c8235f6c92058e9b317d62c02c.zip |
pim6d: Implementing "clear ipv6 pim interfaces" command.
Signed-off-by: Abhishek N R <abnr@vmware.com>
Diffstat (limited to 'pimd/pim6_cmd.c')
-rw-r--r-- | pimd/pim6_cmd.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/pimd/pim6_cmd.c b/pimd/pim6_cmd.c index b7a832681..d72a67243 100644 --- a/pimd/pim6_cmd.c +++ b/pimd/pim6_cmd.c @@ -1309,6 +1309,25 @@ DEFPY (clear_ipv6_mroute_count, return clear_ip_mroute_count_command(vty, name); } +DEFPY (clear_ipv6_pim_interfaces, + clear_ipv6_pim_interfaces_cmd, + "clear ipv6 pim [vrf NAME] interfaces", + CLEAR_STR + IPV6_STR + CLEAR_IP_PIM_STR + VRF_CMD_HELP_STR + "Reset PIM interfaces\n") +{ + struct vrf *v = pim_cmd_lookup(vty, vrf); + + if (!v) + return CMD_WARNING; + + clear_pim_interfaces(v->info); + + return CMD_SUCCESS; +} + DEFPY (clear_ipv6_pim_bsr_db, clear_ipv6_pim_bsr_db_cmd, "clear ipv6 pim [vrf NAME] bsr-data", @@ -1599,6 +1618,7 @@ void pim_cmd_init(void) install_element(ENABLE_NODE, &clear_ipv6_pim_oil_cmd); install_element(ENABLE_NODE, &clear_ipv6_mroute_count_cmd); install_element(ENABLE_NODE, &clear_ipv6_pim_bsr_db_cmd); + install_element(ENABLE_NODE, &clear_ipv6_pim_interfaces_cmd); install_element(ENABLE_NODE, &debug_pimv6_cmd); install_element(ENABLE_NODE, &debug_pimv6_nht_cmd); |