summaryrefslogtreecommitdiffstats
path: root/ospfd/ospf_bfd.c
diff options
context:
space:
mode:
authorDaniel Walton <dwalton@cumulusnetworks.com>2016-11-29 18:47:11 +0100
committerDavid Lamparter <equinox@opensourcerouting.org>2016-11-29 19:05:51 +0100
commit487f230202efbf74572cf2d16045de90ab28c780 (patch)
tree47d7ef512c3c74ee2472236ba335cf7c09da9d68 /ospfd/ospf_bfd.c
parentbuild: improve COMMUNITY.md formatting (diff)
downloadfrr-487f230202efbf74572cf2d16045de90ab28c780.tar.xz
frr-487f230202efbf74572cf2d16045de90ab28c780.zip
ospfd: "ip ospf bfd" removes the "ip ospf bfd 3 250 250" command
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com> Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com> Ticket: CM-13712 (cherry picked from commit 367b138748e894bbfaae36d1cf7c90eafebfebc9) Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'ospfd/ospf_bfd.c')
-rw-r--r--ospfd/ospf_bfd.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/ospfd/ospf_bfd.c b/ospfd/ospf_bfd.c
index c87bcb0af..9ad850851 100644
--- a/ospfd/ospf_bfd.c
+++ b/ospfd/ospf_bfd.c
@@ -369,10 +369,16 @@ DEFUN (ip_ospf_bfd,
"Enables BFD support\n")
{
struct interface *ifp = (struct interface *) vty->index;
+ struct ospf_if_params *params;
+ struct bfd_info *bfd_info;
assert (ifp);
- ospf_bfd_if_param_set (ifp, BFD_DEF_MIN_RX, BFD_DEF_MIN_TX,
- BFD_DEF_DETECT_MULT, 1);
+ params = IF_DEF_PARAMS (ifp);
+ bfd_info = params->bfd_info;
+
+ if (!bfd_info || ! CHECK_FLAG(bfd_info->flags, BFD_FLAG_PARAM_CFG))
+ ospf_bfd_if_param_set (ifp, BFD_DEF_MIN_RX, BFD_DEF_MIN_TX,
+ BFD_DEF_DETECT_MULT, 1);
return CMD_SUCCESS;
}