7d86e3774ada6dd33a5f3db5d5202ed18884541d
[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 topology_template:
10   inputs:
11     oam_net_ips:
12       label: OAM network ips
13       hidden: false
14       immutable: false
15       annotations:
16         source:
17           type: org.openecomp.annotations.Source
18           properties:
19             vf_module_label:
20             - hot-nimbus-pcm_v0.4_2
21             - hot-nimbus-pcm_v0.4
22             source_type: HEAT
23             param_name: oam_net_ips
24       type: list
25       description: OAM network ips
26       entry_schema:
27         type: string
28     availabilityzone_name:
29       label: availabilityzone name
30       hidden: false
31       immutable: false
32       annotations:
33         source:
34           type: org.openecomp.annotations.Source
35           properties:
36             vf_module_label:
37             - hot-nimbus-pcm_v0.4_2
38             - hot-nimbus-pcm_v0.4
39             source_type: HEAT
40             param_name: availabilityzone_name
41       type: string
42       description: availabilityzone name
43     oam_net_gw:
44       label: CPS network gateway
45       hidden: false
46       immutable: false
47       annotations:
48         source:
49           type: org.openecomp.annotations.Source
50           properties:
51             vf_module_label:
52             - hot-nimbus-pcm_v0.4_2
53             - hot-nimbus-pcm_v0.4
54             source_type: HEAT
55             param_name: oam_net_gw
56       type: string
57       description: CPS network gateway
58     pcm_server_names:
59       label: PCRF CM server names
60       hidden: false
61       immutable: false
62       annotations:
63         source:
64           type: org.openecomp.annotations.Source
65           properties:
66             vf_module_label:
67             - hot-nimbus-pcm_v0.4_2
68             - hot-nimbus-pcm_v0.4
69             source_type: HEAT
70             param_name: pcm_server_names
71       type: list
72       description: name of the PCRF CM instance
73       entry_schema:
74         type: string
75     pcm_image_name:
76       label: PCRF CM image name
77       hidden: false
78       immutable: false
79       annotations:
80         source:
81           type: org.openecomp.annotations.Source
82           properties:
83             vf_module_label:
84             - hot-nimbus-pcm_v0.4_2
85             - hot-nimbus-pcm_v0.4
86             source_type: HEAT
87             param_name: pcm_image_name
88       type: string
89       description: PCRF CM image name
90     cps_net_ips:
91       label: CPS network ips
92       hidden: false
93       immutable: false
94       annotations:
95         source:
96           type: org.openecomp.annotations.Source
97           properties:
98             vf_module_label:
99             - hot-nimbus-pcm_v0.4_2
100             - hot-nimbus-pcm_v0.4
101             source_type: HEAT
102             param_name: cps_net_ips
103       type: list
104       description: CPS network ips
105       entry_schema:
106         type: string
107     security_group_name:
108       label: security group name
109       hidden: false
110       immutable: false
111       annotations:
112         source:
113           type: org.openecomp.annotations.Source
114           properties:
115             vf_module_label:
116             - hot-nimbus-pcm_v0.4_2
117             - hot-nimbus-pcm_v0.4
118             source_type: HEAT
119             param_name: security_group_name
120       type: string
121       description: the name of security group
122     pcm_volumes:
123       label: CPS Cluman Cinder Volume
124       hidden: false
125       immutable: false
126       annotations:
127         source:
128           type: org.openecomp.annotations.Source
129           properties:
130             vf_module_label:
131             - hot-nimbus-pcm_v0.4_2
132             - hot-nimbus-pcm_v0.4
133             source_type: HEAT
134             param_name: pcm_volumes
135       type: list
136       description: CPS Cluman Cinder Volume
137       entry_schema:
138         type: string
139     pcm_flavor_name:
140       label: PCRF CM flavor name
141       hidden: false
142       immutable: false
143       annotations:
144         source:
145           type: org.openecomp.annotations.Source
146           properties:
147             vf_module_label:
148             - hot-nimbus-pcm_v0.4_2
149             - hot-nimbus-pcm_v0.4
150             source_type: HEAT
151             param_name: pcm_flavor_name
152       type: string
153       description: flavor name of PCRF CM instance
154     cps_net_name:
155       label: CPS network name
156       hidden: false
157       immutable: false
158       annotations:
159         source:
160           type: org.openecomp.annotations.Source
161           properties:
162             vf_module_label:
163             - hot-nimbus-pcm_v0.4_2
164             - hot-nimbus-pcm_v0.4
165             source_type: HEAT
166             param_name: cps_net_name
167       type: string
168       description: CPS network name
169     cps_net_mask:
170       label: CPS network mask
171       hidden: false
172       immutable: false
173       annotations:
174         source:
175           type: org.openecomp.annotations.Source
176           properties:
177             vf_module_label:
178             - hot-nimbus-pcm_v0.4_2
179             - hot-nimbus-pcm_v0.4
180             source_type: HEAT
181             param_name: cps_net_mask
182       type: string
183       description: CPS network mask
184     oam_net_mask:
185       label: CPS network mask
186       hidden: false
187       immutable: false
188       annotations:
189         source:
190           type: org.openecomp.annotations.Source
191           properties:
192             vf_module_label:
193             - hot-nimbus-pcm_v0.4_2
194             - hot-nimbus-pcm_v0.4
195             source_type: HEAT
196             param_name: oam_net_mask
197       type: string
198       description: CPS network mask
199     oam_net_name:
200       label: OAM network name
201       hidden: false
202       immutable: false
203       annotations:
204         source:
205           type: org.openecomp.annotations.Source
206           properties:
207             vf_module_label:
208             - hot-nimbus-pcm_v0.4_2
209             - hot-nimbus-pcm_v0.4
210             source_type: HEAT
211             param_name: oam_net_name
212       type: string
213       description: OAM network name
214   node_templates:
215     server_pcm_002:
216       type: org.openecomp.resource.abstract.nodes.heat.nested-pcm_v0.1
217       directives:
218       - substitutable
219       properties:
220         pcm_flavor_name:
221           get_input: pcm_flavor_name
222         service_template_filter:
223           substitute_service_template: nested-pcm_v0.1ServiceTemplate.yaml
224         metadata:
225           get_attribute:
226           - server_pcm_001
227           - server_pcm_id
228         availabilityzone_name:
229           get_input: availabilityzone_name
230         pcm_image_name:
231           get_input: pcm_image_name
232         pcm_vol:
233           get_input:
234           - pcm_volumes
235           - 0
236         security_group_name:
237           get_input: security_group_name
238         pcm_server_name:
239           get_input:
240           - pcm_server_names
241           - 0
242     server_pcm_001:
243       type: org.openecomp.resource.abstract.nodes.heat.nested-pcm_v0.1
244       directives:
245       - substitutable
246       properties:
247         service_template_filter:
248           substitute_service_template: nested-pcm_v0.1ServiceTemplate.yaml
249         availabilityzone_name:
250           get_input: availabilityzone_name
251         oam_net_gw:
252           get_input: oam_net_gw
253         user_data_format:
254           get_attribute:
255           - server_pcm_002
256           - pcm_vol
257         pcm_vol:
258           get_input:
259           - pcm_volumes
260           - 0
261         security_group_name:
262           get_input: security_group_name
263         cps_net_ip:
264           get_input:
265           - cps_net_ips
266           - 0
267         cps_net_name:
268           get_input: cps_net_name
269         cps_net_mask:
270           get_input: cps_net_mask
271         oam_net_ip:
272           get_input:
273           - oam_net_ips
274           - 0
275         oam_net_mask:
276           get_input: oam_net_mask
277         oam_net_name:
278           get_input: oam_net_name
279     packet_mirror_network:
280       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
281       properties:
282         network_name:
283           get_input: cps_net_name
284       requirements:
285       - dependency:
286           capability: tosca.capabilities.Node
287           node: server_pcm_001
288           relationship: tosca.relationships.DependsOn
289     server_pcm_003:
290       type: org.openecomp.resource.abstract.nodes.heat.nested-pcm_v0.1
291       directives:
292       - substitutable
293       properties:
294         service_template_filter:
295           substitute_service_template: nested-pcm_v0.1ServiceTemplate.yaml
296         availabilityzone_name:
297           get_input: availabilityzone_name
298         pcm_vol:
299           get_input:
300           - pcm_volumes
301           - 0
302         security_group_name:
303           get_input: security_group_name
304         cps_net_ip:
305           get_input:
306           - cps_net_ips
307           - 0
308         cps_net_name:
309           get_input: cps_net_name
310         cps_net_mask:
311           get_input: cps_net_mask
312   groups:
313     hot-nimbus-pcm_v0.4_group:
314       type: org.openecomp.groups.heat.HeatStack
315       properties:
316         heat_file: ../Artifacts/hot-nimbus-pcm_v0.4.yaml
317         description: heat template that creates PCRF Cluman stack
318       members:
319       - server_pcm_002
320       - server_pcm_001
321       - packet_mirror_network
322     hot-nimbus-pcm_v0.4_2_group:
323       type: org.openecomp.groups.heat.HeatStack
324       properties:
325         heat_file: ../Artifacts/hot-nimbus-pcm_v0.4_2.yaml
326         description: heat template that creates PCRF Cluman stack
327       members:
328       - server_pcm_003
329   outputs:
330     output_attr_1:
331       value:
332         get_attribute:
333         - server_pcm_001
334         - pcm_vol
335     output_attr_2:
336       value:
337         get_attribute:
338         - server_pcm_002
339         - oam_net_ip