Add vfmodule support to e2e service instance 86/93186/1
authorsubhash.kumar.singh <subhash.kumar.singh@huawei.com>
Fri, 9 Aug 2019 09:14:50 +0000 (14:44 +0530)
committersubhash kumar singh <subhash.kumar.singh@huawei.com>
Fri, 9 Aug 2019 10:26:47 +0000 (15:56 +0530)
Parse vfmodule to add to resource instance list.

Issue-ID: SO-2213
Signed-off-by: subhash kumar singh <subhash.kumar.singh@huawei.com>
Change-Id: Iab16430b498e505cd89a0ba4c12cfd2f88b9a982

bpmn/MSOCommonBPMN/src/main/java/org/onap/so/bpmn/common/resource/InstanceResourceList.java

index b1173bb..cc3ec52 100644 (file)
@@ -108,6 +108,11 @@ public class InstanceResourceList {
             sequencedResourceList.add(vnfResource);
         }
 
+        // check if the resource contains vf-module
+        if (vnfResource != null && vnfResource.getVfModules() != null) {
+            sequencedResourceList.addAll(vnfResource.getVfModules());
+        }
+
         return sequencedResourceList;
     }