Skip to content

validation: Add LYD_VALIDATE_NOEXTDEPS to bypass leafref/when/must #2362

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

bradh352
Copy link
Contributor

@bradh352 bradh352 commented Feb 28, 2025

In libyang v1, there was an LYD_OPT_NOEXTDEPS flag. This was removed, and this patch re-adds a flag with similar functionality.

The gNMI/RESTCONF portion of the SONiC port is currently relying on this patch:
sonic-net/sonic-mgmt-common#157

If this isn't accepted upstream, we'll need to maintain this patch separately.

Fixes #2355

In libyang v1, there was an LYD_OPT_NOEXTDEPS flag.  This was
removed, and this patch re-adds a flag with similar functionality.
@michalvasko
Copy link
Member

We have discussed this flag and as I have said before, we removed it intentionally and we do not want to support it because it is not reliable and, what is worse, leads to bad design of applications.

@michalvasko michalvasko closed this Mar 3, 2025
@bradh352
Copy link
Contributor Author

bradh352 commented Mar 3, 2025

understood, just one of those policies to always submit upstream :) We'll maintain this patch separately in SONiC until the code that relies on this can be rearchitected.

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