diff options
Diffstat (limited to 'bgpd/bgp_debug.c')
| -rw-r--r-- | bgpd/bgp_debug.c | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/bgpd/bgp_debug.c b/bgpd/bgp_debug.c index 9e540b63cb..f01c3e4f35 100644 --- a/bgpd/bgp_debug.c +++ b/bgpd/bgp_debug.c @@ -73,7 +73,6 @@ unsigned long conf_bgp_debug_graceful_restart; unsigned long conf_bgp_debug_evpn_mh; unsigned long conf_bgp_debug_bfd; unsigned long conf_bgp_debug_cond_adv; -unsigned long conf_bgp_debug_optimal_route_reflection; unsigned long term_bgp_debug_as4; unsigned long term_bgp_debug_neighbor_events; @@ -95,7 +94,6 @@ unsigned long term_bgp_debug_graceful_restart; unsigned long term_bgp_debug_evpn_mh; unsigned long term_bgp_debug_bfd; unsigned long term_bgp_debug_cond_adv; -unsigned long term_bgp_debug_optimal_route_reflection; struct list *bgp_debug_neighbor_events_peers = NULL; struct list *bgp_debug_keepalive_peers = NULL; @@ -144,7 +142,6 @@ static const struct message bgp_notify_open_msg[] = { {BGP_NOTIFY_OPEN_BAD_PEER_AS, "/Bad Peer AS"}, {BGP_NOTIFY_OPEN_BAD_BGP_IDENT, "/Bad BGP Identifier"}, {BGP_NOTIFY_OPEN_UNSUP_PARAM, "/Unsupported Optional Parameter"}, - {BGP_NOTIFY_OPEN_AUTH_FAILURE, "/Authentication Failure"}, {BGP_NOTIFY_OPEN_UNACEP_HOLDTIME, "/Unacceptable Hold Time"}, {BGP_NOTIFY_OPEN_UNSUP_CAPBL, "/Unsupported Capability"}, {BGP_NOTIFY_OPEN_ROLE_MISMATCH, "/Role Mismatch"}, @@ -158,7 +155,6 @@ static const struct message bgp_notify_update_msg[] = { {BGP_NOTIFY_UPDATE_ATTR_FLAG_ERR, "/Attribute Flags Error"}, {BGP_NOTIFY_UPDATE_ATTR_LENG_ERR, "/Attribute Length Error"}, {BGP_NOTIFY_UPDATE_INVAL_ORIGIN, "/Invalid ORIGIN Attribute"}, - {BGP_NOTIFY_UPDATE_AS_ROUTE_LOOP, "/AS Routing Loop"}, {BGP_NOTIFY_UPDATE_INVAL_NEXT_HOP, "/Invalid NEXT_HOP Attribute"}, {BGP_NOTIFY_UPDATE_OPT_ATTR_ERR, "/Optional Attribute Error"}, {BGP_NOTIFY_UPDATE_INVAL_NETWORK, "/Invalid Network Field"}, @@ -1989,33 +1985,6 @@ DEFPY (debug_bgp_evpn_mh, return CMD_SUCCESS; } -DEFPY (debug_bgp_optimal_route_reflection, - debug_bgp_optimal_route_reflection_cmd, - "[no$no] debug bgp optimal-route-reflection", - NO_STR - DEBUG_STR - BGP_STR - BGP_ORR_DEBUG) -{ - if (vty->node == CONFIG_NODE) { - if (no) - DEBUG_OFF(optimal_route_reflection, ORR); - else - DEBUG_ON(optimal_route_reflection, ORR); - } else { - if (no) { - TERM_DEBUG_OFF(optimal_route_reflection, ORR); - vty_out(vty, - "BGP Optimal Route Reflection debugging is off\n"); - } else { - TERM_DEBUG_ON(optimal_route_reflection, ORR); - vty_out(vty, - "BGP Optimal Route Reflection debugging is on\n"); - } - } - return CMD_SUCCESS; -} - DEFUN (debug_bgp_labelpool, debug_bgp_labelpool_cmd, "debug bgp labelpool", @@ -2154,7 +2123,6 @@ DEFUN (no_debug_bgp, TERM_DEBUG_OFF(evpn_mh, EVPN_MH_RT); TERM_DEBUG_OFF(bfd, BFD_LIB); TERM_DEBUG_OFF(cond_adv, COND_ADV); - TERM_DEBUG_OFF(optimal_route_reflection, ORR); vty_out(vty, "All possible debugging has been turned off\n"); @@ -2251,10 +2219,6 @@ DEFUN_NOSH (show_debugging_bgp, vty_out(vty, " BGP conditional advertisement debugging is on\n"); - if (BGP_DEBUG(optimal_route_reflection, ORR)) - vty_out(vty, - " BGP Optimal Route Reflection debugging is on\n"); - cmd_show_lib_debugs(vty); return CMD_SUCCESS; @@ -2391,11 +2355,6 @@ static int bgp_config_write_debug(struct vty *vty) write++; } - if (CONF_BGP_DEBUG(optimal_route_reflection, ORR)) { - vty_out(vty, "debug bgp optimal-route-reflection\n"); - write++; - } - return write; } @@ -2528,10 +2487,6 @@ void bgp_debug_init(void) /* debug bgp conditional advertisement */ install_element(ENABLE_NODE, &debug_bgp_cond_adv_cmd); install_element(CONFIG_NODE, &debug_bgp_cond_adv_cmd); - - /* debug bgp optimal route reflection */ - install_element(ENABLE_NODE, &debug_bgp_optimal_route_reflection_cmd); - install_element(CONFIG_NODE, &debug_bgp_optimal_route_reflection_cmd); } /* Return true if this prefix is on the per_prefix_list of prefixes to debug |
