From b1830a36d46987967f46038812e59d2d9e744fdf Mon Sep 17 00:00:00 2001 From: Tobias Waldekranz Date: Mon, 10 Feb 2025 12:51:55 +0100 Subject: [PATCH] confd: Remove unneeded nodes from the interface DAG The only interfaces that would be in difs, but not in cifs, are deleted interfaces. But these will be removed from the exit action of the previous generation, and will never be referenced in the new generation. --- src/confd/src/ietf-interfaces.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/confd/src/ietf-interfaces.c b/src/confd/src/ietf-interfaces.c index 5e02d1ad..0ecae206 100644 --- a/src/confd/src/ietf-interfaces.c +++ b/src/confd/src/ietf-interfaces.c @@ -646,10 +646,6 @@ static sr_error_t netdag_init(sr_session_ctx_t *session, struct dagger *net, if (dagger_add_node(net, lydx_get_cattr(iface, "name"))) return SR_ERR_INTERNAL; - LYX_LIST_FOR_EACH(difs, iface, "interface") - if (dagger_add_node(net, lydx_get_cattr(iface, "name"))) - return SR_ERR_INTERNAL; - net->session = session; return SR_ERR_OK; }