ConfD User Community

Wildcard leaf matching in nacm

Hi,

I’ve datamodel defined and would like to hide for some users. I’m working on defining NACM rules and its working. But need help to define xpath with leaf name matches any string .

/users/user[name=’$USER’]/extensions — working
/users/user[name=’$USER’]/ servers/server[name=’*’]/ip — not working

Thanks,
-Venkat

Standard XPath syntax applies, it doesn’t use wildcards this way (what you have matches a key that has the literal value ‘*’). To match any value for a key, simply don’t include a predicate for it:

/users/user[name=’$USER’]/servers/server/ip

Thank you. It works.