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

cpsPath Query does not support "ends-with" and include-descendants option

XMLWordPrintable

      1. cpsPath does not support endsWith (//) function as detailed in https://wiki.onap.org/display/DW/CPS-235%3A+Overview+of+%28early%29+CPS+Query+and+Update+Scenarios#CPS235:Overviewof(early)CPSQueryandUpdateScenarios-Queries query #4

      The ends with query will check if the string provided in the cps-path matches the specific suffix found at the end of the xpath in the database.

      The ends with query will support yang containers and yang lists.

      xpath /grand-parent/parent/child 

      cps-path  ///child

       

      xpath /grand-parent/parent/child[key=value]

      cps-path ///child[key=value]

       

      1. cpsPath query has no option to 'include descendants' similar to get-option:
        descendants should not be included by default
        user need option to 'include all descendants' 

            niamhcore niamhcore
            ToineSiebelink Toine Siebelink
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: