mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-22 01:13:00 +02:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user