diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-06-30 10:43:21 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-07-24 13:51:41 -0400 |
| commit | 40f1f31be686ec84e15773e36b71d84d2b284cec (patch) | |
| tree | 55448e35a24623176fefbd6907ba5bb22497df9b /pimd/pim_cmd.c | |
| parent | 862756ff85840a0fdaefb69b1a1cd7a534a04402 (diff) | |
pimd: Add `debug pim nht` command
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_cmd.c')
| -rw-r--r-- | pimd/pim_cmd.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/pimd/pim_cmd.c b/pimd/pim_cmd.c index ef96ea8597..c7c1934bed 100644 --- a/pimd/pim_cmd.c +++ b/pimd/pim_cmd.c @@ -6396,6 +6396,28 @@ DEFUN (no_debug_pim, return CMD_SUCCESS; } +DEFUN (debug_pim_nht, + debug_pim_nht_cmd, + "debug pim nht", + DEBUG_STR + DEBUG_PIM_STR + "Nexthop Tracking\n") +{ + PIM_DO_DEBUG_PIM_NHT; + return CMD_SUCCESS; +} + +DEFUN (no_debug_pim_nht, + no_debug_pim_nht_cmd, + "no debug pim nht", + NO_STR + DEBUG_STR + DEBUG_PIM_STR + "Nexthop Tracking\n") +{ + PIM_DONT_DEBUG_PIM_NHT; + return CMD_SUCCESS; +} DEFUN (debug_pim_events, debug_pim_events_cmd, @@ -7865,6 +7887,8 @@ void pim_cmd_init(void) install_element(ENABLE_NODE, &no_debug_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_events_cmd); install_element(ENABLE_NODE, &no_debug_pim_events_cmd); install_element(ENABLE_NODE, &debug_pim_packets_cmd); @@ -7907,6 +7931,8 @@ void pim_cmd_init(void) install_element(CONFIG_NODE, &no_debug_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_events_cmd); install_element(CONFIG_NODE, &no_debug_pim_events_cmd); install_element(CONFIG_NODE, &debug_pim_packets_cmd); |
