]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: cleanup references to debug bgp allow-martians 15774/head
authorLouis Scalbert <louis.scalbert@6wind.com>
Wed, 17 Apr 2024 07:51:07 +0000 (09:51 +0200)
committerLouis Scalbert <louis.scalbert@6wind.com>
Wed, 17 Apr 2024 07:55:54 +0000 (09:55 +0200)
The debug command was removed in 17e9298e47 ("bgpd: Remove 'debug bgp
allow-martian'")

Cleanup all references to the debug command.

Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
bgpd/bgp_debug.c
bgpd/bgp_debug.h

index c1b06a0ae3332079b7182892aabb0a10aeb7b266..b4651ad0ba8af48fc848c34464ab96a15d5d912e 100644 (file)
@@ -50,7 +50,6 @@ unsigned long conf_bgp_debug_keepalive;
 unsigned long conf_bgp_debug_update;
 unsigned long conf_bgp_debug_bestpath;
 unsigned long conf_bgp_debug_zebra;
-unsigned long conf_bgp_debug_allow_martians;
 unsigned long conf_bgp_debug_nht;
 unsigned long conf_bgp_debug_update_groups;
 unsigned long conf_bgp_debug_vpn;
@@ -71,7 +70,6 @@ unsigned long term_bgp_debug_keepalive;
 unsigned long term_bgp_debug_update;
 unsigned long term_bgp_debug_bestpath;
 unsigned long term_bgp_debug_zebra;
-unsigned long term_bgp_debug_allow_martians;
 unsigned long term_bgp_debug_nht;
 unsigned long term_bgp_debug_update_groups;
 unsigned long term_bgp_debug_vpn;
@@ -2165,7 +2163,6 @@ DEFUN (no_debug_bgp,
        TERM_DEBUG_OFF(as4, AS4_SEGMENT);
        TERM_DEBUG_OFF(neighbor_events, NEIGHBOR_EVENTS);
        TERM_DEBUG_OFF(zebra, ZEBRA);
-       TERM_DEBUG_OFF(allow_martians, ALLOW_MARTIANS);
        TERM_DEBUG_OFF(nht, NHT);
        TERM_DEBUG_OFF(vpn, VPN_LEAK_FROM_VRF);
        TERM_DEBUG_OFF(vpn, VPN_LEAK_TO_VRF);
@@ -2241,9 +2238,6 @@ DEFUN_NOSH (show_debugging_bgp,
        if (BGP_DEBUG(graceful_restart, GRACEFUL_RESTART))
                vty_out(vty, "  BGP graceful-restart debugging is on\n");
 
-       if (BGP_DEBUG(allow_martians, ALLOW_MARTIANS))
-               vty_out(vty, "  BGP allow martian next hop debugging is on\n");
-
        if (BGP_DEBUG(vpn, VPN_LEAK_FROM_VRF))
                vty_out(vty,
                        "  BGP route leak from vrf to vpn debugging is on\n");
@@ -2356,11 +2350,6 @@ static int bgp_config_write_debug(struct vty *vty)
                }
        }
 
-       if (CONF_BGP_DEBUG(allow_martians, ALLOW_MARTIANS)) {
-               vty_out(vty, "debug bgp allow-martians\n");
-               write++;
-       }
-
        if (CONF_BGP_DEBUG(vpn, VPN_LEAK_FROM_VRF)) {
                vty_out(vty, "debug bgp vpn leak-from-vrf\n");
                write++;
index 5b095018526510374e24c9531be20dd73a387d7e..ffe715a42f9464dcb5f10051906a79677d16a4a5 100644 (file)
@@ -61,7 +61,6 @@ extern unsigned long conf_bgp_debug_keepalive;
 extern unsigned long conf_bgp_debug_update;
 extern unsigned long conf_bgp_debug_bestpath;
 extern unsigned long conf_bgp_debug_zebra;
-extern unsigned long conf_bgp_debug_allow_martians;
 extern unsigned long conf_bgp_debug_nht;
 extern unsigned long conf_bgp_debug_update_groups;
 extern unsigned long conf_bgp_debug_vpn;
@@ -80,7 +79,6 @@ extern unsigned long term_bgp_debug_keepalive;
 extern unsigned long term_bgp_debug_update;
 extern unsigned long term_bgp_debug_bestpath;
 extern unsigned long term_bgp_debug_zebra;
-extern unsigned long term_bgp_debug_allow_martians;
 extern unsigned long term_bgp_debug_nht;
 extern unsigned long term_bgp_debug_update_groups;
 extern unsigned long term_bgp_debug_vpn;
@@ -120,7 +118,6 @@ struct bgp_debug_filter {
 #define BGP_DEBUG_UPDATE_PREFIX       0x04
 #define BGP_DEBUG_UPDATE_DETAIL       0x08
 #define BGP_DEBUG_ZEBRA               0x01
-#define BGP_DEBUG_ALLOW_MARTIANS      0x01
 #define BGP_DEBUG_NHT                 0x01
 #define BGP_DEBUG_UPDATE_GROUPS       0x01
 #define BGP_DEBUG_VPN_LEAK_FROM_VRF   0x01