Add Dmaap client feature documentation 80/95680/2
authormanuedelf <emmanuelle.delfour@orange.com>
Tue, 6 Apr 2021 10:34:16 +0000 (12:34 +0200)
committermanuedelf <emmanuelle.delfour@orange.com>
Tue, 6 Apr 2021 12:33:32 +0000 (14:33 +0200)
JIRA: TRNSPRTPCE-406
Signed-off-by: manuedelf <emmanuelle.delfour@orange.com>
Change-Id: Ic9aa1cd794a562dca0f8a534e10b87c5a8b6190f

docs/developer-guide.rst
docs/user-guide.rst

index d818e080680acc7cb0c9d5a6b4ed1819f4e7bce8..923b9d7bcbab4f3d550de5786a2f2303d0a5fca8 100644 (file)
@@ -1439,6 +1439,15 @@ be connected together, through a point-to-point 100GE service running over a wav
     port is connected to Add/Drop nodes of the ROADM infrastructure are retrieved in order to
     abstract only relevant information.
 
+odl-transportpce-dmaap-client
+-----------------------------
+
+This feature allows TransportPCE application to send notifications on ONAP Dmaap Message router
+following service request results.
+This feature listens on NBI notifications and sends the PublishNotificationService content to
+Dmaap on the topic "unauthenticated.TPCE" through a POST request on /events/unauthenticated.TPCE
+It uses Jackson to serialize the notification to JSON and jersey client to send the POST request.
+
 Help
 ----
 
index a68f749a4d4c85654b6c03113a3931c0979ee4e4..34b0b38cbd8c32b5454d3477e1ffa00115d9163e 100644 (file)
@@ -55,6 +55,11 @@ TransportPCE User-Facing Features
    -  This feature is considered experimental. It provides transportPCE with an external connector to
       a MariaDB inventory currently limited to OpenROADM 1.2.1 devices.
 
+-  **feature odl-transportpce-dmaap-client**
+
+   -  This feature is considered experimental. It provides a REST client in order to send TPCE notifications
+      to ONAP Dmaap Message router.
+
 How To Start
 ------------
 
@@ -92,4 +97,21 @@ if you need the inventory external connector support limited to 1.2.1 OpenROADM
 
    feature:install odl-transportpce-inventory
 
+if you need the Dmaap connector support, before running Opendaylight, set DMAAP_BASE_URL as environment variable.
+For example, if the base url of your Dmaap server is "https://dmaap-mr:30226", then::
+
+    export DMAAP_BASE_URL=https://dmaap-mr:30226
+
+if your Dmaap server provides https connection through a self-signed certificate, do not forget to add the certificate
+to the JAVA truststore::
+
+    echo -n | openssl s_client -showcerts -connect dmaap-mr:30226 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > /tmp/dmaap.crt
+    keytool -import -v -trustcacerts -alias dmaap -file /tmp/dmaap.crt -keystore /etc/ssl/certs/java/cacerts -keypass changeit -storepass changeit -noprompt
+
+where dmaap-mr:30226 is the url of your Dmaap server.
+
+Then run in karaf::
+
+   feature:install odl-transportpce-dmaap-client
+
 For a more detailed overview of the TransportPCE, see the :ref:`transportpce-dev-guide`.