How to add a namespaced instance value #1814
-
Hi, I'm currently populating state in a state callback, and I keep getting How would I go about to do this? I can't find any example of this neither on github nor in the documentation for libyang. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
I understand it may not be simple to find the first time but all the information should be there and referencing further relevant docs. I assume you are using |
Beta Was this translation helpful? Give feedback.
-
You need to explicitly install/implement the model which provides the YANG identities. And just FYI, there are already two projects which deal with the
Perhaps using one of these projects might save you some development time? I know that we're happy to accept patches for |
Beta Was this translation helpful? Give feedback.
I understand it may not be simple to find the first time but all the information should be there and referencing further relevant docs. I assume you are using
lyd_new_path()
and the docs forvalue
mention JSON format. That is defined in an RFC, where you can read about how an identityref value should be represented. Feel free to suggest what to improve in the docs for other users to find it next time.