.put(ConsolidationEntityType.VOLUME, getIgnoredVolumeRelationships());
entityToEntitiesWithoutRelationship
.put(ConsolidationEntityType.VFC_NESTED, getIgnoredVfcNestedRelationships());
+ entityToEntitiesWithoutRelationship.
+ put(ConsolidationEntityType.NESTED, getIgnoredNestedRelationships());
}
private static Set<ConsolidationEntityType> getIgnoredComputeRelationships(){
- return Stream.of(ConsolidationEntityType.COMPUTE,
- ConsolidationEntityType.VOLUME,
- ConsolidationEntityType.PORT,
- ConsolidationEntityType.VFC_NESTED).collect(Collectors.toSet());
+ return Stream.of(ConsolidationEntityType.COMPUTE,
+ ConsolidationEntityType.VOLUME,
+ ConsolidationEntityType.PORT,
+ ConsolidationEntityType.NESTED,
+ ConsolidationEntityType.VFC_NESTED).collect(Collectors.toSet());
}
private static Set<ConsolidationEntityType> getIgnoredPortRelationships(){
- return Stream.of(ConsolidationEntityType.COMPUTE,
- ConsolidationEntityType.VOLUME,
- ConsolidationEntityType.PORT,
- ConsolidationEntityType.VFC_NESTED).collect(Collectors.toSet());
+ return Stream.of(ConsolidationEntityType.COMPUTE,
+ ConsolidationEntityType.VOLUME,
+ ConsolidationEntityType.PORT,
+ ConsolidationEntityType.NESTED,
+ ConsolidationEntityType.VFC_NESTED).collect(Collectors.toSet());
}
private static Set<ConsolidationEntityType> getIgnoredVolumeRelationships(){
- return Stream.of(ConsolidationEntityType.COMPUTE,
- ConsolidationEntityType.VOLUME,
- ConsolidationEntityType.PORT,
- ConsolidationEntityType.VFC_NESTED).collect(Collectors.toSet());
+ return Stream.of(ConsolidationEntityType.COMPUTE,
+ ConsolidationEntityType.VOLUME,
+ ConsolidationEntityType.PORT,
+ ConsolidationEntityType.NESTED,
+ ConsolidationEntityType.VFC_NESTED).collect(Collectors.toSet());
}
private static Set<ConsolidationEntityType> getIgnoredVfcNestedRelationships(){
- return Stream.of(ConsolidationEntityType.COMPUTE,
- ConsolidationEntityType.VOLUME,
- ConsolidationEntityType.PORT,
- ConsolidationEntityType.VFC_NESTED).collect(Collectors.toSet());
+ return Stream.of(ConsolidationEntityType.COMPUTE,
+ ConsolidationEntityType.VOLUME,
+ ConsolidationEntityType.PORT,
+ ConsolidationEntityType.NESTED,
+ ConsolidationEntityType.VFC_NESTED).collect(Collectors.toSet());
+ }
+
+ private static Set<ConsolidationEntityType> getIgnoredNestedRelationships(){
+ return Stream.of(ConsolidationEntityType.COMPUTE,
+ ConsolidationEntityType.PORT,
+ ConsolidationEntityType.NESTED,
+ ConsolidationEntityType.VFC_NESTED).collect(Collectors.toSet());
}
public static boolean isDependsOnRelationshipValid(ConsolidationEntityType source,
capability: tosca.capabilities.network.Linkable
node: nested_network
relationship: tosca.relationships.network.LinksTo
- - dependency:
- capability: tosca.capabilities.Node
- node: nestedWithNoNovaHadDependencyToIt
- relationship: tosca.relationships.DependsOn
abstract_b_single_1b:
type: org.openecomp.resource.abstract.nodes.b_single_1b
directives:
- service_template_filter
- index_value
requirements:
- - dependency_b_single_1b:
- capability: tosca.capabilities.Node
- node: nestedWithNoNovaHadDependencyToIt
- relationship: tosca.relationships.DependsOn
- link_b_single_1b_1b_t2_port:
capability: tosca.capabilities.network.Linkable
node: b_single_1b_network
- service_template_filter
- index_value
requirements:
- - dependency_1c1_scalling_instance:
- capability: tosca.capabilities.Node
- node: nestedWithNoNovaHadDependencyToIt
- relationship: tosca.relationships.DependsOn
- link_1c1_scalling_instance_1c1_t1_port:
capability: tosca.capabilities.network.Linkable
node: 1c1_scalling_instance_network
capability: tosca.capabilities.network.Linkable
node: nested_network
relationship: tosca.relationships.network.LinksTo
- - dependency_server_pcm:
- capability: tosca.capabilities.Node
- node: nestedWithNoNovaHadDependencyToIt
- relationship: tosca.relationships.DependsOn
abstract_1c2_catalog_instance_0:
type: org.openecomp.resource.abstract.nodes.1c2_catalog_instance
directives:
- service_template_filter
- index_value
requirements:
- - dependency_1c2_catalog_instance_1c2_t1_port:
- capability: tosca.capabilities.Node
- node: nestedWithNoNovaHadDependencyToIt
- relationship: tosca.relationships.DependsOn
- link_1c2_catalog_instance_1c2_t2_port:
capability: tosca.capabilities.network.Linkable
node: 1c2_catalog_instance_network
- service_template_filter
- index_value
requirements:
- - dependency_1c2_catalog_instance_1c2_t1_port:
- capability: tosca.capabilities.Node
- node: nestedWithNoNovaHadDependencyToIt
- relationship: tosca.relationships.DependsOn
- link_1c2_catalog_instance_1c2_t2_port:
capability: tosca.capabilities.network.Linkable
node: 1c2_catalog_instance_network
substitute_service_template: nested-no-novaServiceTemplate.yaml
security_group_name: group1
net_name: myNetwork
- requirements:
- - dependency:
- capability: feature_a_single_1a
- node: abstract_a_single_1a
- relationship: tosca.relationships.DependsOn
- - dependency:
- capability: tosca.capabilities.Node
- node: 4p_nested
- relationship: tosca.relationships.DependsOn
- - dependency:
- capability: feature_b_single_1b_1b_t1_port
- node: abstract_b_single_1b
- relationship: tosca.relationships.DependsOn
- - dependency:
- capability: feature_b_single_1b_1b_t1_port
- node: abstract_b_single_1b_1
- relationship: tosca.relationships.DependsOn
- - dependency:
- capability: feature_1c1_scalling_instance
- node: abstract_1c1_scalling_instance
- relationship: tosca.relationships.DependsOn
- - dependency:
- capability: feature_1c2_catalog_instance
- node: abstract_1c2_catalog_instance_0
- relationship: tosca.relationships.DependsOn
- - dependency:
- capability: feature_1c2_catalog_instance
- node: abstract_1c2_catalog_instance_1
- relationship: tosca.relationships.DependsOn
- - dependency:
- capability: tosca.capabilities.Node
- node: nestedNoNestedSingleComputePattern
- relationship: tosca.relationships.DependsOn
- - dependency:
- capability: tosca.capabilities.Node
- node: nestedWithNoNovaHadDependencyToIt
- relationship: tosca.relationships.DependsOn
1c1_scalling_instance_network:
type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
properties:
- service_template_filter
- index_value
requirements:
- - dependency_a_single_1a:
- capability: tosca.capabilities.Node
- node: nestedWithNoNovaHadDependencyToIt
- relationship: tosca.relationships.DependsOn
- link_a_single_1a_1a_t1_port:
capability: tosca.capabilities.network.Linkable
node: a_single_1a_network
name: def
affinity: host
targets:
- - BE_Affinity_group
+ - BE_Affinity_group
\ No newline at end of file
- SELF
- service_template_filter
- index_value
- requirements:
- - dependency_ps_server_main_1b:
- capability: tosca.capabilities.Node
- node: test_nested_no_compute
- relationship: tosca.relationships.DependsOn
test_nested1Level_duplicate_same_file:
type: org.openecomp.resource.abstract.nodes.heat.nested1
directives:
substitute_service_template: nested1-no-computeServiceTemplate.yaml
name:
get_input: jsa_net_name
- requirements:
- - dependency:
- capability: feature_pd_server_main_1b
- node: abstract_pd_server_main_1b_1
- relationship: tosca.relationships.DependsOn
abstract_cmaui_1c1_main_1:
type: org.openecomp.resource.abstract.nodes.cmaui_1c1_main_1
directives:
- SELF
- service_template_filter
- index_value
- requirements:
- - dependency_cmaui_1c1_main:
- capability: tosca.capabilities.Node
- node: test_nested_no_compute
- relationship: tosca.relationships.DependsOn
test_nested_pattern_4_main_0:
type: org.openecomp.resource.abstract.nodes.heat.pd_server_pattern4
directives:
is_required: true
floating_ip_count_required:
is_required: false
- requirements:
- - dependency_server_pd_pattern4:
- capability: tosca.capabilities.Node
- node: test_nested_no_compute
- relationship: tosca.relationships.DependsOn
test_nested1Level:
type: org.openecomp.resource.abstract.nodes.heat.nested1
directives:
substitute_service_template: nested1ServiceTemplate.yaml
name:
get_input: security_group_name
- requirements:
- - dependency:
- capability: tosca.capabilities.Node
- node: test_nested_no_compute
- relationship: tosca.relationships.DependsOn
groups:
main_group:
type: org.openecomp.groups.heat.HeatStack
- test_nested_pattern_4_main_0
- abstract_pd_server_main_1b_1
- abstract_ps_server_main_1b_1
- - abstract_cmaui_1c1_main_1
+ - abstract_cmaui_1c1_main_1
\ No newline at end of file
- SELF
- service_template_filter
- index_value
- requirements:
- - dependency_pd_server_nested2_1b:
- capability: tosca.capabilities.Node
- node: test_nested3Level
- relationship: tosca.relationships.DependsOn
test_nested_pattern_4_nested2:
type: org.openecomp.resource.abstract.nodes.heat.pd_server_pattern4
directives:
is_required: true
floating_ip_count_required:
is_required: false
- requirements:
- - dependency_server_pd_pattern4:
- capability: tosca.capabilities.Node
- node: test_resourceGroup
- relationship: tosca.relationships.DependsOn
test_nested3Level:
type: org.openecomp.resource.abstract.nodes.heat.nested3
directives:
substitute_service_template: nested3ServiceTemplate.yaml
name:
get_input: security_group_name
- requirements:
- - dependency:
- capability: tosca.capabilities.Node
- node: test_nested_pattern_4_nested2
- relationship: tosca.relationships.DependsOn
- - dependency:
- capability: feature_ps_server_nested2_1b
- node: abstract_ps_server_nested2_1b
- relationship: tosca.relationships.DependsOn
test_nested_pattern_4_same_type_diff_file:
type: org.openecomp.resource.abstract.nodes.heat.pd_server_pattern4_2
directives:
- SELF
- service_template_filter
- index_value
- requirements:
- - dependency_cmaui_1c1_nested2:
- capability: tosca.capabilities.Node
- node: test_nested3Level
- relationship: tosca.relationships.DependsOn
groups:
nested2_group:
type: org.openecomp.groups.heat.HeatStack
- dependency
dependency_pd_server_pattern4_port_1_test_nested_pattern_4_nested2:
- test_nested_pattern_4_nested2
- - dependency_pd_server_pattern4_port_1
+ - dependency_pd_server_pattern4_port_1
\ No newline at end of file
- pattern4_attr_1
service_template_filter:
substitute_service_template: nested-no-computeServiceTemplate.yaml
- requirements:
- - dependency:
- capability: tosca.capabilities.Node
- node: test_nested_all_patterns
- relationship: tosca.relationships.DependsOn
- - dependency:
- capability: tosca.capabilities.Node
- node: test_nested_pattern_4
- relationship: tosca.relationships.DependsOn
nested2_pattern_4:
type: org.openecomp.resource.abstract.nodes.heat.pd_server
directives:
value:
get_attribute:
- abstract_osm_server_1c2_1
- - osm_server_1c2_accessIPv4
+ - osm_server_1c2_accessIPv4
\ No newline at end of file
- pattern4_attr_1
service_template_filter:
substitute_service_template: nested-no-computeServiceTemplate.yaml
- requirements:
- - dependency:
- capability: tosca.capabilities.Node
- node: test_nested_all_patterns
- relationship: tosca.relationships.DependsOn
- - dependency:
- capability: tosca.capabilities.Node
- node: test_nested_pattern_4
- relationship: tosca.relationships.DependsOn
test_nested_all_patterns:
type: org.openecomp.resource.abstract.nodes.heat.nested1
directives:
- dependsOn_network
- test_nested_pattern_4
- test_nested_no_compute
- - test_nested_all_patterns
+ - test_nested_all_patterns
\ No newline at end of file
- install_config
storage_size: 68
group_tag: oam
- requirements:
- - dependency:
- capability: tosca.capabilities.Node
- node: NOKIA-LCP-Base
- relationship: tosca.relationships.DependsOn
IMS_RRG:
type: org.openecomp.resource.abstract.nodes.heat.LCP-PairGroup.template
directives:
get_attribute:
- NOKIA-LCP-Base
- NetInfoStr
- requirements:
- - dependency:
- capability: tosca.capabilities.Node
- node: NOKIA-LCP-Base
- relationship: tosca.relationships.DependsOn
groups:
base_mso_group:
type: org.openecomp.groups.heat.HeatStack