mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-31 21:13:00 +02:00
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:
committed by
Joachim Wiberg
parent
54e97dbbd5
commit
21ce43031c
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user