Versions Compared

Key

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

...

Code Block
languagebash
titleSubscription Create Event (Schema 1)
{
  "version": "1.0",
  "eventType": "subscriptionCreated",
  "event": {
    "subscription": {
      "clientID": "SCO-9989752",
      "name": "cm-subscription-001"
    },
    "dataType": {
      "dataspace": "ALL",
      "dataCategory": "CM",
      "dataProvider": "CM-SERVICE"
      "schemaName": "org.onap.ncmp:cm-network-avc-event.rfc8641"
      "schemaVersion": "1.0"
    },
    "predicates": {
                   “targets” :  [“sdsd”“cmHandle1”, “slada”“cmHandle2”, “ccde3”“cmHandle3”]     #  cmhandle targets
        "datastore": “passthrough-operational",
        "datastore-xpath-filter": "//_3gpp-nr-nrm-gnbdufunction:GNBDUFunction/ 
             _3gpp-nr-nrm-nrcelldu:NRCellDU/ | //_3gpp-nr-nrm-gnbcuupfunction:GNBCUUPFunction// |
            //_3gpp-nr-nrm-gnbcucpfunction:GNBCUCPFunction/_3gpp-nr-nrm-nrcelldu:NRCellCU// |
            //_3gpp-nr-nrm-nrsectorcarrier:NRSectorCarrier//”  
 
    }
}

...

NCMP to DMI-Plugins

Luke Gleeson 


Code Block
languagetext
titlePersisted Subscription Information (Schema 2)
{
	"clientID": "SCO-9989752",
    "subscriptionName": "cm-subscription-001"
	"isTagged" : "true" #optional
	"predicates": {
		"targetCmHandles":[
			{"cmHandleId":"cmHandle1", "status":"pending"},
			{"cmHandleId":"cmHandle2", "status":"pending"},
			{"cmHandleId":"cmHandle3", "status":"pending"}
		]
		"datastore":"passthrough-operational"
	}
	
}




// Show input and output schema

...

Code Block
languagetext
titleInput Schema (Schema 3) - Consumed
{
   "version":"1.0",
   "eventType":"CREATE",
   "event":{
      "subscription":{
         "clientID":"SCO-9989752",
         "name":"cm-subscription-001",
         "isTagged":false
      },
      "dataType":{
         "dataspace":"ALL",
         "dataCategory":"CM",
         "dataProvider":"CM-SERVICE",
         "schemaName":"org.onap.ncmp:cm-network-avc-event.rfc8641",
         "schemaVersion":"1.0"
      },
      "predicates":{
         "targets":[
                  "CMHandle1",
            "CMHandle2",
            "CMHandle3"
         
			{"cmHandle1": ["shape":"circle"]},
			{"cmHandle2": ["shape":"square"]},
			{"cmHandle3": ["shape":"traingle"]}          
		],
         "datastore":"passthrough-running",
         "xpath-filter":"//_3gpp-nr-nrm-gnbdufunction:GNBDUFunction/_3gpp-nr-nrm-nrcelldu:NRCellDU/ | //_3gpp-nr-nrm-gnbcuupfunction:GNBCUUPFunction// | //_3gpp-nr-nrm-gnbcucpfunction:GNBCUCPFunction/_3gpp-nr-nrm-nrcelldu:NRCellCU// | //_3gpp-nr-nrm-nrsectorcarrier:NRSectorCarrier//"
      }
   }
}

...

Code Block
languagetext
{
  "version": "1.0",
  "eventType": "subscriptionCreatedOutcome", # or subscriptionCreatedPartialOutcome
  "event": {
    "subscription": {
      "clientID": "SCO-9989752",
      "name": "cm-subscription-001"
    },
    "predicates": {
                   “rejectedTargets” :  [“cmhandle1”, “cmhandle2”, “cmhandle3”]  ,
                   “acceptedTargets” :  [“cmhandle1”, “cmhandle2”, “cmhandle3”] ,
                   “pendingTargets” :   [“cmhandle4”, “cmhandle5”, “cmhandle6”],  
	}
}

Open Question: what headers do we need?

...