summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorTait,Trevor(rt0435) <rtait@amdocs.com>2018-09-11 10:57:39 -0400
committerTait,Trevor(rt0435) <rtait@amdocs.com>2018-09-12 11:01:57 -0400
commitaee6aa9b24d9358224ddc97d701ac0b4753628bc (patch)
tree89c7a91cfced1858428c048ec7c884c9c4a2295f /src/main
parentb6367a56b86c0d1958eb67404da516e74d81c81f (diff)
Update SDC Context Builder to use APIv1
Issue-ID: LOG-448 The changes to adapt to pomba-audit-common-1.3.1-SNAPSHOT are in pom.xml, ToscaModelConverter.java and SDCContextBuilderTest.java. The other changes are just for whitespace on line length warnings that were issued by the ONAP audit tools. Change-Id: Ied25e9e186776d8b36f30d0e80484af8d057da35 Signed-off-by: Tait,Trevor(rt0435) <rtait@amdocs.com>
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/onap/pomba/contextbuilder/sdc/model/handlers/ToscaModelConverter.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/org/onap/pomba/contextbuilder/sdc/model/handlers/ToscaModelConverter.java b/src/main/java/org/onap/pomba/contextbuilder/sdc/model/handlers/ToscaModelConverter.java
index ba6a37b..1e7580d 100644
--- a/src/main/java/org/onap/pomba/contextbuilder/sdc/model/handlers/ToscaModelConverter.java
+++ b/src/main/java/org/onap/pomba/contextbuilder/sdc/model/handlers/ToscaModelConverter.java
@@ -48,7 +48,7 @@ public class ToscaModelConverter {
public static ModelContext convert(ISdcCsarHelper helper) throws ToscaCsarException {
ModelContext context = new ModelContext();
context.setService(generateService(helper.getServiceMetadata()));
- context.setVf(generateVfList(helper));
+ context.setVfs(generateVfList(helper));
return context;
}
@@ -86,7 +86,7 @@ public class ToscaModelConverter {
vf.setUuid(vfNodeTemplate.getMetaData().getValue(SdcPropertyNames.PROPERTY_NAME_UUID));
String customizationUUID = vfNodeTemplate.getMetaData().getValue(SdcPropertyNames.PROPERTY_NAME_CUSTOMIZATIONUUID);
- vf.setVnfc(generateVnfcList(helper.getVfcListByVf(customizationUUID)));
+ vf.setVnfcs(generateVnfcList(helper.getVfcListByVf(customizationUUID)));
vf.setVfModules(generateVfModuleList(helper.getVfModulesByVf(customizationUUID)));
vfList.add(vf);
@@ -110,7 +110,7 @@ public class ToscaModelConverter {
Object nfcNamingCode = vfcNodeTemplate.getPropertyValue(PROPERTY_NAME_NFC_NAMING_CODE);
if (nfcNamingCode != null) {
- vnfc.setNfcNamingCode((String)nfcNamingCode);
+ vnfc.setType((String)nfcNamingCode);
}
vnfcList.add(vnfc);