diff options
author | jimmydot <jf2512@att.com> | 2017-06-08 11:54:45 -0400 |
---|---|---|
committer | jimmydot <jf2512@att.com> | 2017-06-08 11:54:45 -0400 |
commit | 36c86ad506206ed1a038f1129b1bde37efa0eaaa (patch) | |
tree | 388292dca8ad2812be23413cedba4f6f5b4cee3a /vid-app-common/src/main/java/org/openecomp/vid/model/ServiceModel.java | |
parent | 6c7dcba5be04a502a2d5de7e7c5f14eedf9eaa2a (diff) |
[VID-15] fixes for various issues
Change-Id: I392a0427078d337a5d501a813dff73c1959481e2
Signed-off-by: jimmydot <jf2512@att.com>
Diffstat (limited to 'vid-app-common/src/main/java/org/openecomp/vid/model/ServiceModel.java')
-rwxr-xr-x | vid-app-common/src/main/java/org/openecomp/vid/model/ServiceModel.java | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/vid-app-common/src/main/java/org/openecomp/vid/model/ServiceModel.java b/vid-app-common/src/main/java/org/openecomp/vid/model/ServiceModel.java index 140e9edf..98e65316 100755 --- a/vid-app-common/src/main/java/org/openecomp/vid/model/ServiceModel.java +++ b/vid-app-common/src/main/java/org/openecomp/vid/model/ServiceModel.java @@ -182,16 +182,15 @@ public class ServiceModel { final Map<String, VfModule> vfModules = new HashMap<String, VfModule> ();
final Map<String, VolumeGroup> volumeGroups = new HashMap<String, VolumeGroup> ();
-
- String asdcModelNamespace = VidProperties.getAsdcModelNamespace();
- String vfModuleTag = asdcModelNamespace + ModelConstants.VF_MODULE;
-
+ String asdcModelNamespaces[] = VidProperties.getAsdcModelNamespace();
+ String[] vfModuleTags = ModelUtil.getTags(asdcModelNamespaces, ModelConstants.VF_MODULE);
+
for (Entry<String, Group> component : serviceToscaModel.gettopology_template().getGroups().entrySet()) {
final Group group = component.getValue();
final String type = group.getType();
final String customizationName = component.getKey();
- if (type.startsWith(vfModuleTag)) {
+ if ( ModelUtil.isType (type, vfModuleTags) ) {
VfModule vfMod = VfModule.extractVfModule(customizationName, group);
vfModules.put(customizationName, vfMod);
if ( vfMod.isVolumeGroupAllowed() ) {
|