.. SPDX-License-Identifier: CC-BY-4.0
.. Copyright (C) 2021 AT&T Intellectual Property. All rights reserved.
+===============
Developer Guide
===============
+.. image:: nf-oam-adopter-diagram.png
+ :alt: Diagram
+
Architecture design of FM / PM Adopter
+--------------------------------------
-.. image:: nf-oam-adopter-diagram.png
+Adapter has been design to provided common libraries that can be reused to generate application as per vendor needs.
+
+**Modules**
+
+- **o-ran-ves-adapter-api** module provides generated POJOS from VES 7.1 json Schema, together with VesEventNotifier interface.
+- **o-ran-ves-adapter-event-notifier** module provides VesEventNotifier service implementation, responsible of forward VES events to the VES Collector via REST.
+- **o-ran-ves-adapter-pm-manager** module is responsible of read and translate CSV PM files from devices end point, translate it to VES event formant, and forward it to VesEventNotifier.
+- **o-ran-ves-adapter-snmp-manager** module is responsible of listend for SNMP traps on UDP port (Default 162), translate it to VES event formant, and forward it to VesEventNotifier.
+- **o-ran-ves-adapter-app** module contains the application, is responsible to assemble the whole set of libraries.
+- **ves-nf-oam-adopter-pm-sb-rest-client** module contains mock vendor specific PM REST Client implementation (ves-nf-oam-adopter-mock app).
+
+.. image:: structureDiagram.png
:alt: Diagram
\ No newline at end of file
==============
.. toctree::
- :maxdepth: 2
+ :maxdepth: 1
:caption: Contents:
overview.rst
.. SPDX-License-Identifier: CC-BY-4.0
.. Copyright (C) 2021 AT&T Intellectual Property. All rights reserved.
-NF OAM Adopter Overview
-=======================
+Overview
+========
NF OAM Adopter provides FM and PM VES event notification capabilities.
.. SPDX-License-Identifier: CC-BY-4.0
.. Copyright (C) 2021 AT&T Intellectual Property. All rights reserved.
+===============
PM REST Manager
-###############
+===============
PM REST Manager library follows `VES Event Listener 7.1 <https://docs.onap.org/projects/onap-vnfrqts-requirements/en/latest/Chapter8/ves7_1spec.html#>`_
-.. toctree::
- :maxdepth: 3
- :caption: Contents:
-
PM VES Message
-==============
+--------------
-Datatype: commonEventHeader
-~~~~~~~~~~~~~~~~~~~~~~~~~~~
+**Datatype: commonEventHeader**
.. list-table::
:header-rows: 1
- none
-Datatype: measurementFields
-~~~~~~~~~~~~~~~~~~~~~~~~~~~
+**Datatype: measurementFields**
.. list-table::
:header-rows: 1
- none
REST PM Configuration
-=====================
+---------------------
-Rest Adapter configuration
-~~~~~~~~~~~~~~~~~~~~~~~~~~
+**Rest Adapter configuration**
Configuration file **application.yml** contains global definitions required to be consumed by PM REST adapters services.
- **synchronization-time-frequency** Defines the time for execution of pull of PM files and forwarding as VES Message
- **mapping-config-path** Defines the path where mapping configuration file is located
-Rest SB Client Adapter configuration
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+**Rest SB Client Adapter configuration**
- **ran-token-endpoint** Defines rand endpoint from where token will be obtained
- **ran-pm-endpoint:** Defines rand endpoint from where ZIP with PM files will be GET.
:language: YAML
Mapping Configuration
-~~~~~~~~~~~~~~~~~~~~~
+---------------------
Configuration file **pm-ves-message-mapping.yaml** contains all definitions required to define the mapping
from ZIP file with collection of csv files information to VES Message format
:language: YAML
PM Adapter Configuration
-========================
+------------------------
PM Adapters can be instantiated at runtime
-Create a PM Adapter
-~~~~~~~~~~~~~~~~~~~
+**Create a PM Adapter**
**POST** ``https://<SERVICE_IP>:<SERVICE_PORT>/adapters/adapter``
.. literalinclude:: create-adapter.json
:language: JSON
-Get PM Adapters
-~~~~~~~~~~~~~~~
+**Get PM Adapters**
**GET** ``https://<SERVICE_IP>:<SERVICE_PORT>/adapters/``
:language: JSON
-Delete PM Adapter
-~~~~~~~~~~~~~~~~~
+**Delete PM Adapter**
**DELETE** ``https://<SERVICE_IP>:<SERVICE_PORT>/adapters/adapter/10.53.40.50``
.. SPDX-License-Identifier: CC-BY-4.0
.. Copyright (C) 2021 AT&T Intellectual Property. All rights reserved.
+================
SNMP2VES Manager
-################
+================
SNMP Manager library follows `VES Event Listener 7.1 <https://docs.onap.org/projects/onap-vnfrqts-requirements/en/latest/Chapter8/ves7_1spec.html#>`_
-.. toctree::
- :maxdepth: 3
- :caption: Contents:
-
FM VES Message
--------------
-Datatype: commonEventHeader
-~~~~~~~~~~~~~~~~~~~~~~~~~~~
+**Datatype: commonEventHeader**
.. list-table::
:header-rows: 1
- no
- none
-Datatype: faultFields
-~~~~~~~~~~~~~~~~~~~~~
+**Datatype: faultFields**
.. list-table::
:header-rows: 1
.. SPDX-License-Identifier: CC-BY-4.0
.. Copyright (C) 2021 AT&T Intellectual Property. All rights reserved.
-NF OAM Adopter User Guide
-=========================
+User Guide
+==========
.. toctree::
- :maxdepth: 2
+ :maxdepth: 1
:caption: Contents:
./snmp/index.rst
<artifactId>ves-nf-oam-adopter-pm-sb-rest-client</artifactId>
<version>${project.version}</version>
</dependency>
+ <dependency>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>ves-nf-oam-adopter-app</artifactId>
+ <version>${project.version}</version>
+ </dependency>
</dependencies>
</dependencyManagement>
</project>
\ No newline at end of file