...
CL Event Structure (From DCAE mS to Policy)
Fields | Required | Description |
AAI | Yes | Contains the A&AI Node-Attribute list; dependent on successful enrichment of VNF/VM type |
closedLoopAlarmEnd | Yes - only for ABATED | When the alarm was cleared. This field need only be present in the ABATED message. |
closedLoopAlarmStart | Yes | When the alarm was first detected. |
closedLoopControlName | Yes | This is the unique ID for the Control Loop. It is created by the CLAMP platform during Control Loop design. The DCAE Micro service that publishes this event structure MUST include this ID. |
closedLoopEventClient | No | For monitoring/logging/auditing purposes, if there is an instance ID of the DCAE micro service this field should be populated with it. |
closedLoopEventStatus | Yes | This is the status of the closedLoopControlName/requestID pair. It can either ONSET or ABATED. |
from | Yes | The ONAP platform component publishing this message. If DCAE, then it should be 'DCAE'. |
policyName | The name of the Policy driving the DCAE micro service. Should be a part of the configuration policy setup by CLAMP and passed by DCAE controller | |
policyScope | The scope of the Policy driving the DCAE micro service. Should be a part of the configuration policy setup by CLAMP and passed by DCAE controller | |
policyVersion | The version of the Policy driving the DCAE Micro service. Should be a part of the configuration policy setup by CLAMP and passed by DCAE controller | |
requestID | Yes | For the control loop, when an instance of the Control Loop occurs, this unique ID must be created. The same ID must be forwarded for both the ONSET and the ABATED control loop messages. |
target | Yes | This is the name of the field within the A&AI sub-tag that indicates the actual entity Node details. There should be a matching node field within the A&AI subtag holding this value. |
target_type | Yes | The type of the target: VM or VNF. Future PNF |
version | Yes | The version of the Control Loop event message. Should be '1.0.2' |
A&AI Enrichment APIs
...
VNF
Query generic-vnf object based on vnf-name (maps to event.commonEventHeader.sourceName in VES payload)
https://{aai}/aai/v11/network/generic-vnfs/generic-vnf?vnf-name={vnf-name}
Example : https://aai.onap:8443/aai/v11/network/generic-vnfs/generic-vnf?vnf-name=demofwl01fwl
Object Returned: v11-generic-vnf-object.docx
...
VM
Requires two step A&AI query
...
Object Returned: v11-vserver-object.docx
Based on the query parameters, the A&AI returned object can be received as json or xml. For JSON object – include ‘-H "Accept: application/json"’ in the request (default response is xml)
...
Code Block | ||
---|---|---|
| ||
"target_type":"VNF", "target":"generic-vnf.vnf-idname", //modify to vnf-name instead? "AAI": { "generic-vnf.in-maint": value, "generic-vnf.is-closed-loop-disabled": value, "generic-vnf.orchestration-status": value, "generic-vnf.prov-status": value, "generic-vnf.resource-version": value, "generic-vnf.service-id": value, "generic-vnf.vnf-id": value, "generic-vnf.vnf-name": value, "generic-vnf.vnf-type": value } |
...
Code Block | ||
---|---|---|
| ||
"target_type":"VNF", "target":"generic-vnf.vnf-idname", //modify to vnf-name instead? "AAI": { "generic-vnf.vnf-idname":$event.commonEventHeader.sourceName } |
...
Code Block | ||||
---|---|---|---|---|
| ||||
{ "closedLoopEventClient":"DCAE_INSTANCE_ID.dcae-tca", "policyVersion":"1.0.0.5", "policyName":"vFirewall", "policyScope":"resource=SampleResource,service=SampleService,type=SampleType,closedLoopControlName=SampleClosedLoop", "target_type":"VNF", "AAI":{ "generic-vnf.in-maint":false, "generic-vnf.is-closed-loop-disabled":false, "generic-vnf.orchestration-status":"Created", "generic-vnf.prov-status":"PREPROV", "generic-vnf.resource-version":"value1504896046185", "generic-vnf.service-id":"e8cb8968-5411-478b-906a-f28747de72cd", "generic-vnf.vnf-id":"63b31229-9a3a-444f-9159-04ce2dca3be9", "generic-vnf.vnf-name":"vCPEInfraVNF13", "generic-vnf.vnf-type":"vCPEInfraService10/vCPEInfraService10 0" }, "closedLoopAlarmStart":1484855291527925, "closedLoopEventStatus":"ONSET", "closedLoopControlName":"CL-FRWL-LOW-TRAFFIC-SIG-d925ed73-8231-4d02-9545-db4e101f88f8", "version":"1.0.2", "target":"generic-vnf.vnf-id", "requestID":"8c1b8bd8-06f7-493f-8ed7-daaa4cc481bc", "from":"DCAE" } |
...
DCAE TCA design for Enrichment
Besides configuration for TCA processing, TCA configuration model will be enhanced to support following new configuration
...
- Use configuration model identified “controlLoopSchemaType” to set CL event (structure as we have currently)
Reference
A&AI - https://wikilf-onap.onapatlassian.orgnet/wiki/pages/viewpage.action?pageId=1359879316242125