Skip to content

diff BUGFIX climb data tree parents to cross schema-mount boundary#2542

Merged
michalvasko merged 1 commit into
CESNET:develfrom
Humblesaw:fix-me
Jul 14, 2026
Merged

diff BUGFIX climb data tree parents to cross schema-mount boundary#2542
michalvasko merged 1 commit into
CESNET:develfrom
Humblesaw:fix-me

Conversation

@Humblesaw

Copy link
Copy Markdown
Contributor

In lyd_diff_dup(), the parent-climbing loop used lysc_data_parent() to find the next parent, which returns NULL at a schema mount boundary. This caused the diff to miss the host module's parent containers around mounted module data.

Use the data tree parent (node_parent->parent) instead, which crosses the mount boundary correctly. Also stop climbing once the existing diff parent level is reached.

In lyd_diff_dup(), the parent-climbing loop used lysc_data_parent()
to find the next parent, which returns NULL at a schema mount
boundary. This caused the diff to miss the host module's parent
containers around mounted module data.

Use the data tree parent (node_parent->parent) instead, which
crosses the mount boundary correctly. Also stop climbing once the
existing diff parent level is reached.
@michalvasko michalvasko merged commit 186ea37 into CESNET:devel Jul 14, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants