From 38713207b817ed4700f630748c681116338d32f0 Mon Sep 17 00:00:00 2001 From: Patrick Brady Date: Fri, 28 Jul 2017 11:29:23 -0700 Subject: Merging in bug fixes Change-Id: I85da90b9ba0d03149f42035a820c76ef0285e413 Signed-off-by: Patrick Brady Issue: APPC-100 --- .../src/main/java/org/openecomp/appc/dg/aai/impl/AAIPluginImpl.java | 4 ++-- .../src/main/java/org/openecomp/appc/dg/aai/impl/Constants.java | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'appc-dg/appc-dg-shared/appc-dg-aai/src') diff --git a/appc-dg/appc-dg-shared/appc-dg-aai/src/main/java/org/openecomp/appc/dg/aai/impl/AAIPluginImpl.java b/appc-dg/appc-dg-shared/appc-dg-aai/src/main/java/org/openecomp/appc/dg/aai/impl/AAIPluginImpl.java index 308261cfc..93ad6a5e7 100644 --- a/appc-dg/appc-dg-shared/appc-dg-aai/src/main/java/org/openecomp/appc/dg/aai/impl/AAIPluginImpl.java +++ b/appc-dg/appc-dg-shared/appc-dg-aai/src/main/java/org/openecomp/appc/dg/aai/impl/AAIPluginImpl.java @@ -147,7 +147,7 @@ public class AAIPluginImpl implements AAIPlugin { vnfQueryResult = readVnf(vnfId); vnfType = vnfQueryResult.getAdditionProperties().get("vnf-type"); - vnfVersion = vnfQueryResult.getAdditionProperties().get("persona-model-version"); + vnfVersion = vnfQueryResult.getAdditionProperties().get(Constants.AAI_VNF_MODEL_VERSION_ID); for(Relationship vnfRelationship:vnfQueryResult.getRelationshipList()){ if("vserver".equalsIgnoreCase(vnfRelationship.getRelatedTo())){ @@ -258,7 +258,7 @@ public class AAIPluginImpl implements AAIPlugin { String[] additionalProperties = new String[]{"vnf-type","vnf-name", "in-maint","prov-status","heat-stack-id", - "is-closed-loop-disabled","orchestration-status","resource-version","persona-model-version"}; + "is-closed-loop-disabled","orchestration-status","resource-version",Constants.AAI_VNF_MODEL_VERSION_ID}; AAIQueryResult result = readRelationDataAndProperties(prefix, vnfContext,additionalProperties); diff --git a/appc-dg/appc-dg-shared/appc-dg-aai/src/main/java/org/openecomp/appc/dg/aai/impl/Constants.java b/appc-dg/appc-dg-shared/appc-dg-aai/src/main/java/org/openecomp/appc/dg/aai/impl/Constants.java index 0a9fe2176..1ccd6c47d 100644 --- a/appc-dg/appc-dg-shared/appc-dg-aai/src/main/java/org/openecomp/appc/dg/aai/impl/Constants.java +++ b/appc-dg/appc-dg-shared/appc-dg-aai/src/main/java/org/openecomp/appc/dg/aai/impl/Constants.java @@ -93,6 +93,11 @@ public class Constants { public static final String IS_ACQUIRE_ENTITLEMENT_REQUIRE ="is.acquire-entitlement.require"; public static final String IS_RELEASE_ENTITLEMENT_REQUIRE ="is.release-entitlement.require"; + /** + * AAI property names + */ + public static final String AAI_VNF_MODEL_VERSION_ID ="model-version-id"; + public enum ASDC_ARTIFACTS_FIELDS { SERVICE_UUID, DISTRIBUTION_ID, -- cgit 1.2.3-korg