From c8f7d0ee1ce4a01f38ff0d2311fba81aab51dcd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mattias=20Walstr=C3=B6m?= Date: Wed, 3 Jan 2024 16:07:44 +0100 Subject: [PATCH] Check if OSPF is enabled not only if the node exist --- 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 f2286712..aca0a195 100644 --- a/src/confd/src/ietf-routing.c +++ b/src/confd/src/ietf-routing.c @@ -30,7 +30,7 @@ int parse_ospf_interfaces(sr_session_ctx_t *session, struct lyd_node *areas, FIL const char *area_id = lydx_get_cattr(area, "area-id"); LY_LIST_FOR(lyd_child(interfaces), interface) { const char *hello, *dead, *retransmit, *transmit; - if (lydx_get_cattr(interface, "enabled")) { + if (lydx_get_bool(interface, "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");