Change Policy notification in son-handler to align with policy component updates 91/106591/1
authorNiranjana <niranjana.y60@wipro.com>
Fri, 24 Apr 2020 14:24:02 +0000 (19:54 +0530)
committerNiranjana <niranjana.y60@wipro.com>
Fri, 24 Apr 2020 14:24:02 +0000 (19:54 +0530)
Issue-ID: DCAEGEN2-2216
Signed-off-by: Niranjana <niranjana.y60@wipro.com>
Change-Id: I6361cc68c20ae601ad89754eab8633985b794244

pom.xml
src/main/java/org/onap/dcaegen2/services/sonhms/model/PolicyNotification.java
src/test/resources/policy_notification.json
version.properties

diff --git a/pom.xml b/pom.xml
index 9430cc0..03694cf 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -27,7 +27,7 @@
        <groupId>org.onap.dcaegen2.services.son-handler</groupId>
        <artifactId>son-handler</artifactId>
        <name>dcaegen2-services-son-handler</name>
-       <version>2.0.1-SNAPSHOT</version>
+       <version>2.0.2-SNAPSHOT</version>
 
        <!--parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId>
                <version>2.0.4.RELEASE</version> </parent -->
index 972b1f4..2cb1335 100644 (file)
@@ -74,12 +74,12 @@ public class PolicyNotification {
         this.from = "PCIMS";
         this.version = "1.0.2";
         this.action = action;
-        this.target = "generic-vnf.vnf-id";
+        this.target = "pnf.pnf-name";
         this.targetType = "PNF";
         this.aai = new HashMap<>();
         aai.put("generic-vnf.is-closed-loop-disabled", "false");
         aai.put("generic-vnf.prov-status", "ACTIVE");
-        aai.put("generic-vnf.vnf-id", pnfName);
+        aai.put("pnf.pnf-name", pnfName);
     }
 
     public long getClosedLoopAlarmStart() {
index 767c024..289afeb 100644 (file)
@@ -4,7 +4,7 @@
        "closedLoopEventClient": "microservice.PCI",
        "closedLoopEventStatus": "ONSET",
        "target_type": "PNF",
-       "target": "generic-vnf.vnf-id",
+       "target": "pnf.pnf-name",
        "requestID": "a4130fd5-2291-4a83-8992-04e4c9f32731",
        "from": "PCIMS",
        "version": "1.0.2",
@@ -12,7 +12,7 @@
        "AAI": {
                "generic-vnf.prov-status": "ACTIVE",
                "generic-vnf.is-closed-loop-disabled": "false",
-               "generic-vnf.vnf-id": "ncserver23"
+               "pnf.pnf-name": "ncserver23"
        },
        "Action": "ModifyConfig"
 }
index 4d7ae66..f6b204e 100644 (file)
@@ -20,7 +20,7 @@
 ###############################################################################
 major=2
 minor=0
-patch=1
+patch=2
 base_version=${major}.${minor}.${patch}
 release_version=${base_version}
 snapshot_version=${base_version}-SNAPSHOT