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

Issue with CPSData API to add an item to an existing list node

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Medium
    • Resolution: Done
    • Istanbul Release
    • Istanbul Release
    • None
    • None

    Description

      Issue Description:

      While adding a new sNSSAI node to the sNSSAIList under NearRTRIC, the update is happening partially. Refer the attachment (Put Data.txt) for the steps for reproducing the issue.

      Note 1. The .yang files in the original attachments contain windows CR/LF lien endings which result in an error when creating a schema set. Attached now is yang-files.zip which has the correctly formatted files

      Note 2. When creating the data node for the first time a 'POST' operation should be used instead of 'PUT' as shown in the above .txt file

      API used:

      curl -g -H "Authorization: Basic Y3BzdXNlcjpjcHNyMGNrcyE=" -H "Content-Type: application/json" --request POST 'http://localhost:8883/cps/api/v1/dataspaces/E2EDemo/anchors/ran-network-anchor/list-node?xpath=/ran-network/NearRTRIC[@idNearRTRIC=%2711%27]/attributes/pLMNInfoList[@mcc=%27310%27%20and%20@mnc=%27410%27]' --data-raw '{
      "sNSSAIList":[
      {
      "sNssai":"1000-1000",
      "status":"ACTIVE",
      "configData": [ { "configParameter":"dLThptPerSlice", "configValue":30 }, { "configParameter":"uLThptPerSlice", "configValue":30 }, { "configParameter":"maxNumberOfConns", "configValue":200 }
      ]

      }
      ]
      }'

      Highlighted fragment (configData) which is an nested element under sNSSAIList is not added after the API execution.

      Attachments

        1. ietf-inet-types@2021-02-22.yang
          22 kB
        2. ietf-yang-types@2021-04-14.yang
          28 kB
        3. image-2021-08-11-12-46-48-547.png
          image-2021-08-11-12-46-48-547.png
          27 kB
        4. image-2021-08-16-15-48-57-758.png
          image-2021-08-16-15-48-57-758.png
          26 kB
        5. PUT data.txt
          15 kB
        6. ran-network@2020-08-06.yang
          57 kB
        7. ran-network-data.json
          10 kB
        8. yang-files.zip
          24 kB

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              DylanB95EST Dylan Byrne
              ahilap Ahila P
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: