summaryrefslogtreecommitdiff
path: root/ospfd/ospf_bfd.c
diff options
context:
space:
mode:
Diffstat (limited to 'ospfd/ospf_bfd.c')
-rw-r--r--ospfd/ospf_bfd.c26
1 files changed, 10 insertions, 16 deletions
diff --git a/ospfd/ospf_bfd.c b/ospfd/ospf_bfd.c
index 9ad8508510..b6c871b6e4 100644
--- a/ospfd/ospf_bfd.c
+++ b/ospfd/ospf_bfd.c
@@ -385,7 +385,7 @@ DEFUN (ip_ospf_bfd,
DEFUN (ip_ospf_bfd_param,
ip_ospf_bfd_param_cmd,
- "ip ospf bfd " BFD_CMD_DETECT_MULT_RANGE BFD_CMD_MIN_RX_RANGE BFD_CMD_MIN_TX_RANGE,
+ "ip ospf bfd (2-255) (50-60000) (50-60000)",
"IP Information\n"
"OSPF interface commands\n"
"Enables BFD support\n"
@@ -393,6 +393,9 @@ DEFUN (ip_ospf_bfd_param,
"Required min receive interval\n"
"Desired min transmit interval\n")
{
+ int idx_number = 3;
+ int idx_number_2 = 4;
+ int idx_number_3 = 5;
struct interface *ifp = (struct interface *) vty->index;
u_int32_t rx_val;
u_int32_t tx_val;
@@ -401,7 +404,7 @@ DEFUN (ip_ospf_bfd_param,
assert (ifp);
- if ((ret = bfd_validate_param (vty, argv[0], argv[1], argv[2], &dm_val,
+ if ((ret = bfd_validate_param (vty, argv[idx_number]->arg, argv[idx_number_2]->arg, argv[idx_number_3]->arg, &dm_val,
&rx_val, &tx_val)) != CMD_SUCCESS)
return ret;
@@ -412,11 +415,14 @@ DEFUN (ip_ospf_bfd_param,
DEFUN (no_ip_ospf_bfd,
no_ip_ospf_bfd_cmd,
- "no ip ospf bfd",
+ "no ip ospf bfd [(2-255) (50-60000) (50-60000)]",
NO_STR
"IP Information\n"
"OSPF interface commands\n"
- "Disables BFD support\n")
+ "Disables BFD support\n"
+ "Detect Multiplier\n"
+ "Required min receive interval\n"
+ "Desired min transmit interval\n")
{
struct interface *ifp = (struct interface *)vty->index;
struct ospf_if_params *params;
@@ -433,17 +439,6 @@ DEFUN (no_ip_ospf_bfd,
return CMD_SUCCESS;
}
-ALIAS (no_ip_ospf_bfd,
- no_ip_ospf_bfd_param_cmd,
- "no ip ospf bfd " BFD_CMD_DETECT_MULT_RANGE BFD_CMD_MIN_RX_RANGE BFD_CMD_MIN_TX_RANGE,
- NO_STR
- "IP Information\n"
- "OSPF interface commands\n"
- "Enables BFD support\n"
- "Detect Multiplier\n"
- "Required min receive interval\n"
- "Desired min transmit interval\n")
-
void
ospf_bfd_init(void)
{
@@ -457,5 +452,4 @@ ospf_bfd_init(void)
install_element (INTERFACE_NODE, &ip_ospf_bfd_cmd);
install_element (INTERFACE_NODE, &ip_ospf_bfd_param_cmd);
install_element (INTERFACE_NODE, &no_ip_ospf_bfd_cmd);
- install_element (INTERFACE_NODE, &no_ip_ospf_bfd_param_cmd);
}