diff options
author | Sai Gomathi N <nsaigomathi@vmware.com> | 2022-03-24 09:41:15 +0100 |
---|---|---|
committer | Sai Gomathi N <nsaigomathi@vmware.com> | 2022-05-18 06:43:13 +0200 |
commit | bf385e265377df24932d72bae2ef448b6f48e175 (patch) | |
tree | 8e6fbbf485d36ca8585ea82b9a61c6338c5c1dc5 /pimd/pim_cmd_common.c | |
parent | Merge pull request #11037 from SaiGomathiN/clearcli (diff) | |
download | frr-bf385e265377df24932d72bae2ef448b6f48e175.tar.xz frr-bf385e265377df24932d72bae2ef448b6f48e175.zip |
pim6d: Add 'debug pimv6'
Implementing debug pimv6 command for PIMv6 protocol activity.
Signed-off-by: Sai Gomathi N <nsaigomathi@vmware.com>
Diffstat (limited to 'pimd/pim_cmd_common.c')
-rw-r--r-- | pimd/pim_cmd_common.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/pimd/pim_cmd_common.c b/pimd/pim_cmd_common.c index b6cb3113e..eda9f100b 100644 --- a/pimd/pim_cmd_common.c +++ b/pimd/pim_cmd_common.c @@ -3673,3 +3673,28 @@ void clear_pim_statistics(struct pim_instance *pim) pim_ifp->pim_ifstat_bsm_invalid_sz = 0; } } + +int pim_debug_pim_cmd(void) +{ + PIM_DO_DEBUG_PIM_EVENTS; + PIM_DO_DEBUG_PIM_PACKETS; + PIM_DO_DEBUG_PIM_TRACE; + PIM_DO_DEBUG_MSDP_EVENTS; + PIM_DO_DEBUG_MSDP_PACKETS; + PIM_DO_DEBUG_BSM; + PIM_DO_DEBUG_VXLAN; + return CMD_SUCCESS; +} + +int pim_no_debug_pim_cmd(void) +{ + PIM_DONT_DEBUG_PIM_EVENTS; + PIM_DONT_DEBUG_PIM_PACKETS; + PIM_DONT_DEBUG_PIM_TRACE; + PIM_DONT_DEBUG_MSDP_EVENTS; + PIM_DONT_DEBUG_MSDP_PACKETS; + + PIM_DONT_DEBUG_PIM_PACKETDUMP_SEND; + PIM_DONT_DEBUG_PIM_PACKETDUMP_RECV; + return CMD_SUCCESS; +} |