From 21ce43031ceb90dcc5d163bb128ccdf52d46c994 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mattias=20Walstr=C3=B6m?= Date: Tue, 9 Jan 2024 08:09:30 +0100 Subject: [PATCH] OSPF: Fix bug when BFD is not enabled on all OSPF interfaces Enable bfdd if bfd is enabled on any OSPF interface. --- src/confd/src/ietf-routing.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/confd/src/ietf-routing.c b/src/confd/src/ietf-routing.c index a6052b08..3b1d37d9 100644 --- a/src/confd/src/ietf-routing.c +++ b/src/confd/src/ietf-routing.c @@ -36,7 +36,7 @@ int parse_ospf_interfaces(sr_session_ctx_t *session, struct lyd_node *areas, FIL if (lydx_get_bool(interface, "enabled")) { struct lyd_node *bfd; bfd = lydx_get_child(interface, "bfd"); - bfd_enabled = lydx_get_bool(bfd, "enabled"); + bfd_enabled += lydx_get_bool(bfd, "enabled"); fprintf(fp, "interface %s\n", lydx_get_cattr(interface, "name")); hello = lydx_get_cattr(interface, "hello-interval"); dead = lydx_get_cattr(interface, "dead-interval");