Skip to content

How do you create a node with multiple keys? #1731

Answered by nullromo
nullromo asked this question in Q&A
Discussion options

You must be logged in to vote

After stepping through the libyang code using gdb, I was able to determine that the predicate checking function specifically looks for the [ character, then the name, then the = character, then a literal, and finally the ] character. So the syntax using and is not allowed. After that, I later determined that my key-b was specified as [key-b=1] instead of [key-b='1'] (it was not quoted). After fixing these issues, the function worked.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@michalvasko
Comment options

@nullromo
Comment options

@michalvasko
Comment options

@nullromo
Comment options

@michalvasko
Comment options

Answer selected by nullromo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants