Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Create the dataspace, schemaset and anchor using the below CPS-Core APIs:

...

  1. CoverageArea: curl -H "Authorization: Basic Y3BzdXNlcjpjcHNyMGNrcyE=" --request POST 'http://<ipaddress>:8883/cps/api/v1/dataspaces/E2EDemo/anchors/coverage-area-onap/nodes' \
    --header 'Content-Type: application/json' -d @cavstareq.json  cavstareq.json
  2. RAN Network: curl -H "Authorization: Basic Y3BzdXNlcjpjcHNyMGNrcyE=" --request POST 'http://<ipaddress>:8883/cps/api/v1/dataspaces/E2EDemo/anchors/11/nodes' \
    --header 'Content-Type: application/json' -d @ran-network-initial-data.json ran-network-initial-data.jsonRAN inventory:
  3. curl -H "Authorization: Basic Y3BzdXNlcjpjcHNyMGNrcyE=" --request POST 'http://<ipaddress>:8883/cps/api/v1/dataspaces/E2EDemo/anchors/ran-inventory-anchor/nodes'

    \

     --header 'Content-Type: application/json' -

    d @ran

    -

    inventory-sample-data.json ran-inventory-sample-data.json

    data-raw '{
    "ran-inventory":{
    }
    }'

Schemaset-anchor mapping:

...

Templates are uploaded and tested for this release. The templates can be preloaded in TBDMT during the deployment time itself. Refer the Demo at https://wiki.onap.org/download/attachments/117746417/2022-02-08%20E2E%20Network%20Slicing%20Weekly%20Meeting.mp4?api=v2 1:40-9:40 minutes

instantiateRANSlice - Allocate:

...

View file
namePreload-instantiateRanSliceReconfigure.json
height250


activateRANSlice

View file
nameactivation-CPS-templates.txt
height250

preload-activateRANSlice

View filenamepreload-activateRANSlice.json

height250


S.No

Config DB API

xPath

Template

Schema

id

JSON Payload

1api/sdnc-config-db/v4/nearrtric/{ranNFNSSIId}

//attributes/ranNFNSSIIdList/element[text()="ac8ca1a9-e1ec-4480-8720-c74e92566885"]/ancestor::NearRTRIC

{
"templateId": "get-nearrtric-by-rannfnssi",
"model": "ran-network",
"requestType": "query-cps-path",
"xpathTemplate": "//attributes/rANNFNSSIList[text()='\''{{rANNFNSSIId}}'\'']/ancestor::NearRTRIC",
"includeDescendants": true


}

,                                                                                                                                                                                                                                                                          "transformParam":"NearRTRIC"
}

ran-networkget-nearrtric-by-rannfnssi{
"inputParameters": {
"rANNFNSSIId": "4039ce18-7f8f-44d7-9822-6cb6cb7227d4"
}
}
2/api/sdnc-config-db/v4/plmn/{sliceProfileId}}

//attributes/sliceProfilesList[@sliceProfileId="314aab80-1754-446c-bfd9-6aae5b1ae348"]/ancestor::NearRTRIC

{
"templateId": "get-plmnmccid-by-sliceprofileid",
"model": "ran-network",
"requestType": "query-cps-path",
"xpathTemplate": "//attributes/sliceProfilesList[@sliceProfileId='\''{{sliceProfileId}}'\'']/ancestor::NearRTRIC",
"includeDescendants": true,
"transformParam":"NearRTRIC,attributes,pLMNInfoList,mcc"
}
ran-networkget-plmnmccid-by-sliceprofileid

{

"inputParameters": {
"sliceProfileId": "e75a8b68-0dee-4a9c-9a61-b0893e03ca45"
}
}

3/api/sdnc-config-db/v4/plmn/{sliceProfileId}//attributes/sliceProfilesList[@sliceProfileId="314aab80-1754-446c-bfd9-6aae5b1ae348"]/ancestor::NearRTRIC{
"templateId": "get-plmnmncid-by-sliceprofileid",
"model": "ran-network",
"requestType": "query-cps-path",
"xpathTemplate": "//attributes/sliceProfilesList[@sliceProfileId='\''{{sliceProfileId}}'\'']/ancestor::NearRTRIC",
"includeDescendants": true,
"transformParam":"NearRTRIC,attributes,pLMNInfoList,mnc"
}
ran-networkget-plmnmncid-by-sliceprofileid

{

"inputParameters": {
"sliceProfileId": "e75a8b68-0dee-4a9c-9a61-b0893e03ca45"
}
}

4/api/sdnc-config-db/v4/nearRTRIC

/ran-network/NearRTRIC[@idNearRTRIC="11"]/attributes/pLMNInfoList[@mcc="310" and @mnc="410"]

{
"templateId": "put-status-nearrtric",
"model": "ran-network",
"requestType": "patch",
"xpathTemplate": "/ran-network/NearRTRIC[@idNearRTRIC='\''{{idNearRTRIC}}'\'']/attributes/pLMNInfoList[@mcc='\''{{mcc}}'\'' and @mnc='\''{{mnc}}'\'']",
"includeDescendants": true
}
ran-networkput-status-nearrtric

{

"inputParameters":{
"idNearRTRIC":"11",
"mcc":"310",
"mnc":"410"
},
"payload": {
"sNSSAIList": [{
"sNssai": "[01-3A4C16]",
"status": "ACTIVE"
}]
}
}

5/api/sdnc-config-db/v4/gNBCUUP

/ran-network/NearRTRIC[@idNearRTRIC="11"]/GNBCUUPFunction[@idGNBCUUPFunction="22"]/attributes/pLMNInfoList[@mcc="310" and @mnc="410"]

{
"templateId": "put-status-gnbcuup",
"model": "ran-network",
"requestType": "patch",
"xpathTemplate": "/ran-network/NearRTRIC[@idNearRTRIC='\''{{idNearRTRIC}}'\'']/GNBCUUPFunction[@idGNBCUUPFunction='\''{{idGNBCUUPFunction}}'\'']/attributes/pLMNInfoList[@mcc='\''{{mcc}}'\'' and @mnc='\''{{mnc}}'\'']",
"includeDescendants": true
}
ran-networkput-status-gnbcuup

{

"inputParameters":{
"idNearRTRIC":"11",
"mcc":"551",
"mnc":"550",
"idGNBCUUPFunction":"22"
},
"payload": {
"sNSSAIList": [{
"sNssai": "[01-3A4C16]",
"status": "ACTIVE"
}]
}
}

6/api/sdnc-config-db/v4/gNBDU

/ran-network/NearRTRIC[@idNearRTRIC="11"]/GNBDUFunction[@idGNBDUFunction="22"]/NRCellDU[@idNRCellDU="15299"]/attributes/pLMNInfoList[@mcc="310" and @mnc="410"]

{
"templateId": "put-status-nrcelldu",
"model": "ran-network",
"requestType": "patch",
"xpathTemplate": "/ran-network/NearRTRIC[@idNearRTRIC='\''{{idNearRTRIC}}'\'']/GNBDUFunction[@idGNBDUFunction='\''{{idGNBDUFunction}}'\'']/NRCellDU[@idNRCellDU='\''{{idNRCellDU}}'\'']/attributes/pLMNInfoList[@mcc='\''{{mcc}}'\'' and @mnc='\''{{mnc}}'\'']",
"includeDescendants": true
}
ran-networkput-status-nrcelldu

{

"inputParameters":{
"idNearRTRIC":"11",
"mcc":"211",
"mnc":"211",
"idGNBDUFunction":22,
"idNRCellDU":15299
},
"payload": {
"sNSSAIList": [{
"sNssai": "[01-3A4C16]",
"status": "ACTIVE"
}]
}
}

7

/api/sdnc-config-db/v4/gNBCUCP

/ran-network/NearRTRIC[@idNearRTRIC="11"]/GNBCUCPFunction[@idGNBCUCPFunction="32"]/NRCellCU[@idNRCellCU="15199"]/attributes/pLMNInfoList[@mcc="310" and @mnc="410"]

{
"templateId": "put-status-nrcellcu",
"model": "ran-network",
"requestType": "patch",
"xpathTemplate": "/ran-network/NearRTRIC[@idNearRTRIC='\''{{idNearRTRIC}}'\'']/GNBCUCPFunction[@idGNBCUCPFunction='\''{{idGNBCUCPFunction}}'\'']/NRCellCU[@idNRCellCU='\''{{idNRCellCU}}'\'']/attributes/pLMNInfoList[@mcc='\''{{mcc}}'\'' and @mnc='\''{{mnc}}'\'']",
"includeDescendants": true
}
ran-networkput-status-nrcellcu

{

"inputParameters":{
"idNearRTRIC":"11",
"mcc":"551",
"mnc":"550",
"idGNBCUCPFunction":"32",
"idNRCellCU":"15199"
},
"payload": {
"sNSSAIList": [{
"sNssai": "[01-3A4C16]",
"status": "ACTIVE"
}]
}
}



terminateRANSlice


preload-terminateRANSlice

View file
nameterminate_templates.txt
height250


putstatusnearrtricpatchputstatusnearrtric
}
"payload": {": [{
"sNssai[01-3A4C16]",
"status": "ACTIVE"
}]gNBDUputstatusnrcelldupatchGNBDUFunction@idGNBDUFunctionidGNBDUFunctionNRCellDU@idNRCellDUidNRCellDUpLMNInfoList@mccmcc'' and @mncmncput-status-nrcelldumcc211mnc211idGNBDUFunction22,
idNRCellDU:15299
}payload {
"sNSSAIList": [{
"sNssai": "[01-3A4C16]",
"status": "ACTIVE"
}]gNBCUCPputstatusnrcellcupatchGNBCUCPFunction@idGNBCUCPFunctionidGNBCUCPFunctionNRCellCU@idNRCellCUidNRCellCU]/attributes/pLMNInfoList[@mccmcc and @mncmnc]",
"includeDescendants": true
}

{

"inputParameters":{
"idNearRTRIC":"11",
"mcc":"551mnc"550",
"idGNBCUCPFunction":"32",
"idNRCellCU":"15199"
},
"payload": {
"sNSSAIList": [{
"sNssai": "[01-3A4C16]",
"status": "ACTIVE"
}]
}
}

S.No

Config DB API

xPath

Template

Schema

id

JSON Payload

1api/sdnc-config-db/v4/nearrtric/{ranNFNSSIId}

//attributes/ranNFNSSIIdList/element[text()="ac8ca1a9-e1ec-4480-8720-c74e92566885"]/ancestor::NearRTRIC

{
"templateId": "get-nearrtric-by-rannfnssi",
"model": "ran-network",
"requestType": "query-cps-path",
"xpathTemplate": "//attributes/rANNFNSSIList[text()='\''{{rANNFNSSIId}}'\'']/ancestor::NearRTRIC",
"includeDescendants": true
}
ran-networkget-nearrtric-by-rannfnssi{
"inputParameters": {
"rANNFNSSIId": "4039ce18-7f8f-44d7-9822-6cb6cb7227d4"
}
}
2/api/sdnc-config-db/v4/plmn/{sliceProfileId}}

//attributes/sliceProfilesList[@sliceProfileId="314aab80-1754-446c-bfd9-6aae5b1ae348"]/ancestor::NearRTRIC

{
"templateId": "get-plmnmccid-by-sliceprofileid",
"model": "ran-network",
"requestType": "query-cps-path",
"xpathTemplate": "//attributes/sliceProfilesList[@sliceProfileId='\''{{sliceProfileId}}'\'']/ancestor::NearRTRIC",
"includeDescendants": true,
"transformParam":"NearRTRIC,attributes,pLMNInfoList,mcc"
}
ran-networkget-plmnmccid-by-sliceprofileid

{

"inputParameters": {
"sliceProfileId": "e75a8b68-0dee-4a9c-9a61-b0893e03ca45"
}
}

3/api/sdnc-config-db/v4/plmn/{sliceProfileId}//attributes/sliceProfilesList[@sliceProfileId="314aab80-1754-446c-bfd9-6aae5b1ae348"]/ancestor::NearRTRIC{
"templateId": "get-plmnmncid-by-sliceprofileid",
"model": "ran-network",
"requestType": "query-cps-path",
"xpathTemplate": "//attributes/sliceProfilesList[@sliceProfileId='\''{{sliceProfileId}}'\'']/ancestor::NearRTRIC",
"includeDescendants": true,
"transformParam":"NearRTRIC,attributes,pLMNInfoList,mnc"
}
ran-networkget-plmnmncid-by-sliceprofileid

{

"inputParameters": {
"sliceProfileId": "e75a8b68-0dee-4a9c-9a61-b0893e03ca45"
}
}

4/api/sdnc-config-db/v4/nearRTRIC/ran-network/NearRTRIC[@idNearRTRIC="11"]/attributes/pLMNInfoList[@mcc="310" and @mnc="410"]/sNSSAIList[@sNssai="1000-1012"]{
"templateId": "
delete-nssai-from-rtric",
"model": "ran-network",
"requestType": "
delete-list-node",
"xpathTemplate": "/ran-network/NearRTRIC[@idNearRTRIC='\''{{idNearRTRIC}}'\'']/attributes/pLMNInfoList[@mcc='\''{{mcc}}'\'' and @mnc='\''{{mnc}}'\'']/sNSSAIList[@sNssai='\''{{sNSSAIList}}'\'']",
"includeDescendants": true
}
ran-networkdelete-nssai-from-rtric

{

"inputParameters": {
"idNearRTRIC": "11",
"mcc":"310",
"mnc":"410"

,


"sNSSAIList

":"

1000-1012"
}
}

5/api/sdnc-config-db/v4/gNBCUUPgNBCUCP/ran-network/NearRTRIC[@idNearRTRIC="11"]/GNBCUCPFunction[@idGNBCUCPFunction="cucpserver1"]/GNBCUUPFunctionNRCellCU[@idGNBCUUPFunction@idNRCellCU="2215289"]/attributes/pLMNInfoList[@mcc="310" and @mnc="410" and @mnc="410"]/sNSSAIList[@sNssai=01-500004"]{
"templateId": "putdelete-cucp-statusplmn-gnbcuupnssai",
"model": "ran-network",
"requestType": "patchdelete-list-node",
"xpathTemplate": "/ran-network/NearRTRIC[@idNearRTRIC='\''{{idNearRTRIC}}'\'']/GNBCUCPFunction[@idGNBCUCPFunction='\''{{idGNBCUCPFunction}}'\'']/GNBCUUPFunctionNRCellCU[@idGNBCUUPFunction@idNRCellCU='\''{{idGNBCUUPFunctionidNRCellCU}}'\'']/attributes/pLMNInfoList[@mcc='\''{{mcc}}'\'' and @mnc='\''{{mnc}}'\'']/sNSSAIList[@sNssai='\''{{sNSSAIList}}'\'']",
"includeDescendants": true
}
ran-networkput-status-gnbcuupdelete-nssai-from-cucp-plmninfo{
"inputParameters": {
"idNearRTRIC": "11",
"mccidGNBCUCPFunction":"551cucpserver1",
"mncidNRCellCU":"550",
"idGNBCUUPFunction":"22"
}15289",
"payloadmcc": {
"sNSSAIList310": [{,
"sNssaimnc":"[01-3A4C16]410",
"statussNSSAIList":"ACTIVE"
}]01-500004"
}
}
6/api/sdnc-config-db/v4/gNBCUCP/ran-network/NearRTRIC[@idNearRTRIC="11"]/GNBDUFunctionGNBCUCPFunction[@idGNBDUFunction@idGNBCUCPFunction="22cucpserver1"]/NRCellDUNRCellCU[@idNRCellDU@idNRCellCU="1529915289"]/attributes/pLMNInfoListRRMPolicyRatio[@mcc@id="310" and @mnc55"]/attributes/rRMPolicyMemberList[@idx="4108"]{
"templateId": "
delete-cucp-rrmpolicy-nssai",
"model": "ran-network",
"requestType": "
delete-list-node",
"xpathTemplate": "/ran-network/NearRTRIC[@idNearRTRIC='\''{{idNearRTRIC}}'\'']/
GNBCUCPFunction[@idGNBCUCPFunction='\''{{idGNBCUCPFunction}}'\'']/NRCellCU[@idNRCellCU='\''{{idNRCellCU}}'\'']/attributes/RRMPolicyRatio[@id='\''{{id}}'\'']/attributes/rRMPolicyMemberList[@idx='\''{{idx}}'\'']",
"includeDescendants": true
}
ran-networkdelete-nssai-from-cucp-rrmpolicy{
"inputParameters": {
"idNearRTRIC": "11",
"
idGNBCUCPFunction":"cucpserver1",
"
idNRCellCU":"15289",
"
id":"55",
"
idx":"8"
}
}
7/api/sdnc-config-db/v4/gNBCUUP/ran-network/NearRTRIC[@idNearRTRIC="11"]/GNBCUCPFunctionGNBCUUPFunction[@idGNBCUCPFunction@idGNBCUUPFunction="32"]/NRCellCU[@idNRCellCU="151991111"]/attributes/pLMNInfoList[@mcc="310" and @mnc@mnc="410"]/sNSSAIList[@sNssai="41001-500004"]{
"templateId": "
delete-cuup-plmn-nssai",
"model": "ran-network",
"requestType": "
delete-list-node",
"xpathTemplate": "/ran-network/NearRTRIC[@idNearRTRIC='\''{{idNearRTRIC}}'\'']/
GNBCUUPFunction[@idGNBCUUPFunction='\''{{idGNBCUUPFunction}}'\'']/attributes/pLMNInfoList[@mcc='\''{{mcc}}'\'' and @mnc='\''{{mnc}}'\'']/sNSSAIList[@sNssai='\''{{sNSSAIList}}'\''ran-networkput-status-nrcellcu]",
"
includeDescendants":

terminateRANSlice

preload-terminateRANSlice

View file
namepreload-terminateRANSlice.json
height250

/nearrtric/{ranNFNSSIId}//attributes/ranNFNSSIIdList/element[text()="ac8ca1a9-e1ec-4480-8720-c74e92566885"]/ancestor::NearRTRICgetnearrtricbyrannfnssiquerycpspathrANNFNSSIListtext()rANNFNSSIId/ancestor::NearRTRICgetnearrtricbyrannfnssi
"rANNFNSSIId": "4039ce18-7f8f-44d7-9822-6cb6cb7227d4"
}
}2/plmn/{sliceProfileId}}//attributes/sliceProfilesList[@sliceProfileId="314aab80-1754-446c-bfd9-6aae5b1ae348"]/ancestor::NearRTRICgetplmnmccidbysliceprofileidquerycpspath/attributes/sliceProfilesList[@sliceProfileIdsliceProfileId}}'\'']/ancestor::NearRTRIC",
"includeDescendants": true,
"transformParam":"attributes,pLMNInfoList,mcc"
}4nearRTRICattributes/pLMNInfoList[@mcc="310" and @mnc="410"]/sNSSAIList[@sNssai="1000-1012nssaifromrtricattributes/pLMNInfoList[@mccmcc and @mncmncsNSSAIList@sNssaisNSSAIList

S.No

Config DB API

xPath

Template

Schema

id

JSON Payload

1true
}
ran-networkdelete-nssai-from-cuup-plmninfo{
"inputParameters": {
"idNearRTRIC": "11",
"idGNBCUUPFunction":"1111",
"mcc":"310",
"mnc":"410",
"sNSSAIList":"01-500004"
}
}
8/api/sdnc-config-db/v4/gNBCUUP/ran-network/NearRTRIC[@idNearRTRIC="11"]/GNBCUUPFunction[@idGNBCUUPFunction="1111"]/attributes/RRMPolicyRatio[@id="35"]/attributes/rRMPolicyMemberList[@idx="35"]{
"templateId": "
delete-cuup-rrm-nssai",
"model": "ran-network",
"requestType": "
delete-list-node",
"xpathTemplate": "/ran-network/NearRTRIC[@idNearRTRIC='\''{{idNearRTRIC}}'\'']/GNBCUUPFunction[@idGNBCUUPFunction='\''{{idGNBCUUPFunction}}'\'']/attributes/
RRMPolicyRatio[@id='\''{{id}}'\'']/attributes/rRMPolicyMemberList[@idx='\''{{idx}}'\'']",
"includeDescendants": true
}
ran-networkdelete-nssai-from-cuup-rrmpolicy

{
 "inputParameters": {

    "idNearRTRIC": "11", "idGNBCUUPFunction": "1111",    "id": "35",                                     "idx": "35"                                          }                                                          }

9/api/sdnc-config-db/v4/gNBDU/ran-network/NearRTRIC[@idNearRTRIC="11"]/GNBDUFunction[@idGNBDUFunction="110"]/NRCellDU[@idNRCellDU="15289"]/attributes/pLMNInfoList[@mcc="310" and @mnc="410"]/sNSSAIList[@sNssai="01-500004"]{
"templateId": "
delete-celldu-plmn-nssai",
"model": "ran-network",
"requestType": "
delete-list-node",
"xpathTemplate": "/
ran-network/NearRTRIC[@idNearRTRIC='\''{{ran-networkget-plmnmccid-by-sliceprofileid

{

"inputParameters": {
"sliceProfileId": "e75a8b68-0dee-4a9c-9a61-b0893e03ca45"
}
}

3/api/sdnc-config-db/v4/plmn/{sliceProfileId}//attributes/sliceProfilesList[@sliceProfileId="314aab80-1754-446c-bfd9-6aae5b1ae348"]/ancestor::NearRTRIC{
"templateId": "get-plmnmncid-by-sliceprofileid",
"model": "ran-network",
"requestType": "query-cps-path",
"xpathTemplate": "//attributes/sliceProfilesList[@sliceProfileId='\''{{sliceProfileId}}'\'']/ancestor::NearRTRIC",
"includeDescendants": true,
"transformParam":"attributes,pLMNInfoList,mnc"
}
ran-networkget-plmnmncid-by-sliceprofileid

{

"inputParameters": {
"sliceProfileId": "e75a8b68-0dee-4a9c-9a61-b0893e03ca45"
}
}

idNearRTRIC}}'\'']/GNBDUFunction[@idGNBDUFunction='\''{{idGNBDUFunction}}'\'']/NRCellDU[@idNRCellDU='\''{{idNRCellDU}}'\'']/attributes/pLMNInfoList[@mcc='\''{{mcc}}'\'' and @mnc='\''{{mnc}}'\'']/sNSSAIList[@sNssai='\''{{sNSSAIList}}'\'']",
"includeDescendants": true
}
ran-networkdelete-nssai-from-du-plmninfo{
"inputParameters": {
"idNearRTRIC": "11",
"idGNBDUFunction":"110",
"idNRCellDU":"15289",
"mcc":"310",
"mnc":"410",
"sNSSAIList":"01-500004"
}
}
10/api/sdnc-config-db/v4/gNBDU/ran-network/NearRTRIC[@idNearRTRIC="11"]/GNBDUFunction[@idGNBDUFunction="110"]/NRCellDU[@idNRCellDU="15289"]/attributes/RRMPolicyRatio[@id="34"]/attributes/rRMPolicyMemberList[@idx="6"]{
"templateId": "delete-
celldu-rrm-nssai",
"model": "ran-network",
"requestType": "delete-list-node",
"xpathTemplate": "/ran-network/NearRTRIC[@idNearRTRIC='\''{{idNearRTRIC}}'\'']/
GNBDUFunction[@idGNBDUFunction='\''{{idGNBDUFunction}}'\'']/NRCellDU[@idNRCellDU='\''{{idNRCellDU}}'\'']/attributes/RRMPolicyRatio[@id='\''{{id}}'\'']/attributes/rRMPolicyMemberList[@idx='\''{{idx}}'\'']",
"includeDescendants": true
}
ran-networkdelete-nssai-from-du-rtricrrmpolicy{
"inputParameters": {
"idNearRTRIC": "11",
"idGNBDUFunction":"110",
"mccidNRCellDU":"31015289",
"mncid":"41034",
"sNSSAIListidx":"1000-10126"
}
}
5
/api/sdnc-config-db/v4/gNBCUCP11Delete RRMPolicyRatio - NRCellCU/ran-network/NearRTRIC[@idNearRTRIC="11"'\''{{idNearRTRIC}}'\'']/GNBCUCPFunction[@idGNBCUCPFunction="cucpserver1"'\''{{idGNBCUCPFunction}}'\'']/NRCellCU[@idNRCellCU='\''{{idNRCellCU}}'\'']/attributes/RRMPolicyRatio[@id="15289"]/attributes/pLMNInfoList[@mcc="310" and @mnc="410"]/sNSSAIList[@sNssai=01-500004"]'\''{{id}}'\'']/attributescurl -k -H "Content-Type: application/json"  --request POST 'http://10.31.4.15:8080/templates' --data-raw '{
"templateId": "delete-nssai-from-cucp-plmninfonrcellcu-rrmpolicyratio",
"model": "ran-network",
"requestType": "delete-list-node",
"xpathTemplate": "/ran-network/NearRTRIC[@idNearRTRIC='\''{{idNearRTRIC}}'\'']/GNBCUCPFunction[@idGNBCUCPFunction='\''{{idGNBCUCPFunction}}'\'']/NRCellCU[@idNRCellCU='\''{{idNRCellCU}}'\'']/attributes/pLMNInfoListRRMPolicyRatio[@mcc@id='\''{{mcc}}'\'' and @mnc='\''{{mnc}}'\'']/sNSSAIList[@sNssai='\''{{sNSSAIListid}}'\'']",
"includeDescendants": true/attributes"
}'
ran-networkdelete-nssai-from-cucp-plmninfo
 {
     "inputParameters": {
         "idNearRTRIC": "11",
         "idGNBCUCPFunction": "cucpserver1",
         "idNRCellCU": "15289",
         "mccid": "310",
"mnc":"410",
"sNSSAIList":"01-500004"
}
}
6/api/sdnc-config-db/v4/gNBCUCPNRCellCU-6b0dd2be-6c51-4fab-b777-8c9513f3c019-101"
     }
 }
12Delete RRMPolicyRatio - CUUP/ran-network/NearRTRIC[@idNearRTRIC="11"'\''{{idNearRTRIC}}'\'']/GNBCUCPFunctionGNBCUUPFunction[@idGNBCUCPFunction="cucpserver1"]/NRCellCU[@idNRCellCU="15289"]/attributes/RRMPolicyRatio[@id="55"]/attributes/rRMPolicyMemberList[@idx="8"]@idGNBCUUPFunction='\''{{idGNBCUUPFunction}}'\'']/attributes/RRMPolicyRatio[@id='\''{{id}}'\'']/attributescurl -k -H "Content-Type: application/json"  --request POST 'http://10.31.4.15:8080/templates' --data-raw '{
"templateId": "delete-nssai-from-cucp-rrmpolicycuup-rrmpolicyratio",
"model": "ran-network",
"requestType": "delete-list-node",
"xpathTemplate": "/ran-network/NearRTRIC[@idNearRTRIC='\''{{idNearRTRIC}}'\'']/GNBCUCPFunctionGNBCUUPFunction[@idGNBCUCPFunction@idGNBCUUPFunction='\''{{idGNBCUCPFunction}}'\'']/NRCellCU[@idNRCellCU='\''{{idNRCellCUidGNBCUUPFunction}}'\'']/attributes/RRMPolicyRatio[@id='\''{{id}}'\'']/attributes/rRMPolicyMemberList[@idx='\''{{idx}}'\'']",
"includeDescendants": true
}
ran-networkdelete-nssai-from-cucp-rrmpolicy{
'
ran-network
 {
     "inputParameters": {
         "idNearRTRIC": "11",
         "idGNBCUCPFunction": "cucpserver1",
         "idNRCellCU": "1528915176",
         "id": "55",
"idx":"8"
}
}
7/api/sdnc-config-db/v4/gNBCUUP/ran-network/NearRTRIC[@idNearRTRIC="11"]/GNBCUUPFunction[@idGNBCUUPFunction="1111"]/attributes/pLMNInfoList[@mcc="310" and @mnc="410"]/sNSSAIList[@sNssai="01-500004"]NRCellCU-6b0dd2be-6c51-4fab-b777-8c9513f3c019-202"
     }
 }
13Delete RRMPolicyRatio - NRCellDU/ran-network/NearRTRIC[@idNearRTRIC='\''{{idNearRTRIC}}'\'']/GNBDUFunction[@idGNBDUFunction='\''{{idGNBDUFunction}}'\'']/NRCellDU[@idNRCellDU='\''{{idNRCellDU}}'\'']/attributes/RRMPolicyRatio[@id='\''{{id}}'\'']/attributescurl -k -H "Content-Type: application/json"  --request POST 'http://10.31.4.15:8080/templates' --data-raw '{
"templateId": "delete-nssai-from-cuup-plmninfonrcelldu-rrmpolicyratio",
"model": "ran-network",
"requestType": "delete-list-node",
"xpathTemplate": "/ran-network/NearRTRIC[@idNearRTRIC='\''{{idNearRTRIC}}'\'']/GNBCUUPFunctionGNBDUFunction[@idGNBCUUPFunction@idGNBDUFunction='\''{{idGNBCUUPFunctionidGNBDUFunction}}'\'']/attributes/pLMNInfoListNRCellDU[@mcc@idNRCellDU='\''{{mcc}}'\'' and @mnc='\''{{mncidNRCellDU}}'\'']/attributes/sNSSAIListRRMPolicyRatio[@sNssai@id='\''{{sNSSAIListid}}'\'']",
"includeDescendants": true
}
ran-networkdelete-nssai-from-cuup-plmninfo/attributes"
}'
ran-network
{
    "inputParameters": {
        "idNearRTRIC": "11",
        "idGNBCUUPFunctionidGNBDUFunction": "1111220",
        "mccidNRCellDU": "31015175",
        "mncid": "410",
"sNSSAIList":"01-500004"
NRCellCU-515a1e39-8265-4369-b7a0-3999633ed06f-202"
    }
}
8
/api/sdnc-config-db/v4/gNBCUUP14Patch RRMPolicyRatio - NRCellCU/ran-network/NearRTRIC[@idNearRTRIC="11"]/GNBCUUPFunction[@idGNBCUUPFunction="1111"[@idNearRTRIC='\''{{idNearRTRIC}}'\'']/GNBCUCPFunction[@idGNBCUCPFunction='\''{{idGNBCUCPFunction}}'\'']/NRCellCU[@idNRCellCU='\''{{idNRCellCU}}'\'']/attributes/RRMPolicyRatio[@id="35"]/attributes/rRMPolicyMemberList[@idx="35"]'\''{{id}}'\'']curl -k -H "Content-Type: application/json"  --request POST 'http://localhost:8088/templates' --data-raw '{
"templateId": "deleteput-nssainrcellcu-fromrrm-cuup-rrmpolicypolicy",
"model": "ran-network",
"requestType": "delete-list-nodepatch",
"xpathTemplate": "/ran-network/NearRTRIC[@idNearRTRIC='\''{{idNearRTRIC}}'\'']/GNBCUUPFunctionGNBCUCPFunction[@idGNBCUUPFunction@idGNBCUCPFunction='\''{{idGNBCUUPFunctionidGNBCUCPFunction}}'\'']/attributes/RRMPolicyRatioNRCellCU[@id@idNRCellCU='\''{{ididNRCellCU}}'\'']/attributes/rRMPolicyMemberListRRMPolicyRatio[@idx@id='\''{{idxid}}'\'']",
"includeDescendants": true
}
ran-networkdelete-nssai-from-cuup-rrmpolicy

{
 "inputParameters": {    "idNearRTRIC": "11", "idGNBCUUPFunction": "1111",    "id": "35",                                     "idx": "35"                                          }                                                          }

9/api/sdnc-config-db/v4/gNBDU",
"includeDescendants": true
}'
ran-network

15Patch RRMPolicyRatio - CUUP/ran-network/NearRTRIC[@idNearRTRIC="11"'\''{{idNearRTRIC}}'\'']/GNBDUFunctionGNBCUUPFunction[@idGNBDUFunction="110"]/NRCellDU[@idNRCellDU="15289"]/attributes/pLMNInfoList[@mcc="310" and @mnc="410"]/sNSSAIList[@sNssai="01-500004"]@idGNBCUUPFunction='\''{{idGNBCUUPFunction}}'\'']/attributes/RRMPolicyRatio[@id='\''{{id}}'\'']curl -k -H "Content-Type: application/json"  --request POST 'http://localhost:8088/templates' --data-raw '{
"templateId": "deleteput-nssaicuup-fromrrm-du-plmninfopolicy",
"model": "ran-network",
"requestType": "delete-list-nodepatch",
"xpathTemplate": "/ran-network/NearRTRIC[@idNearRTRIC='\''{{idNearRTRIC}}'\'']/GNBDUFunction[@idGNBDUFunction='\''{{idGNBDUFunction}}'\'']/NRCellDU[@idNRCellDU='\''{{idNRCellDU}}'\'']/attributes/pLMNInfoList[@mcc/NearRTRIC[@idNearRTRIC='\''{{mccidNearRTRIC}}'\'' and @mnc]/GNBCUUPFunction[@idGNBCUUPFunction='\''{{mncidGNBCUUPFunction}}'\'']/attributes/sNSSAIListRRMPolicyRatio[@sNssai='\''{{sNSSAIList}}'\'']",
"includeDescendants": true
}
ran-networkdelete-nssai-from-du-plmninfo{
"inputParameters": {
"idNearRTRIC": "11",
"idGNBDUFunction":"110",
"idNRCellDU":"15289",
"mcc":"310",
"mnc":"410",
"sNSSAIList":"01-500004"
}
}
10/api/sdnc-config-db/v4/gNBDU@id='\''{{id}}'\'']",
"includeDescendants": true
}'
ran-network

16Patch RRMPolicyRatio - NRCellDU/ran-network/NearRTRIC[@idNearRTRIC="11"'\''{{idNearRTRIC}}'\'']/GNBDUFunction[@idGNBDUFunction="110"'\''{{idGNBDUFunction}}'\'']/NRCellDU[@idNRCellDU="15289"'\''{{idNRCellDU}}'\'']/attributes/RRMPolicyRatio[@id="34"]/attributes/rRMPolicyMemberList[@idx="6"]'\''{{id}}'\'']curl -k -H "Content-Type: application/json"  --request POST 'http://localhost:8088/templates' --data-raw '{
"templateId": "deleteput-nssainrcelldu-fromrrm-du-rrmpolicypolicy",
"model": "ran-network",
"requestType": "delete-list-nodepatch",
"xpathTemplate": "/ran-network/NearRTRIC[@idNearRTRIC='\''{{idNearRTRIC}}'\'']/GNBDUFunction[@idGNBDUFunction='\''{{idGNBDUFunction}}'\'']/NRCellDU[@idNRCellDU='\''{{idNRCellDU}}'\'']/attributes/RRMPolicyRatio[@id='\''{{ididNRCellDU}}'\'']/attributes/rRMPolicyMemberListRRMPolicyRatio[@idx@id='\''{{idxid}}'\'']",
"includeDescendants": true
}'
ran-networkdelete-nssai-from-du-rrmpolicy{
"inputParameters": {
"idNearRTRIC": "11",
"idGNBDUFunction":"110",
"idNRCellDU":"15289",
"id":"34",
"idx":"6"
}
}


1117/api/sdnc-config-db/v4/ranslice-details/ran-inventory/ran-slices[@rannfnssiid="ac8ca1a9-e1ec-4480-8720-c74e92566885"]{
"templateId": "delete-rannfnssi",
"model": "ran-inventory",
"requestType": "delete-list-node",
"xpathTemplate": "/ran-inventory/ran-slices[@rannfnssiid='\''{{rannfnssiid}}'\'']",
"includeDescendants": true
}
ran-networkdelete-rannfnssi{
"inputParameters": {
"rannfnssiid": "4039ce18-7f8f-44d7-9822-6cb6cb7227d4"
}
}
1218/api/sdnc-config-db/v4/ranslice-details//{rannfnssiid}/{sliceProfileId}/ran-inventory/ran-slices[@rannfnssiid="ac8ca1a9-e1ec-4480-8720-c74e92566885"]/sliceProfilesList[@sliceProfileId="314aab80-1754-446c-bfd9-6aae5b1ae348"]{
"templateId": "delete-slice-profile",
"model": "ran-inventory",
"requestType": "delete-list-node",
"xpathTemplate": "/ran-inventory/ran-slices[@rannfnssiid='\''{{rannfnssiid}}'\'']/sliceProfilesList[@sliceProfileId='\''{{sliceProfileId}}'\'']",
"includeDescendants": true
}
ran-networkdelete-slice-profile

{
"inputParameters": {
"rannfnssiid": "4039ce18-7f8f-44d7-9822-6cb6cb7227d4",

"sliceProfileId": "e75a8b68-0dee-4a9c-9a61-b0893e03ca45"
}
}

1319/api/sdnc-config-db/v4/ranslice-details/ran-inventory/ran-slices[@rannfnssiid="ac8ca1a9-e1ec-4480-8720-c74e92566885"]{
"templateId": "get-ran-slices",
"model": "ran-inventory",
"requestType": "get",
"xpathTemplate": "/ran-inventory/ran-slices[@rannfnssiid='\''{{rannfnssiid}}'\'']",
"includeDescendants": true,
"includeDescendants": true"transformParam":"ran-slices"
}
ran-networkget-ran-slices{
"inputParameters": {
"rannfnssiid": "4039ce18-7f8f-44d7-9822-6cb6cb7227d4"
}
}

...

Templates are not uploaded correctly and so their execution fail.

This can be due to a "bad json formattation" template 

...



Known issue about templates.

When you copy the templates into your  tools (Postman, Swagger) or just into a file, it may happen that unwanted characters are generated. That brings to a "bad json format" error and hence template execution fails

e.g. For patch-configData template you can notice that the xpathTemplate may have different unwanted characters such as " ''' " as in the first case or "' \''  " as in the second case here below shown

first case

Code Block
{
"templateId": "patch-configData",
"model": "ran-network",
"requestType": "patch",
"xpathTemplate": "/ran-network/NearRTRIC[@idNearRTRIC='''{{idNearRTRIC}}''']/attributes/pLMNInfoList[@mcc='''{{mcc}}''' and @mnc='''{{mnc}}''']/sNSSAIList[@sNssai='''{{sNssai}}''']",
"includeDescendants": true
}


orsecond case

true
Code Block
collapse
{
"templateId": "patch-configData",
"model": "ran-network",
"requestType": "patch",
"xpathTemplate": "/ran-network/NearRTRIC[@idNearRTRIC='\''{{idNearRTRIC}}'\'']/attributes/pLMNInfoList[@mcc='\''{{mcc}}'\'' and @mnc='\''{{mnc}}'\'']/sNSSAIList[@sNssai='\''{{sNssai}}'\'']",
"includeDescendants": true
}

This will raise an exception during its execution due to some special characthers into json template body (  in particular the '\' character ) .
It should be: 

...


...

The right xpathTemplate syntax should be the following (i.e. single " ' "):

Code Block
{
"templateId": "patch-configData",
"model": "ran-network",
"requestType": "patch",
"xpathTemplate": "/ran-network/NearRTRIC[@idNearRTRIC='{{idNearRTRIC}}']/attributes/pLMNInfoList[@mcc='{{mcc}}' and @mnc='{{mnc}}']/sNSSAIList[@sNssai='{{sNssai}}']",
"includeDescendants": true
}

...