Wildcard leaf matching in nacm


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


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:


Thank you. It works.