-
Bug
-
Resolution: Done
-
Medium
-
Kohn Release, Montreal Release
-
None
In queryDataNodes, a special-case algorithm is used for cases without leaf-condition/text-condition and fetching all descendants. It is called getDataNodesUsingRegexQuickFind.
Using openroadm model, this returns incorrect results for queries such as '//openroadm-device', returning only direct descendants. In this case, this regex is used:
.*\/openroadm-device(\[@(?!.*\[).*?])?(\/.*)?$
This regex will not match descendants with nested lists, like:
/openroadm-devices/openroadm-device[@device-id='C201-7-1A-1']/org-openroadm-device/degree[@degree-number='4']
but it can match this:
/openroadm-devices/openroadm-device[@device-id='C201-7-1A-1']/org-openroadm-device