From: Daniel Walton Date: Fri, 11 Mar 2016 16:33:58 +0000 (+0000) Subject: BGP: remove deprecated debugs from the parser X-Git-Tag: frr-2.0-rc1~1063 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=e99789d89d018d59ffd1029a2f32dd49c129859c;p=mirror%2Ffrr.git BGP: remove deprecated debugs from the parser Signed-off-by: Daniel Walton Reviewed-by: Donald Sharp Ticket: CM-9838 --- diff --git a/bgpd/bgp_debug.c b/bgpd/bgp_debug.c index c86df535aa..a3d420f691 100644 --- a/bgpd/bgp_debug.c +++ b/bgpd/bgp_debug.c @@ -1720,67 +1720,6 @@ bgp_config_write_debug (struct vty *vty) return write; } -/* - * Backwards Compatibility commands: - * 'debug bgp fsm' - * 'debug bgp events' - * 'debug bgp' - * 'debug bgp filters' - * When the bgp debug overhaul was put into place - * there was no backwards compatibilty allowed. Thus - * if people upgrade to the new version of quagga - * but still have old debug commands saved in their - * cli files, it will cause quagga to be unhappy - * So what we do here is accept the input but do nothing - * to make it happy again. - */ -DEFUN (debug_bgp_normal, - debug_bgp_normal_cmd, - "debug bgp", - DEBUG_STR - BGP_STR) -{ - vty_out (vty, "%% This command will be deprecated in our next release, please use 'debug bgp neighbor-events'%s", - VTY_NEWLINE); - return CMD_SUCCESS; -} - -DEFUN (debug_bgp_fsm, - debug_bgp_fsm_cmd, - "debug bgp fsm", - DEBUG_STR - BGP_STR - "deprecated BGP fsm command do not use") -{ - vty_out (vty, "%% This command will be deprecated in our next release, please use 'debug bgp neighbor-events'%s", - VTY_NEWLINE); - return CMD_SUCCESS; -} - -DEFUN (debug_bgp_events, - debug_bgp_events_cmd, - "debug bgp events", - DEBUG_STR - BGP_STR - "deprecated BGP events command do not use") -{ - vty_out (vty, "%% This command will be deprecated in our next release, please use 'debug bgp neighbor-events'%s", - VTY_NEWLINE); - return CMD_SUCCESS; -} - -DEFUN (debug_bgp_filter, - debug_bgp_filter_cmd, - "debug bgp filters", - DEBUG_STR - BGP_STR - "deprecated BGP filters command do not use") -{ - vty_out (vty, "%% This command will be deprecated in our next release, please use 'debug bgp updates'%s", - VTY_NEWLINE); - return CMD_SUCCESS; -} - static struct cmd_node debug_node = { DEBUG_NODE, @@ -1800,15 +1739,6 @@ bgp_debug_init (void) install_element (ENABLE_NODE, &debug_bgp_as4_segment_cmd); install_element (CONFIG_NODE, &debug_bgp_as4_segment_cmd); - install_element (ENABLE_NODE, &debug_bgp_normal_cmd); - install_element (CONFIG_NODE, &debug_bgp_normal_cmd); - install_element (ENABLE_NODE, &debug_bgp_fsm_cmd); - install_element (CONFIG_NODE, &debug_bgp_fsm_cmd); - install_element (ENABLE_NODE, &debug_bgp_events_cmd); - install_element (CONFIG_NODE, &debug_bgp_events_cmd); - install_element (ENABLE_NODE, &debug_bgp_filter_cmd); - install_element (CONFIG_NODE, &debug_bgp_filter_cmd); - install_element (ENABLE_NODE, &debug_bgp_neighbor_events_cmd); install_element (CONFIG_NODE, &debug_bgp_neighbor_events_cmd); install_element (ENABLE_NODE, &debug_bgp_nht_cmd);