diff options
| author | Sai Gomathi N <nsaigomathi@vmware.com> | 2022-03-24 01:41:15 -0700 |
|---|---|---|
| committer | Sai Gomathi N <nsaigomathi@vmware.com> | 2022-05-17 21:43:13 -0700 |
| commit | bf385e265377df24932d72bae2ef448b6f48e175 (patch) | |
| tree | 8e6fbbf485d36ca8585ea82b9a61c6338c5c1dc5 /pimd/pim_cmd.c | |
| parent | 44937c5450320eb119f9a4ea0c9bd32600d8e007 (diff) | |
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.c')
| -rw-r--r-- | pimd/pim_cmd.c | 38 |
1 files changed, 6 insertions, 32 deletions
diff --git a/pimd/pim_cmd.c b/pimd/pim_cmd.c index 34d646ec67..43463ce74d 100644 --- a/pimd/pim_cmd.c +++ b/pimd/pim_cmd.c @@ -5522,41 +5522,17 @@ DEFUN (no_debug_pim_static, } -DEFUN (debug_pim, +DEFPY (debug_pim, debug_pim_cmd, - "debug pim", - DEBUG_STR - DEBUG_PIM_STR) -{ - 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; -} - -DEFUN (no_debug_pim, - no_debug_pim_cmd, - "no debug pim", + "[no] debug pim", NO_STR DEBUG_STR DEBUG_PIM_STR) { - 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; - PIM_DONT_DEBUG_BSM; - PIM_DONT_DEBUG_VXLAN; - - return CMD_SUCCESS; + if (!no) + return pim_debug_pim_cmd(); + else + return pim_no_debug_pim_cmd(); } DEFUN (debug_pim_nht, @@ -7872,7 +7848,6 @@ void pim_cmd_init(void) install_element(ENABLE_NODE, &debug_pim_static_cmd); install_element(ENABLE_NODE, &no_debug_pim_static_cmd); install_element(ENABLE_NODE, &debug_pim_cmd); - install_element(ENABLE_NODE, &no_debug_pim_cmd); install_element(ENABLE_NODE, &debug_pim_nht_cmd); install_element(ENABLE_NODE, &no_debug_pim_nht_cmd); install_element(ENABLE_NODE, &debug_pim_nht_det_cmd); @@ -7927,7 +7902,6 @@ void pim_cmd_init(void) install_element(CONFIG_NODE, &debug_pim_static_cmd); install_element(CONFIG_NODE, &no_debug_pim_static_cmd); install_element(CONFIG_NODE, &debug_pim_cmd); - install_element(CONFIG_NODE, &no_debug_pim_cmd); install_element(CONFIG_NODE, &debug_pim_nht_cmd); install_element(CONFIG_NODE, &no_debug_pim_nht_cmd); install_element(CONFIG_NODE, &debug_pim_nht_det_cmd); |
