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

No Prefix for containers in different modules

    XMLWordPrintable

Details

    • Story
    • Status: Reopened
    • Medium
    • Resolution: Unresolved
    • London Release
    • New Delhi Release
    • None
    • None

    Description

      Data we write to CPS:
      {
      "parent-inventory:topos": {
      "topo": [{
      "topo-id": "",
      "child1-inventory:directions": {
      "direction": [

      { "id": "" }

      ]
      },
      "child2-inventory:vendors": {
      "vendor": [

      { "vendorName": "" }

      ]
      }
      }]
      }
      }

      Data when we read it back:
      {
      "parent-inventory:topos": {
      "topo": [{
      "topo-id": "",
      "directions": {
      "direction": [

      { "id": "" }

      ]
      },
      "vendors": {
      "vendor": [

      { "vendorName": "" }

      ]
      }
      }]
      }
      }

      Prefixes for the inner containers are missing when we read the data. We expect the data to be same as we posted it.

      APIs Used:

      $ curl -k -H "Content-Type: application/json" -H "Authorization: Basic Y3BzdXNlcjpjcHNyMGNrcyE=" --request POST http://localhost:8883/cps/api/v1/dataspaces?dataspace-name='E2EDEMO'

      $ curl -H "Authorization: Basic Y3BzdXNlcjpjcHNyMGNrcyE=" --request POST 'http://localhost:8883/cps/api/v1/dataspaces/E2EDEMO/schema-sets' --form 'file=@"ran-network.zip"' --form 'schema-set-name="ran-network"'

      $ curl -H "Authorization: Basic Y3BzdXNlcjpjcHNyMGNrcyE=" --request POST 'http://localhost:8883/cps/api/v1/dataspaces/E2EDEMO/anchors?schema-set-name='ran-network'&anchor-name='11''

      $ curl -H "Authorization: Basic Y3BzdXNlcjpjcHNyMGNrcyE=" --request POST 'http://localhost:8883/cps/api/v1/dataspaces/E2EDEMO/anchors/11/nodes' --header 'Content-Type: application/json' -d '{
      "ran-network:ran-network": {
      "NearRTRIC:NearRTRIC": [{
      "idNearRTRIC": 22,
      "attributes":

      { "near-rt-ric-url": "10.165.160.47:6080", "trackingArea": "Kingston" }

      ,
      "GNBDUFunction:GNBDUFunction": [{
      "idGNBDUFunction": "440",
      "attributes":

      { "gNBDUFunction-url": "10.165.160.13:6080", "gNBIdLength": 23, "gNBDUName": "gnbdu1", "gNBDUId": 440 }

      ,
      "NRCellDU": [{
      "idNRCellDU": "11561",
      "attributes": {
      "nRCellDU-url": "10.165.160.15:8083",
      "cellLocalId": 11561,
      "nRPCI": 11,
      "nRTAC": 14777,
      "arfcnDL": 1,
      "arfcnUL": 2,
      "arfcnSUL": 3,
      "bSChannelBwDL": 4,
      "bSChannelBwUL": 5,
      "bSChannelBwSUL": 6,
      "ssbFrequency": 7,
      "ssbSubCarrierSpacing": 15,
      "ssbOffset": 9,
      "ssbDuration": 4,
      "nRSectorCarrierRef": [
      "OU=Sales"
      ],
      "userLabel": "user",
      "sAP": [

      { "host": "localhost", "port": 8080 }

      ]
      }
      }]
      }],
      "GNBCUUPFunction": [{
      "idGNBCUUPFunction": "2222",
      "attributes":

      { "gNBCUUPFunction-url": "10.165.160.13:6080", "gNBId": 22, "gNBCUUPId": 2222 }

      }],
      "GNBCUCPFunction": [{
      "idGNBCUCPFunction": "cucpserver2",
      "attributes": {
      "gNBCUCPFunction-url": "10.165.160.13:6080",
      "gNBId": 32,
      "gNBIdLength": 23,
      "gNBCUName": "cucpserver2",
      "userLabel": "user",
      "sAP": [

      { "host": "localhost", "port": 8080 }

      ]
      },
      "NRCellCU": [{
      "idNRCellCU": "11561",
      "attributes": {
      "nRCellCU-url": "10.165.160.15:8083",
      "cellLocalId": 11561,
      "sAP": [

      { "host": "localhost", "port": 8080 }

      ]
      }
      }]
      }]
      }]
      }
      }' -i

      $ curl -H "Authorization: Basic Y3BzdXNlcjpjcHNyMGNrcyE=" --request 'GET' 'http://localhost:8883/cps/api/v1/dataspaces/E2EDEMO/anchors/11/node?xpath=%2fran-network&include-descendants=true' -H 'accept: application/json' -i

      {"ietf-inet-types:ran-network":{"NearRTRIC":[{"idNearRTRIC":"22","GNBCUUPFunction":[{"idGNBCUUPFunction":"2222","attributes":{"gNBId":22,"gNBCUUPId":2222,"gNBCUUPFunction-url":"10.165.160.13:6080"}}],"GNBDUFunction":[{"idGNBDUFunction":"440","NRCellDU":[{"idNRCellDU":"11561","attributes":{"nRPCI":11,"nRTAC":14777,"arfcnDL":1,"arfcnUL":2,"arfcnSUL":3,"ssbOffset":9,"userLabel":"user","cellLocalId":11561,"ssbDuration":4,"nRCellDU-url":"10.165.160.15:8083","ssbFrequency":7,"bSChannelBwDL":4,"bSChannelBwUL":5,"bSChannelBwSUL":6,"nRSectorCarrierRef":["OU=Sales"],"ssbSubCarrierSpacing":15,"sAP":[

      {"host":"localhost","port":8080}

      ]}}],"attributes":{"gNBDUId":440,"gNBDUName":"gnbdu1","gNBIdLength":23,"gNBDUFunction-url":"10.165.160.13:6080"}}],"GNBCUCPFunction":[{"idGNBCUCPFunction":"cucpserver2","NRCellCU":[{"idNRCellCU":"11561","attributes":{"cellLocalId":11561,"nRCellCU-url":"10.165.160.15:8083","sAP":[

      {"host":"localhost","port":8080}

      ]}}],"attributes":{"gNBId":32,"gNBCUName":"cucpserver2","userLabel":"user","gNBIdLength":23,"gNBCUCPFunction-url":"10.165.160.13:6080","sAP":[

      {"host":"localhost","port":8080}

      ]}}],"attributes":{"trackingArea":"Kingston","near-rt-ric-url":"10.165.160.47:6080"}}]}}

      Attachments

        Issue Links

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

          Activity

            People

              yashwanth03 YASHWANTH GANDHAPU
              yashwanth03 YASHWANTH GANDHAPU
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: