aboutsummaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorLeigh, Phillip (pl876u) <phillip.leigh@amdocs.com>2019-01-10 11:49:57 -0500
committerLeigh, Phillip (pl876u) <phillip.leigh@amdocs.com>2019-01-10 15:35:23 -0500
commite4ada8c413ede55376a3e5adb24297aa3871cbbf (patch)
treedfb6ccd9e26499792348b84a228f005ff1e58752 /src/main
parent57520e733e6aa87087d16b1ec385d048fb1b3f4f (diff)
BugFix in aaiCtxBuilder: set PNF UUID to pnd-id
Issue-ID: LOG-764 Change-Id: I56aa96e69de5f4a5d763e4a9759c7f3c4887526c Signed-off-by: Leigh, Phillip (pl876u) <phillip.leigh@amdocs.com>
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/onap/pomba/contextbuilder/aai/util/RestUtil.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/org/onap/pomba/contextbuilder/aai/util/RestUtil.java b/src/main/java/org/onap/pomba/contextbuilder/aai/util/RestUtil.java
index b85c75e..09ade48 100644
--- a/src/main/java/org/onap/pomba/contextbuilder/aai/util/RestUtil.java
+++ b/src/main/java/org/onap/pomba/contextbuilder/aai/util/RestUtil.java
@@ -494,6 +494,8 @@ public class RestUtil {
//Add PNF info
context.setPnfs(transformPNF(pnfLst_fromAAi));
+ log.info("ModelContext body: {}", JsonUtils.toPrettyJsonString(context));
+
return context;
}
@@ -509,7 +511,7 @@ public class RestUtil {
for (PnfInstance pnf_from_aai : pnfLst_from_AAI) {
PNF pnf = new PNF();
- pnf.setModelInvariantUUID(pnf_from_aai.getPnfId());
+ pnf.setUuid(pnf_from_aai.getPnfId());
pnf.setName(pnf_from_aai.getPnfName());
pnf.setModelVersionID(pnf_from_aai.getModelVersionId());
pnf.setModelInvariantUUID(pnf_from_aai.getModelInvariantId());