Uploaded image for project: 'Configuration Persistence Service'
  1. Configuration Persistence Service
  2. CPS-1651

CpsPath Query using regexQuickFind does not return descendants with lists

XMLWordPrintable

      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

            ToineSiebelink Toine Siebelink
            danielhanrahan Daniel Hanrahan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: