Fix parsing for category and subcategory 53/48153/1
authorsubhash kumar singh <subhash.kumar.singh@huawei.com>
Fri, 18 May 2018 09:30:01 +0000 (09:30 +0000)
committersubhash kumar singh <subhash.kumar.singh@huawei.com>
Fri, 18 May 2018 09:30:01 +0000 (09:30 +0000)
Fix parsing of VNF resource.

Change-Id: Ib2adfaab1ae9bb5fa9cff195cdecbdea5aea18e1
Issue-ID: SO-630
Signed-off-by: subhash kumar singh <subhash.kumar.singh@huawei.com>
asdc-controller/src/main/java/org/openecomp/mso/asdc/installer/heat/ToscaResourceInstaller.java

index a8c67fd..5a2e19a 100644 (file)
@@ -1115,6 +1115,8 @@ public class ToscaResourceInstaller {// implements IVfResourceInstaller {
                vnfResource.setToscaNodeType(testNull(vfNodeTemplate.getType()));\r
                vnfResource.setAicVersionMax(testNull(vfNodeTemplate.getMetaData().getValue(SdcPropertyNames.PROPERTY_NAME_MAXINSTANCES)));\r
                vnfResource.setAicVersionMin(testNull(vfNodeTemplate.getMetaData().getValue(SdcPropertyNames.PROPERTY_NAME_MININSTANCES)));\r
+               vnfResource.setCategory(vfNodeTemplate.getMetaData().getValue(SdcPropertyNames.PROPERTY_NAME_CATEGORY));\r
+               vnfResource.setCategory(vfNodeTemplate.getMetaData().getValue(SdcPropertyNames.PROPERTY_NAME_SUBCATEGORY));\r
                //vnfResource.setHeatTemplateArtifactUUId(toscaResourceStructure.getHeatTemplateUUID());\r
                \r
        //      vfNodeTemplate.getProperties()\r