blob: f693ef769abe028cdd419252ff1636aba99a914c [file] [log] [blame]
pwielebs3d7081f2018-09-13 13:49:33 +02001==============================
2PRH (PNF Registration Handler)
3==============================
4
5:Date: 2018-09-13
6
7.. contents::
8 :depth: 3
9..
10
11Overview
12========
13
14Physical Network Function Registration Handler is responsible for registration of PNF (Physical Network Function) to
15ONAP (Open Network Automation Platform) in plug and play manner.
16
17Introduction
18============
19
20PRH is delivered as one **Docker container** which hosts application server and can be started by `docker-compose`.
21
22Functionality
23=============
24.. image:: ../images/prhAlgo.png
25
26
27Paths
28=====
29
30GET /events/unauthenticated.VES_PNFREG_OUTPUT
31-----------------------------------------------
32
33Description
34~~~~~~~~~~~
35
36Reads PNF registration fromD DMaaP (Data Movement as a Platform)
37
38
39Responses
40~~~~~~~~~
41
42+-----------+-------------------------------------------+
43| HTTP Code | Description |
44+===========+===========================================+
45| **200** | successful response |
46+-----------+-------------------------------------------+
47
48
49PATCH /aai/v12/network/pnfs/{pnf-name}
50--------------------------------------
51
52Description
53~~~~~~~~~~~
54
55Update AAI (Active and Available Inventory) PNF's specific entries:
56 - ipv4 to ipaddress-v4-oam
57 - ipv6 to ipaddress-v6-oam
58
59Parameters
60~~~~~~~~~~
61
62+----------+---------------+---------------------------------+------------------+
63| Type | Name | Description | Schema |
64+==========+===============+=================================+==================+
65| **Path** | | **pnf-name**| Name of the PNF. | string (text) |
66| | | *required* | | |
67+----------+---------------+---------------------------------+------------------+
68| **Body** | **patchbody** | Required patch body. | |
69+----------+---------------+---------------------------------+------------------+
70
71
72Responses
73~~~~~~~~~
74
75+-----------+-------------------------------------------+
76| HTTP Code | Description |
77+===========+===========================================+
78| **200** | successful response |
79+-----------+-------------------------------------------+
80
81
82POST /events/unauthenticated.PNF_READY
83--------------------------------------
84
85Description
86~~~~~~~~~~~
87
88Publish PNF_READY to DMaaP and set:
89 - pnf-id to correlationID
90 - ipv4 to ipaddress-v4-oam
91 - ipv6 to ipaddress-v6-oam
92
93Parameters
94~~~~~~~~~~
95
96+----------+----------------+---------------------------------+------------------+
97| Type | Name | Description | Schema |
98+==========+================+=================================+==================+
99| **Body** | | **postbody** | Required patch body. | `hydratorappput |
100| | | *required* | | <#_hydratorapppu |
101| | | | t>`__ |
102+----------+----------------+---------------------------------+------------------+
103
104
105Responses
106~~~~~~~~~
107
108+-----------+-------------------------------------------+
109| HTTP Code | Description |
110+===========+===========================================+
111| **200** | successful response |
112+-----------+-------------------------------------------+
113
114Compiling PRH
115=============
116
117Whole project (top level of PRH directory) and each module (sub module directory) can be compiled using
118`mvn clean install` command.
119
120Main API Endpoints
121==================
122
123Running with dev-mode of PRH
124 - Heartbeat: **http://<container_address>:8100/heartbeat** or **https://<container_address>:8443/heartbeat**
125 - Start PRH: **http://<container_address>:8100/start** or **https://<container_address>:8433/start**
126 - Stop PRH: **http://<container_address>:8100/stopPrh** or **https://<container_address>:8433/stopPrh**
127
128Maven GroupId:
129==============
130
131org.onap.dcaegen2.services
132
133Maven Parent ArtifactId:
134========================
135
136dcae-services
137
138Maven Children Artifacts:
139=========================
140
1411. prh-app-server: Pnf Registration Handler (PRH) server
1422. prh-aai-client: Contains implementation of AAI client
1433. prh-dmaap-client: Contains implementation of DmaaP client
1444. prh-commons: Common code for whole prh modules
145
146