]> git.puffer.fish Git - matthieu/frr.git/commitdiff
bgpd: Remove 'debug bgp allow-martian'
authorDonald Sharp <sharpd@nvidia.com>
Mon, 25 Apr 2022 20:48:42 +0000 (16:48 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Fri, 24 Jun 2022 11:45:46 +0000 (07:45 -0400)
This command should not be in the code and is being
removed as per tech meeting decision.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
bgpd/bgp_debug.c

index 8976b3b674eb00960d4e4fbaf1235920fba3a8f5..5bdced9c33994d3fba66f4ccccdcd27e09645e57 100644 (file)
@@ -1809,40 +1809,6 @@ DEFUN (no_debug_bgp_zebra_prefix,
        return CMD_SUCCESS;
 }
 
-DEFUN (debug_bgp_allow_martians,
-       debug_bgp_allow_martians_cmd,
-       "debug bgp allow-martians",
-       DEBUG_STR
-       BGP_STR
-       "BGP allow martian next hops\n")
-{
-       if (vty->node == CONFIG_NODE)
-               DEBUG_ON(allow_martians, ALLOW_MARTIANS);
-       else {
-               TERM_DEBUG_ON(allow_martians, ALLOW_MARTIANS);
-               vty_out(vty, "BGP allow_martian next hop debugging is on\n");
-       }
-       return CMD_SUCCESS;
-}
-
-DEFUN (no_debug_bgp_allow_martians,
-       no_debug_bgp_allow_martians_cmd,
-       "no debug bgp allow-martians",
-       NO_STR
-       DEBUG_STR
-       BGP_STR
-       "BGP allow martian next hops\n")
-{
-       if (vty->node == CONFIG_NODE)
-               DEBUG_OFF(allow_martians, ALLOW_MARTIANS);
-       else {
-               TERM_DEBUG_OFF(allow_martians, ALLOW_MARTIANS);
-               vty_out(vty, "BGP allow martian next hop debugging is off\n");
-       }
-       return CMD_SUCCESS;
-}
-
-
 /* debug bgp update-groups */
 DEFUN (debug_bgp_update_groups,
        debug_bgp_update_groups_cmd,
@@ -2438,8 +2404,6 @@ void bgp_debug_init(void)
        install_element(CONFIG_NODE, &debug_bgp_update_cmd);
        install_element(ENABLE_NODE, &debug_bgp_zebra_cmd);
        install_element(CONFIG_NODE, &debug_bgp_zebra_cmd);
-       install_element(ENABLE_NODE, &debug_bgp_allow_martians_cmd);
-       install_element(CONFIG_NODE, &debug_bgp_allow_martians_cmd);
        install_element(ENABLE_NODE, &debug_bgp_update_groups_cmd);
        install_element(CONFIG_NODE, &debug_bgp_update_groups_cmd);
        install_element(ENABLE_NODE, &debug_bgp_bestpath_prefix_cmd);
@@ -2503,8 +2467,6 @@ void bgp_debug_init(void)
        install_element(CONFIG_NODE, &no_debug_bgp_update_cmd);
        install_element(ENABLE_NODE, &no_debug_bgp_zebra_cmd);
        install_element(CONFIG_NODE, &no_debug_bgp_zebra_cmd);
-       install_element(ENABLE_NODE, &no_debug_bgp_allow_martians_cmd);
-       install_element(CONFIG_NODE, &no_debug_bgp_allow_martians_cmd);
        install_element(ENABLE_NODE, &no_debug_bgp_update_groups_cmd);
        install_element(CONFIG_NODE, &no_debug_bgp_update_groups_cmd);
        install_element(ENABLE_NODE, &no_debug_bgp_cmd);