module wtf {
prefix "wtf";
namespace "wtf";
list foo {
key x;
leaf x {
type string;
}
}
}
When using that with either sysrepo-cli or netconf-cli-local, the top-levle items are apparently ignored by get. I do see them in dump json at least:
/> create /wtf:foo[x='a']
/> create /wtf:foo[x='b']
/> commit
/> get /wtf:foo
/> get /wtf:*
/> dump json
...
"wtf:foo": [
{
"x": "a"
},
{
"x": "b"
}
]
}
The yang-cli appears to work OK.