diff options
| author | Sai Gomathi N <nsaigomathi@vmware.com> | 2022-03-27 23:44:08 -0700 |
|---|---|---|
| committer | Sai Gomathi N <nsaigomathi@vmware.com> | 2022-05-18 03:31:33 -0700 |
| commit | fa5138d676c1902371c6b037efd2bdc2949d41b9 (patch) | |
| tree | 2dfb1779223890f5ed63508a49f2577b22fe5cd6 /pimd/pim_cmd.c | |
| parent | 904dbf531023952715bf861844b458907b1d547f (diff) | |
pim6d: Add 'debug pimv6 zebra'
Implementing debug pimv6 zebra command for debugging about
the events from zebra that come up through the ZAPI.
Signed-off-by: Sai Gomathi N <nsaigomathi@vmware.com>
Diffstat (limited to 'pimd/pim_cmd.c')
| -rw-r--r-- | pimd/pim_cmd.c | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/pimd/pim_cmd.c b/pimd/pim_cmd.c index 778dd92ed0..2d6ce24381 100644 --- a/pimd/pim_cmd.c +++ b/pimd/pim_cmd.c @@ -5707,26 +5707,18 @@ DEFUN (no_debug_ssmpingd, return CMD_SUCCESS; } -DEFUN (debug_pim_zebra, +DEFPY (debug_pim_zebra, debug_pim_zebra_cmd, - "debug pim zebra", - DEBUG_STR - DEBUG_PIM_STR - DEBUG_PIM_ZEBRA_STR) -{ - PIM_DO_DEBUG_ZEBRA; - return CMD_SUCCESS; -} - -DEFUN (no_debug_pim_zebra, - no_debug_pim_zebra_cmd, - "no debug pim zebra", + "[no] debug pim zebra", NO_STR DEBUG_STR DEBUG_PIM_STR DEBUG_PIM_ZEBRA_STR) { - PIM_DONT_DEBUG_ZEBRA; + if (!no) + PIM_DO_DEBUG_ZEBRA; + else + PIM_DONT_DEBUG_ZEBRA; return CMD_SUCCESS; } @@ -7763,7 +7755,6 @@ void pim_cmd_init(void) install_element(ENABLE_NODE, &debug_ssmpingd_cmd); install_element(ENABLE_NODE, &no_debug_ssmpingd_cmd); install_element(ENABLE_NODE, &debug_pim_zebra_cmd); - install_element(ENABLE_NODE, &no_debug_pim_zebra_cmd); install_element(ENABLE_NODE, &debug_pim_mlag_cmd); install_element(ENABLE_NODE, &no_debug_pim_mlag_cmd); install_element(ENABLE_NODE, &debug_pim_vxlan_cmd); @@ -7809,7 +7800,6 @@ void pim_cmd_init(void) install_element(CONFIG_NODE, &debug_ssmpingd_cmd); install_element(CONFIG_NODE, &no_debug_ssmpingd_cmd); install_element(CONFIG_NODE, &debug_pim_zebra_cmd); - install_element(CONFIG_NODE, &no_debug_pim_zebra_cmd); install_element(CONFIG_NODE, &debug_pim_mlag_cmd); install_element(CONFIG_NODE, &no_debug_pim_mlag_cmd); install_element(CONFIG_NODE, &debug_pim_vxlan_cmd); |
