config for 5.0.0 policy-handler new PDP API 22/83722/1
authorAlex Shatov <alexs@att.com>
Fri, 29 Mar 2019 12:42:47 +0000 (08:42 -0400)
committerAlex Shatov <alexs@att.com>
Fri, 29 Mar 2019 12:42:47 +0000 (08:42 -0400)
- in R4 Dublin the policy-engine introduced a totally new API
- policy-handler now has a startup option to either use
  = the new PDP API (default)
  = or the old PDP API that was created-updated before the end of 2018
- to use the old PDP API requires changing either the etc/config.json
  or setting up a non-empty env var PDP_API_VERSION on startup:
    export PDP_API_VERSION=2018
    docker run ... -e PDP_API_VERSION ...

Change-Id: Idd6973cf6cc3e76d2969332ff96e5e9e962ece1a
Signed-off-by: Alex Shatov <alexs@att.com>
Issue-ID: DCAEGEN2-1128

bootstrap/README-docker.md
heat/register.sh

index d60afe2..7e3dedc 100644 (file)
@@ -107,6 +107,7 @@ application_config:
     #    related to policy-engine itself.
     policy_engine :
         url : "https://policy-engine.onap.org:8081"
+        path_decision : "/decision/v1"
         path_pdp : "/pdp/"
         path_api : "/pdp/api/"
         headers :
index 6843fa4..34c1505 100755 (executable)
@@ -238,6 +238,7 @@ REGKV='
       "interval": 600
     },
     "policy_engine": {
+      "path_decision": "/decision/v1",
       "path_api": "/pdp/api/",
       "path_notifications" : "/pdp/notifications",
       "tls_ca_mode" : "cert_directory",
@@ -249,11 +250,8 @@ REGKV='
         "Accept": "application/json",
         "Authorization": "Basic dGVzdHBkcDphbHBoYTEyMw=="
       },
-      "path_pdp": "/pdp/",
       "url": "https://{{ policy_ip_addr }}:8081",
-      "target_entity": "policy_engine",
-      "tls_wss_ca_mode": "do_not_verify", 
-      "tls_ca_mode": "do_not_verify"
+      "target_entity": "policy_engine"
     }
   }
 }'
@@ -527,12 +525,12 @@ curl -v -X PUT -H "Content-Type: application/json" \
 
 
 
-# hv-ves collector 
+# hv-ves collector
 SERVICENAME="${SRVCNAME_STATIC_HVVES}"
-REGKV='{ 
-  "dmaap.kafkaBootstrapServers": "{{ mr_ip_addr }}:9092", 
+REGKV='{
+  "dmaap.kafkaBootstrapServers": "{{ mr_ip_addr }}:9092",
   "collector.routing": {
-    "fromDomain": "HVMEAS", 
+    "fromDomain": "HVMEAS",
     "toTopic": "HV_VES_MEASUREMENTS"
   }
 }'