diff options
author | Donatas Abraitis <donatas@opensourcerouting.org> | 2023-01-17 17:14:27 +0100 |
---|---|---|
committer | Donatas Abraitis <donatas@opensourcerouting.org> | 2023-01-17 17:15:28 +0100 |
commit | cfd01fc0ac9685522eb369c46f0810e9ddbb9303 (patch) | |
tree | 30d12528bda771441a211a6b312496a18cc47e71 /bgpd/bgp_debug.c | |
parent | Revert "ospfd: rSPF calc and messaging for optimal route reflection" (diff) | |
download | frr-cfd01fc0ac9685522eb369c46f0810e9ddbb9303.tar.xz frr-cfd01fc0ac9685522eb369c46f0810e9ddbb9303.zip |
Revert "bgpd: optimal router reflection cli and fsm changes"
This reverts commit 70cd87ca02125616e9f61f97ab504248c935bd83.
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Diffstat (limited to 'bgpd/bgp_debug.c')
-rw-r--r-- | bgpd/bgp_debug.c | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/bgpd/bgp_debug.c b/bgpd/bgp_debug.c index 48b9205a0..f01c3e4f3 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; @@ -1987,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", @@ -2152,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"); @@ -2249,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; @@ -2386,11 +2352,6 @@ static int bgp_config_write_debug(struct vty *vty) if (CONF_BGP_DEBUG(cond_adv, COND_ADV)) { vty_out(vty, "debug bgp conditional-advertisement\n"); - write++ - } - - if (CONF_BGP_DEBUG(optimal_route_reflection, ORR)) { - vty_out(vty, "debug bgp optimal-route-reflection\n"); write++; } @@ -2526,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 |