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

set XXX fails for some union data types #20

Open
jktjkt opened this issue Jan 22, 2024 · 0 comments
Open

set XXX fails for some union data types #20

jktjkt opened this issue Jan 22, 2024 · 0 comments

Comments

@jktjkt
Copy link
Contributor

jktjkt commented Jan 22, 2024

/> set czechlight-system:journal-upload/host "127.0.0.1"
libyang-cpp internal error: LY_ARRAY_COUNT(lysc_type_union->types) = 3, LY_ARRAY_COUNT(lysp_type->types) = 0, lysp_type->name = inet:host

This affects both command execution as well as tab completion. The root cause is that "a lot of stuff", including parsing of actual values, requires libyang::types::Union::types() to behave reasonably, but that function tries to be too smart when resolving parsed type info in YANG-level unions.

Discovered by @ares1025.

jktjkt added a commit to CESNET/libyang-cpp that referenced this issue Jan 22, 2024
Bug: CESNET/netconf-cli#20
Reported-by: Michal Hažlinský <michal.hazlinsky@cesnet.cz>
Change-Id: I21e5939c23dd82870bba8af7ca26d0db32339470
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

No branches or pull requests

1 participant