Skip to content
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

libyang: bug when uses clause references a leaf-list #21525

Open
bradh352 opened this issue Jan 24, 2025 · 0 comments
Open

libyang: bug when uses clause references a leaf-list #21525

bradh352 opened this issue Jan 24, 2025 · 0 comments
Assignees
Labels
Triaged this issue has been triaged

Comments

@bradh352
Copy link
Contributor

There is a bug in libyang when attempting to validate table BGP_PEER_GROUP_AF and likely BGP_NEIGHBOR_AF in respect to route_map_in and route_map_out.

The issue is with the use of leaf-list specifically when it is pulled in via a uses clause of bgpcmn:sonic-bgp-cmn-af.

The error message resembles that of if a child is specified that isn't recognized at all:

All Keys are not parsed in BGP_PEER_GROUP_AF
dict_keys(['default|PEERS|ipv4_unicast'])
exceptionList:["'route_map_in'"]

Moving the leaf-list to the parent rather than being imported through the uses clause works around this issue.

This issue is "worked around" in PR #21078 and should be reverted once the issue is fixed in libyang (which may be as simple as upgrading the libyang version in use).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Triaged this issue has been triaged
Projects
None yet
Development

No branches or pull requests

3 participants