Add dependent child service to service
Issue-ID: SDC-1987
Change-Id: I2b11f50bb1b88c407d6b1d9d4074a3efad243977
Signed-off-by: shrek2000 <orenkle@amdocs.com>
List<GroupInstance> groupInstances = topologyTemplate.getInstGroups().get(key).getMapToscaDataDefinition().entrySet().stream().map(e -> new GroupInstance(e.getValue())).collect(Collectors.toList());
currComponentInstance.setGroupInstances(groupInstances);
}
+ if(nodeFilterComponents != null && nodeFilterComponents.containsKey(key)){
+ currComponentInstance.setNodeFilter(nodeFilterComponents.get(key));
+ }
if(topologyTemplate.getInstProperties() != null && topologyTemplate.getInstProperties().containsKey(key) && topologyTemplate.getInstProperties().get(key) != null ){
List<PropertyDefinition> instanceProps = topologyTemplate.getInstProperties().get(key).getMapToscaDataDefinition().entrySet().stream().map(e -> new PropertyDefinition(e.getValue())).collect(Collectors.toList());
currComponentInstance.setProperties(instanceProps);