a14b9d2c59a6fe918a564e00fd5050d4b2c63582
[sdc.git] /
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: Main
4 imports:
5 - openecomp_heat_index:
6     file: openecomp-heat/_index.yml
7 - GlobalSubstitutionTypes:
8     file: GlobalSubstitutionTypesServiceTemplate.yaml
9 node_types:
10   org.openecomp.resource.vfc.nodes.heat.jsa:
11     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
12 topology_template:
13   inputs:
14     contrail_net_name:
15       hidden: false
16       immutable: false
17       type: string
18       description: network name of jsa log network
19     jsa_net_name:
20       hidden: false
21       immutable: false
22       type: string
23     jsa_name:
24       hidden: false
25       immutable: false
26       type: string
27       description: network name of jsa log network
28   node_templates:
29     test_nested1Level:
30       type: org.openecomp.resource.abstract.nodes.heat.nested1
31       directives:
32       - substitutable
33       properties:
34         p1: test_net
35         service_template_filter:
36           substitute_service_template: nested1ServiceTemplate.yaml
37         p2:
38           get_attribute:
39           - test_contrailV2_net
40           - fq_name
41       requirements:
42       - link_template_VMInt_OAM_lb_1:
43           capability: tosca.capabilities.network.Linkable
44           node: test_net
45           relationship: tosca.relationships.network.LinksTo
46       - link_template_VMInt_OAM_lb_2:
47           capability: tosca.capabilities.network.Linkable
48           node: test_contrailV2_net
49           relationship: tosca.relationships.network.LinksTo
50       - link_template_VMInt_OAM_lb_5_test_nested3Level_test_nested2Level:
51           capability: tosca.capabilities.network.Linkable
52           node: test_net
53           relationship: tosca.relationships.network.LinksTo
54       - link_template_VMInt_OAM_lb_7_test_nested4Level_test_nested3Level_test_nested2Level:
55           capability: tosca.capabilities.network.Linkable
56           node: test_net
57           relationship: tosca.relationships.network.LinksTo
58       - link_template_VMInt_OAM_lb_8_test_nested4Level_test_nested3Level_test_nested2Level:
59           capability: tosca.capabilities.network.Linkable
60           node: test_net
61           relationship: tosca.relationships.network.LinksTo
62       - link_template_VMInt_OAM_lb_6_test_nested3Level_test_nested2Level:
63           capability: tosca.capabilities.network.Linkable
64           node: test_net
65           relationship: tosca.relationships.network.LinksTo
66       - link_template_VMInt_OAM_lb_3_test_nested2Level:
67           capability: tosca.capabilities.network.Linkable
68           node: test_net
69           relationship: tosca.relationships.network.LinksTo
70       - link_template_VMInt_OAM_lb_4_test_nested2Level:
71           capability: tosca.capabilities.network.Linkable
72           node: test_contrailV2_net
73           relationship: tosca.relationships.network.LinksTo
74     test_resourceGroup:
75       type: org.openecomp.resource.abstract.nodes.heat.nested3
76       directives:
77       - substitutable
78       properties:
79         p1:
80           list_join:
81           - ':'
82           - get_attribute:
83             - test_contrailV2_net
84             - fq_name
85         service_template_filter:
86           substitute_service_template: nested3ServiceTemplate.yaml
87           count: 9
88           mandatory: true
89         indx:
90           get_property:
91           - SELF
92           - service_template_filter
93           - index_value
94       requirements:
95       - link_template_VMInt_OAM_lb_8_test_nested4Level:
96           capability: tosca.capabilities.network.Linkable
97           node: test_contrailV2_net
98           relationship: tosca.relationships.network.LinksTo
99       - link_template_VMInt_OAM_lb_6:
100           capability: tosca.capabilities.network.Linkable
101           node: test_contrailV2_net
102           relationship: tosca.relationships.network.LinksTo
103     test_contrailV2_net:
104       type: org.openecomp.resource.vl.nodes.heat.network.contrailV2.VirtualNetwork
105       properties:
106         network_name:
107           get_input: contrail_net_name
108     test_nestedInvalidConnectionToNetwork2:
109       type: org.openecomp.resource.abstract.nodes.heat.nested1
110       directives:
111       - substitutable
112       properties:
113         p1: test_contrail_net
114         service_template_filter:
115           substitute_service_template: nested1ServiceTemplate.yaml
116     test_net:
117       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
118       properties:
119         shared: true
120         network_name:
121           get_input: jsa_net_name
122     test_nestedInvalidConnectionToNetwork1:
123       type: org.openecomp.resource.abstract.nodes.heat.nested1
124       directives:
125       - substitutable
126       properties:
127         p1: test_nova
128         service_template_filter:
129           substitute_service_template: nested1ServiceTemplate.yaml
130     test_contrail_net:
131       type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork
132       properties:
133         network_name:
134           get_input: contrail_net_name
135     test_nova:
136       type: org.openecomp.resource.vfc.nodes.heat.jsa
137       properties:
138         image: image
139         name:
140           get_input: jsa_name
141   groups:
142     main_group:
143       type: org.openecomp.groups.heat.HeatStack
144       properties:
145         heat_file: ../Artifacts/main.yml
146         description: |
147           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
148       members:
149       - test_nested1Level
150       - test_resourceGroup
151       - test_contrailV2_net
152       - test_nestedInvalidConnectionToNetwork2
153       - test_net
154       - test_nestedInvalidConnectionToNetwork1
155       - test_contrail_net
156       - test_nova