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.
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the NSO Developer community: