]> git.puffer.fish Git - mirror/frr.git/commitdiff
isisd: don't add deprecated bfd command
authorChristian Franke <chris@opensourcerouting.org>
Tue, 9 Oct 2018 15:59:46 +0000 (17:59 +0200)
committerChristian Franke <chris@opensourcerouting.org>
Tue, 9 Oct 2018 15:59:46 +0000 (17:59 +0200)
isisd/isis_bfd.c
isisd/isis_vty_common.c

index 59d88e9e3f4ccf4ae9cc9f40e5609160b23dab1c..c9d2ea8e21c92c91859d56c67f69a58701819b39 100644 (file)
@@ -330,14 +330,7 @@ static int bfd_circuit_write_settings(struct isis_circuit *circuit,
        if (!bfd_info)
                return 0;
 
-#if HAVE_BFDD == 0
-       if (CHECK_FLAG(bfd_info->flags, BFD_FLAG_PARAM_CFG)) {
-               vty_out(vty, " %s bfd %" PRIu8 " %" PRIu32 " %" PRIu32 "\n",
-                       PROTO_NAME, bfd_info->detect_mult,
-                       bfd_info->required_min_rx, bfd_info->desired_min_tx);
-       } else
-#endif
-               vty_out(vty, " %s bfd\n", PROTO_NAME);
+       vty_out(vty, " %s bfd\n", PROTO_NAME);
        return 1;
 }
 
index fd2ed4a2defaf6abf34670343068caf5a1a349dc..40e257553dbe18467aef9506c96b7dccaed928e5 100644 (file)
@@ -521,53 +521,12 @@ DEFUN (isis_bfd,
        return CMD_SUCCESS;
 }
 
-#if HAVE_BFDD > 0
-DEFUN_HIDDEN (
-#else
-DEFUN (
-#endif
-       isis_bfd_param,
-       isis_bfd_param_cmd,
-       PROTO_NAME " bfd (2-255) (50-60000) (50-60000)",
-       PROTO_HELP
-       "Enable BFD support\n"
-       "Detect Multiplier\n"
-       "Required min receive interval\n"
-       "Desired min transmit interval\n")
-{
-       struct isis_circuit *circuit = isis_circuit_lookup(vty);
-       if (!circuit)
-               return CMD_ERR_NO_MATCH;
-
-       uint32_t rx_val;
-       uint32_t tx_val;
-       uint8_t dm_val;
-       int ret;
-
-       if ((ret = bfd_validate_param(vty, argv[2]->arg, argv[3]->arg,
-                                     argv[4]->arg, &dm_val, &rx_val,
-                                     &tx_val)) != CMD_SUCCESS)
-               return ret;
-
-       isis_bfd_circuit_param_set(circuit, rx_val, tx_val, dm_val, false);
-       return CMD_SUCCESS;
-}
-
 DEFUN (no_isis_bfd,
        no_isis_bfd_cmd,
-#if HAVE_BFDD > 0
        "no " PROTO_NAME " bfd",
-#else
-       "no " PROTO_NAME " bfd [(2-255) (50-60000) (50-60000)]",
-#endif
        NO_STR
        PROTO_HELP
        "Disables BFD support\n"
-#if HAVE_BFDD == 0
-       "Detect Multiplier\n"
-       "Required min receive interval\n"
-       "Desired min transmit interval\n"
-#endif
 )
 {
        struct isis_circuit *circuit = isis_circuit_lookup(vty);
@@ -1015,7 +974,6 @@ void isis_vty_init(void)
        install_element(INTERFACE_NODE, &no_circuit_topology_cmd);
 
        install_element(INTERFACE_NODE, &isis_bfd_cmd);
-       install_element(INTERFACE_NODE, &isis_bfd_param_cmd);
        install_element(INTERFACE_NODE, &no_isis_bfd_cmd);
 
        install_element(ROUTER_NODE, &set_overload_bit_cmd);