08-09-2019 01:11 AM
Is there any way to use regex for a nacm rule apply to a group of devices?
For example: "rule bunch_devices path /ncs:devices/device[name=*sw*)]/*", as red color marked, which means operations on abc.sw.001 and def.sw.002 could match this rule.
Solved! Go to Solution.
08-09-2019 02:14 AM
No. The type of the leaf "path" is a node-instance-identifier - syntactically a XPath expression, but with the restriction that predicates, if present, must consist of key value comparisons. As a result, a single rule like this can refer to one or to all devices, not to a group of devices.
08-09-2019 02:14 AM
No. The type of the leaf "path" is a node-instance-identifier - syntactically a XPath expression, but with the restriction that predicates, if present, must consist of key value comparisons. As a result, a single rule like this can refer to one or to all devices, not to a group of devices.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide