-
Story
-
Resolution: Unresolved
-
Medium
-
London Release
-
None
-
None
Data we write to CPS:
{
"parent-inventory:topos": {
"topo": [{
"topo-id": "",
"child1-inventory:directions": {
"direction": [
]
},
"child2-inventory:vendors": {
"vendor": [
]
}
}]
}
}
Data when we read it back:
{
"parent-inventory:topos": {
"topo": [{
"topo-id": "",
"directions": {
"direction": [
]
},
"vendors": {
"vendor": [
]
}
}]
}
}
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":
,
"GNBDUFunction:GNBDUFunction": [{
"idGNBDUFunction": "440",
"attributes":
,
"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": [
]
}
}]
}],
"GNBCUUPFunction": [{
"idGNBCUUPFunction": "2222",
"attributes":
}],
"GNBCUCPFunction": [{
"idGNBCUCPFunction": "cucpserver2",
"attributes": {
"gNBCUCPFunction-url": "10.165.160.13:6080",
"gNBId": 32,
"gNBIdLength": 23,
"gNBCUName": "cucpserver2",
"userLabel": "user",
"sAP": [
]
},
"NRCellCU": [{
"idNRCellCU": "11561",
"attributes": {
"nRCellCU-url": "10.165.160.15:8083",
"cellLocalId": 11561,
"sAP": [
]
}
}]
}]
}]
}
}' -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"}}]}}
- is duplicated by
-
CPS-1220 Get Data Node api to prefix the correct module name for parent node
- Closed
- relates to
-
CPS-1659 Attach appropriate prefix for the yang nodes
- Open
-
CPS-1326 Creation of DataNodeBuilder with module name prefix is very slow
- Closed
- mentioned in
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...