Skip to content

Conversation

@bradh352
Copy link
Contributor

When a leafref is not found in a union, it should not return an error indicating the value for the leafref wouldn't match the restrictions for a target but instead just say the leafref target wasn't found.

The only data that should indicate the error message for data type restrictions is data associated with the target itself, not leafrefs.

Fixes #2359

When a leafref is not found in a union, it should not return an error
indicating the value for the leafref wouldn't match the restrictions
for a target but instead just say the leafref target wasn't found.

The only data that should indicate the error message for data type
restrictions is data associated with the target itself, not leafrefs.

Signed-off-by: Brad House <brad@brad-house.com>
Copy link
Member

@michalvasko michalvasko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fine, after fixing the issues this can be merged.

@bradh352 bradh352 force-pushed the bradh352/union_leafref_error branch from 3d6c33a to e3cd01a Compare March 3, 2025 12:10
@michalvasko michalvasko merged commit 73f0ab8 into CESNET:devel Mar 3, 2025
11 checks passed
bradh352 added a commit to bradh352/sonic-buildimage that referenced this pull request Mar 3, 2025
@bradh352 bradh352 deleted the bradh352/union_leafref_error branch March 3, 2025 15:17
bradh352 added a commit to bradh352/sonic-buildimage that referenced this pull request Mar 4, 2025
bradh352 added a commit to bradh352/sonic-buildimage that referenced this pull request Mar 5, 2025
bradh352 added a commit to bradh352/sonic-buildimage that referenced this pull request Mar 5, 2025
bradh352 added a commit to bradh352/sonic-buildimage that referenced this pull request Mar 6, 2025
bradh352 added a commit to bradh352/sonic-buildimage that referenced this pull request Mar 8, 2025
bradh352 added a commit to bradh352/sonic-buildimage that referenced this pull request Mar 11, 2025
bradh352 added a commit to bradh352/sonic-buildimage that referenced this pull request Mar 12, 2025
bradh352 added a commit to bradh352/sonic-buildimage that referenced this pull request Apr 3, 2025
bradh352 added a commit to bradh352/sonic-buildimage that referenced this pull request Apr 3, 2025
bradh352 added a commit to bradh352/sonic-buildimage that referenced this pull request Apr 20, 2025
bradh352 added a commit to bradh352/sonic-buildimage that referenced this pull request Apr 22, 2025
bradh352 added a commit to bradh352/sonic-buildimage that referenced this pull request Apr 23, 2025
bradh352 added a commit to bradh352/sonic-buildimage that referenced this pull request Apr 24, 2025
bradh352 added a commit to bradh352/sonic-buildimage that referenced this pull request Jun 13, 2025
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