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

Support parsing of list node fragment with multiple entries

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Medium Medium
    • Istanbul Release
    • None
    • CPS-Core
    • None

      Data fragment parsing consist of two stages

      1. JSON string conversion into NormalizedNode object - performed by yang tools library
      2. NormalizedNode conversion to DataNode object - performed by DataNodeBuilder (CPS)

      The DataNodeBuilder currently assumes the incoming data always describes single data node.
      As result the single DataNode object is always created even if input data contains multiple entries
      (see example below).

      In order to support operations with list nodes containing multiple entries, the DataNodeBuilder
      functionality require to be modified to successfully retrieve all the data nodes provided within
      incoming JSON.

      Example JSON: (references test-tree.yang model from cps-service module tests)

      {
        "branch": [
          { "name": "one"},
          { "name": "two"}
        ]
      }
      

      A/C:

      DataNodeBuilder can build a collection of DataNode objects

            rkashapov rkashapov
            rkashapov rkashapov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: