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.
This commit is contained in:
Tobias Waldekranz
2025-02-11 14:46:31 +01:00
parent 05510c5001
commit b1830a36d4
-4
View File
@@ -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;
}