.. This work is licensed under a Creative Commons Attribution 4.0 International License.
.. http://creativecommons.org/licenses/by/4.0
.. Copyright 2018-2019 Tech Mahindra Ltd.
Mapping File
============
Mapping file is needed by Universal VES Adapter to convert the telemetry data into the VES format.
The Adapter uses Smooks Framework to do the data format conversion by using the mapping files.
| To know more about smooks framework check the following link:
| http://www.smooks.org/guide
SNMP Collector Default Mapping File
===================================
Following is the default snmp mapping file which is used when no mapping file is found while processing event from SNMP Trap Collector.
.. code-block:: xml
'3.0'
'FaultField'
'XXXX'
'VESMapper'
org.onap.dcaegen2.ves.domain.ves54.CommonEventHeader.Domain.FAULT
commonEventHeader.domain
org.onap.dcaegen2.ves.domain.ves54.CommonEventHeader.Priority.NORMAL
'VesAdapter'
'SNMP Fault'
org.onap.dcaegen2.ves.domain.ves54.FaultFields.VfStatus.ACTIVE
org.onap.dcaegen2.ves.domain.ves54.FaultFields.EventSeverity.MINOR
RestConf Collector Default Mapping File
=======================================
Following is the default RestConf collector mapping file which is used when no mapping file is found while processing notification from RestConf Collector.
.. code-block:: xml
org.onap.dcaegen2.ves.domain.ves70.CommonEventHeader.Version._4_0_1
'pnfRegistration'
org.onap.dcaegen2.ves.domain.ves70.CommonEventHeader.VesEventListenerVersion._7_0_1
'registration_'+commonEventHeader.ts1
'VESMapper'
org.onap.dcaegen2.ves.domain.ves70.CommonEventHeader.Domain.PNF_REGISTRATION
commonEventHeader.domain
commonEventHeader.ts1
commonEventHeader.ts1
org.onap.dcaegen2.ves.domain.ves70.CommonEventHeader.Priority.NORMAL
pnfRegistrationFields.vendorName+'-'+pnfRegistrationFields.serialNumber
org.onap.dcaegen2.ves.domain.ves70.PnfRegistrationFields.PnfRegistrationFieldsVersion._2_0