libyang[0]: Invalid value “/aaa/authentication/users/user[name=‘admin’]”
in “path” element. (path:
/ietf-netconf-acm:nacm/rule-list[name=‘any-group’]/rule[name=‘tailf-aaa-authentication’]/path)
Failed to parse data.
We have consulted libyang team, which sent us the following response:
The Yang model specifies that this path fully conforms to the instance-identifier paths which means that prefixes are required for all the nodes in the path. That is the problem.
You are pointing to a basic example XML configuration that comes with ConfD for running the examples in the ConfD example set. You don’t want to ship your product with an example authentication and authorization configuration. If you want the paths in that example configuration to not assume anything and then for example use your tool to check the config for correctness, feel free to add something like:
Actually for the libyang it is enough to have prefix for the first token, example:
/aaa:aaa/authentication/users/user[name=’$USER’]
Unfortunately I am facing another issue: the netconf does not return multiple name space tokens. I tried to add the namespace identifier directly to ‘path’ tag, but netconf response from RPC request still does not return the namespace.
It could be known issue, which is already fixed. Here is the confd version installed on my Ubuntu:
yan@ubuntu-yan:~/confd$ cat VERSION
ConfD Basic version 6.4 for linux on x86_64.
Revision: 92834 (SVN)
Date: Wed Mar 22 12:01:45 CET 2017
Erlang/OTP version: 18.3.4.5
DOCUMENTATION_PACKAGE=confd-basic-6.4.doc.tar.gz
EXAMPLE_PACKAGE=confd-basic-6.4.examples.tar.gz
yan@ubuntu-yan:~/confd$