diff options
author | 2020-04-24 19:54:02 +0530 | |
---|---|---|
committer | 2020-04-29 13:44:38 +0000 | |
commit | 7741546bd7607aad3ad78f01006b5c95a4c0464d (patch) | |
tree | 83b73f9a0bf1a13b781a14902aac7c23f8ef7bec /src | |
parent | 66bd1417e86d211da7f0218fb6431bf01a457bd2 (diff) |
Change Policy notification in son-handler to align with policy component updates6.0.0-ONAP
Issue-ID: DCAEGEN2-2216
Signed-off-by: Niranjana <niranjana.y60@wipro.com>
Change-Id: I6361cc68c20ae601ad89754eab8633985b794244
(cherry picked from commit 9e7b2f1eecf15c6f1f4fa7c42a9ad2aeb08d334d)
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/onap/dcaegen2/services/sonhms/model/PolicyNotification.java | 4 | ||||
-rw-r--r-- | src/test/resources/policy_notification.json | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/org/onap/dcaegen2/services/sonhms/model/PolicyNotification.java b/src/main/java/org/onap/dcaegen2/services/sonhms/model/PolicyNotification.java index 972b1f4..2cb1335 100644 --- a/src/main/java/org/onap/dcaegen2/services/sonhms/model/PolicyNotification.java +++ b/src/main/java/org/onap/dcaegen2/services/sonhms/model/PolicyNotification.java @@ -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() { diff --git a/src/test/resources/policy_notification.json b/src/test/resources/policy_notification.json index 767c024..289afeb 100644 --- a/src/test/resources/policy_notification.json +++ b/src/test/resources/policy_notification.json @@ -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" } |