OSPF: Fix bug when BFD is not enabled on all OSPF interfaces

Enable bfdd if bfd is enabled on any OSPF interface.
This commit is contained in:
Mattias Walström
2024-01-09 11:06:41 +01:00
committed by Joachim Wiberg
parent 54e97dbbd5
commit 21ce43031c
+1 -1
View File
@@ -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");