diff options
| author | Sai Gomathi N <nsaigomathi@vmware.com> | 2022-04-13 07:41:46 -0700 |
|---|---|---|
| committer | Sai Gomathi N <nsaigomathi@vmware.com> | 2022-05-17 00:05:19 -0700 |
| commit | 09a754ead1fed57665ff802d6a8e3ccdcdd337cb (patch) | |
| tree | cd84371f1bc80191552cbe0f2a18e7a8a4e47852 /pimd/pim6_cmd.c | |
| parent | a14ae314124684188e8a6b5ec65cef79295da41f (diff) | |
pim6d: Add 'clear ipv6 pim [vrf NAME] oil' command
Adding clear ipv6 pim [vrf NAME] oil CLI for resetting
PIMv6 output interface list.
Signed-off-by: Sai Gomathi N <nsaigomathi@vmware.com>
Diffstat (limited to 'pimd/pim6_cmd.c')
| -rw-r--r-- | pimd/pim6_cmd.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/pimd/pim6_cmd.c b/pimd/pim6_cmd.c index e88a832cc3..0a913f812d 100644 --- a/pimd/pim6_cmd.c +++ b/pimd/pim6_cmd.c @@ -42,6 +42,7 @@ #include "pim_nht.h" #include "pim_bsm.h" #include "pim_iface.h" +#include "pim_zebra.h" #ifndef VTYSH_EXTRACT_PL #include "pimd/pim6_cmd_clippy.c" @@ -1972,6 +1973,25 @@ DEFPY (clear_ipv6_mroute, return CMD_SUCCESS; } +DEFPY (clear_ipv6_pim_oil, + clear_ipv6_pim_oil_cmd, + "clear ipv6 pim [vrf NAME]$name oil", + CLEAR_STR + IPV6_STR + CLEAR_IP_PIM_STR + VRF_CMD_HELP_STR + "Rescan PIMv6 OIL (output interface list)\n") +{ + struct vrf *v = pim_cmd_lookup(vty, name); + + if (!v) + return CMD_WARNING; + + pim_scan_oil(v->info); + + return CMD_SUCCESS; +} + void pim_cmd_init(void) { if_cmd_init(pim_interface_config_write); @@ -2081,4 +2101,5 @@ void pim_cmd_init(void) install_element(ENABLE_NODE, &clear_ipv6_pim_statistics_cmd); install_element(ENABLE_NODE, &clear_ipv6_mroute_cmd); + install_element(ENABLE_NODE, &clear_ipv6_pim_oil_cmd); } |
