TBDMT Reference: CPS-TBDMT Service
CPS API Analyse: CPS APIs
Templates Needed
1. instantiateRANSliceAllocate
S.No | Config DB API | Template | Schema | id | JSON Payload |
---|---|---|---|---|---|
2.instantiateRANSliceModifyAllocate
S.No | Config DB API | Template | Schema | id | JSON Payload |
---|---|---|---|---|---|
1. | api/sdnc-config-db/v4/nearrtric/{ranNFNSSIId} | //attributes/ranNFNSSIIdList/element[text()={{ranNFNSSIId}}]/ancestor::NearRTRIC | cps-ran-schema-model | get-nearrtric-by-rannfnssi | { "inputParameters": { "ranNFNSSIId": "ac8ca1a9-e1ec-4480-8720-c74e92566885" } } |
2 | /api/sdnc-config-db/v4/cell-list/{trackingArea} | /ran-coverage-area/pLMNIdList[mcc={{mcc}}][mnc={{mnc}}]/coverage-area[coverageArea={{coverageArea}}]/coverageAreaTAList[nRTAC={{nRTAC}}] | cps-cavsta-onap-internal | get-cells-list | { "inputParameters": { "mcc": "390", "mnc": "410", "coverageArea": "Chennai", "nRTAC": 101 } } |
3 | /api/sdnc-config-db/v4/nearRTRIC | { "templateId": "put-nearrtric", "model": "ran-network", "requestType": "post", "xpathTemplate": "/ran-network/NearRTRIC[@idNearRTRIC='\''{{idNearRTRIC}}'\'']/attributes/pLMNInfoList[@mcc='\''{{mcc}}'\'' and @mnc='\''{{mnc}}'\'']", "includeDescendants": true } | ran-network | put-nearrtric | { { |
4 | /api/sdnc-config-db/v4/gNBCUCP | curl -k -H "Content-Type: application/json" --request PUT 'http://10.31.4.14:8080/templates' --data-raw '{ "templateId": "put-nrcellcu", "model": "ran-network", "requestType": "post", "xpathTemplate": "/ran-network/NearRTRIC[@idNearRTRIC='\''{{idNearRTRIC}}'\'']/GNBCUCPFunction[@idGNBCUCPFunction='\''{{idGNBCUCPFunction}}'\'']/NRCellCU[@idNRCellCU='\''{{idNRCellCU}}'\'']/attributes/pLMNInfoList[@mcc='\''{{mcc}}'\'' and @mnc='\''{{mnc}}'\'']", "includeDescendants": true }' | ran-network | put-nrcellcu | { "idGNBCUCPFunction":"cucpserver1", "idNRCellCU":"15289 { |
5 | /api/sdnc-config-db/v4/gNBCUUP | /cps-ran-schema/NearRTRIC[@idNearRTRIC={{idNearRTRIC}}]/GNBCUUPFunction | cps-ran-schema-model | put-gnbcuupfunction | { "inputParameters":{ "idNearRTRIC": "11" }, "payload":{ "GNBCUUPFunction": [ { "idGNBCUUPFunction": "2222", "attributes": { "gNBId": 98763 "gNBCUUPId":2222, "pLMNInfoList":[ { "mcc":"310", "mnc":"410", "sNSSAIList":[ { "sNssai":"001-00110", "status":"ACTIVE", "configData": [ { "configParameter":maxNumberOfConns, "configValue":300 } ] } ] } ] } } ] } } |
6 | /api/sdnc-config-db/v4/gNBDU | /cps-ran-schema/NearRTRIC[@idNearRTRIC={{idNearRTRIC}}]/GNBDUFunction | put-gnbdufunction | put-gnbdufunction | { "inputParameters":{ "idNearRTRIC": "11" }, "payload":{ "GNBCUCPFunction": [ { "idGNBCUCPFunction": "110", "attributes": { "gNBDUId": 110, "gNBIdLength": 32, "gNBId": 98763 }, "NRCellCU": [ { "idNRCellCU": "15826", "attributes": { "cellLocalId": 15826 "pLMNInfoList":[ { "mcc":"310", "mnc":"410", "sNSSAIList":[ { "sNssai":"001-00110", "status":"ACTIVE", "configData": [ { "configParameter":dLThptPerSlice, "configValue":40 }, { "configParameter":uLThptPerSlice, "configValue":40 } ] } ] } ] } } ] } ] } } |
7 | /api/sdnc-config-db/v4/rrmPolicy | /cps-ran-schema/NearRTRIC[@idNearRTRIC={{idNearRTRIC}}]/GNBCUCPFunction[@idGNBCUCPFunction={{idGNBCUCPFunction}}]/NRCellCU[@idNRCellCU={{idNRCellCU}}]/attributes/RRMPolicyRatio | cps-ran-schema-model | put-nrcellcu-rrm-policy | { "inputParameters":{ "idNearRTRIC": "11", "idGNBCUCPFunction": "cucpserver1", "idNRCellCU": "15826" }, "payload":{ "GNBCUCPFunction": [ { "idGNBCUCPFunction": "cucpserver1", "attributes": { "gNBCUName": "cucpserver1", "gNBIdLength": 32, "gNBId": 98763 }, "NRCellCU": [ { "idNRCellCU": "15826", "attributes": { "cellLocalId": 15826 "RRMPolicyRatio":[ "id":11, "attributes": { "resourceType":"RRC Connected Users", "quotaType":"STRICT", "rRMPolicyMaxRatio":0, "rRMPolicyMinRatio":5, "rRMPolicyDedicatedRatio":0, "rRMPolicyMemberList":[ { "idx":34, "mcc":"390", "mnc":"410", "sNSSAI":"001-010111" } ] } ] } } ] } ] } } |
8 | /api/sdnc-config-db/v4/rrmPolicy | /cps-ran-schema/NearRTRIC[@idNearRTRIC={{idNearRTRIC}}]/GNBCUUPFunction[@idGNBCUUPFunction={{idGNBCUUPFunction}}]/attributes/RRMPolicyRatio | cps-ran-schema-model | put-cuup-rrm-policy | { "inputParameters":{ "idNearRTRIC": 11, "idGNBCUUPFunction": 1111 }, "payload":{ "GNBCUUPFunction": [ { "idGNBCUUPFunction": "cucpserver1", "attributes": { "gNBCUUPId": 1111, "gNBId": 98763, "RRMPolicyRatio":[ "id":11, "attributes": { "resourceType":"PRB", "quotaType":"STRICT", "rRMPolicyMaxRatio":0, "rRMPolicyMinRatio":5, "rRMPolicyDedicatedRatio":0, "rRMPolicyMemberList":[ { "idx":34, "mcc":"390", "mnc":"410", "sNSSAI":"001-010111" } ] } ] } } ] } } |
9 | /api/sdnc-config-db/v4/rrmPolicy | /cps-ran-schema/NearRTRIC[@idNearRTRIC={{idNearRTRIC}}]/GNBDUFunction[@idGNBDUFunction=[[idGNBDUFunction}}]/NRCellDU[@idNRCellDU={{idNRCellDU}}]/attributes/RRMPolicyRatio | cps-ran-schema-model | put-nrcelldu-rrm-policy | { "inputParameters":{ "idNearRTRIC": 11, "idGNBDUFunction": 110, "idNRCellCU": 15826 }, "payload":{ "GNBDUFunction": [ { "idGNBDUFunction": "110", "attributes": { "gNBDUId": 110, "gNBIdLength": 32, "gNBId": 98763 }, "NRCellDU": [ { "idNRCellDU": "15826", "attributes": { "cellLocalId": 15826 "RRMPolicyRatio":[ "id":11, "attributes": { "resourceType":"DRB", "quotaType":"STRICT", "rRMPolicyMaxRatio":0, "rRMPolicyMinRatio":5, "rRMPolicyDedicatedRatio":0, "rRMPolicyMemberList":[ { "idx":34, "mcc":"390", "mnc":"410", "sNSSAI":"001-010111" } ] } ] } } ] } ] } } |
10 | /api/sdnc-config-db/v4/ranslice-details | /ran-inventory/ran-slices | cps-ran-inventory | update-ran-inventory | { "payload":{ "ran-slices":[ { "rannfnssiid":"3f2f23fa-c567-4dd8-8f15-f95ae3e6fd82", "sliceProfilesList":[ { "sliceProfileId": "878f32c0-3699-4dbd-95a3-1f01d6c763fd", "dLThptPerSlice": 25, "uLThptPerSlice": 30, "maxNumberofConns":3000, "sNSSAI":"001-010000", "pLMNIdList":[ { "mcc":"310", "mnc":"410" } ] } ], "subnetStatus":"ACTIVE", "sliceType":"eMBB" } ] } } |
11 | /api/sdnc-config-db/v4//rrmPolicy/{resourceType}/{resourceId} | /cps-ran-schema/NearRTRIC[@idNearRTRIC={{idNearRTRIC}}]/GNBCUCPFunction[@idGNBCUCPFunction={{idGNBCUCPFunction}}]/NRCellCU[@idNRCellCU={{idNRCellCU}}]/attributes/RRMPolicyRatio | cps-ran-schema-model | get-nrcellcu-rrm-policy | { "inputParameters":{ "idNearRTRIC": 11, "idGNBCUCPFunction": "cucpserver1", "idNRCellCU": 15826 } } |
12 | /api/sdnc-config-db/v4//rrmPolicy/{resourceType}/{resourceId} | /cps-ran-schema/NearRTRIC[@idNearRTRIC={{idNearRTRIC}}]/GNBCUUPFunction[@idGNBCUUPFunction={{idGNBCUUPFunction}}]/attributes/RRMPolicyRatio | cps-ran-schema-model | get-cuup-rrm-policy | { "inputParameters":{ "idNearRTRIC": 11, "idGNBCUUPFunction": 1111 } } |
13 | /api/sdnc-config-db/v4//rrmPolicy/{resourceType}/{resourceId} | /cps-ran-schema/NearRTRIC[@idNearRTRIC={{idNearRTRIC}}]/GNBDUFunction[@idGNBDUFunction=[[idGNBDUFunction}}]/NRCellDU[@idNRCellDU={{idNRCellDU}}]/attributes/RRMPolicyRatio | cps-ran-schema-model | get-nrcelldu-rrm-policy | { "inputParameters":{ "idNearRTRIC": 11, "idGNBDUFunction": 110, "idNRCellCU": 15826 } } |
3.activateRANSliceInstance
S.No | Config DB API | Template | Schema | id | JSON Payload | Output | Comments |
---|---|---|---|---|---|---|---|
api/sdnc-config-db/v4/nearrtric/{ranNFNSSIId} | //ranNFNSSIIdList[@RANNFNSSI =1]/ancestor::NearRTRICs | cps-ran-schema-model |
| ||||
/api/sdnc-config-db/v4/plmn/{sliceProfileId} | /ran-inventory/ran-slices/sliceProfilesList[@sliceProfileId={{sliceProfileId}}]/pLMNIdList | ran-inventory |
| based on documentation was returning "PLMNId as String" here we have a list, yang models defines that could be as much as 6 elements, hacing each one mcc and mnc |
4.instantiateRANSliceReconfigure
5.terminateRANSliceInstance
Data feed to store the templates in TBDMT
Prepare the .sql file once the templates are finalized