f26ec330214ca11c8509596e3ec2a4debd46f552
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / fulltest / nestedSingleCompute / nestedWithOneCompute / out / MainServiceTemplate.yaml
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
21             source_type: HEAT
22             param_name: oam_net_ips
23       type: list
24       description: OAM network ips
25       default:
26       - 107.239.64.121
27       entry_schema:
28         type: string
29     availabilityzone_name:
30       label: availabilityzone name
31       hidden: false
32       immutable: false
33       annotations:
34         source:
35           type: org.openecomp.annotations.Source
36           properties:
37             vf_module_label:
38             - hot-nimbus-pcm_v0.4
39             source_type: HEAT
40             param_name: availabilityzone_name
41       type: string
42       description: availabilityzone name
43       default: nova
44     oam_net_gw:
45       label: CPS network gateway
46       hidden: false
47       immutable: false
48       annotations:
49         source:
50           type: org.openecomp.annotations.Source
51           properties:
52             vf_module_label:
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       default: 107.239.64.1
59     pcm_server_names:
60       label: PCRF CM server names
61       hidden: false
62       immutable: false
63       annotations:
64         source:
65           type: org.openecomp.annotations.Source
66           properties:
67             vf_module_label:
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       default:
74       - ZRDM1PCRF01PCM001
75       entry_schema:
76         type: string
77     pcm_image_name:
78       label: PCRF CM image name
79       hidden: false
80       immutable: false
81       annotations:
82         source:
83           type: org.openecomp.annotations.Source
84           properties:
85             vf_module_label:
86             - hot-nimbus-pcm_v0.4
87             source_type: HEAT
88             param_name: pcm_image_name
89       type: string
90       description: PCRF CM image name
91       default: rhel2
92     cps_net_ips:
93       label: CPS network ips
94       hidden: false
95       immutable: false
96       annotations:
97         source:
98           type: org.openecomp.annotations.Source
99           properties:
100             vf_module_label:
101             - hot-nimbus-pcm_v0.4
102             source_type: HEAT
103             param_name: cps_net_ips
104       type: list
105       description: CPS network ips
106       default:
107       - 172.26.16.113
108       entry_schema:
109         type: string
110     security_group_name:
111       label: security group name
112       hidden: false
113       immutable: false
114       annotations:
115         source:
116           type: org.openecomp.annotations.Source
117           properties:
118             vf_module_label:
119             - hot-nimbus-pcm_v0.4
120             source_type: HEAT
121             param_name: security_group_name
122       type: string
123       description: the name of security group
124       default: nimbus_security_group
125     pcm_volumes:
126       label: CPS Cluman Cinder Volume
127       hidden: false
128       immutable: false
129       annotations:
130         source:
131           type: org.openecomp.annotations.Source
132           properties:
133             vf_module_label:
134             - hot-nimbus-pcm_v0.4
135             source_type: HEAT
136             param_name: pcm_volumes
137       type: list
138       description: CPS Cluman Cinder Volume
139       default:
140       - 249cb355-8fdf-4382-9c3c-a2ebe767d45b
141       entry_schema:
142         type: string
143     compute_image_name:
144       hidden: false
145       immutable: false
146       annotations:
147         source:
148           type: org.openecomp.annotations.Source
149           properties:
150             vf_module_label:
151             - hot-nimbus-pcm_v0.4
152             source_type: HEAT
153             param_name: compute_image_name
154       type: string
155     pcm_flavor_name:
156       label: PCRF CM flavor name
157       hidden: false
158       immutable: false
159       annotations:
160         source:
161           type: org.openecomp.annotations.Source
162           properties:
163             vf_module_label:
164             - hot-nimbus-pcm_v0.4
165             source_type: HEAT
166             param_name: pcm_flavor_name
167       type: string
168       description: flavor name of PCRF CM instance
169       default: cps
170     cps_net_name:
171       label: CPS network name
172       hidden: false
173       immutable: false
174       annotations:
175         source:
176           type: org.openecomp.annotations.Source
177           properties:
178             vf_module_label:
179             - hot-nimbus-pcm_v0.4
180             source_type: HEAT
181             param_name: cps_net_name
182       type: string
183       description: CPS network name
184       default: int_pcrf_net_0
185     cps_net_mask:
186       label: CPS network mask
187       hidden: false
188       immutable: false
189       annotations:
190         source:
191           type: org.openecomp.annotations.Source
192           properties:
193             vf_module_label:
194             - hot-nimbus-pcm_v0.4
195             source_type: HEAT
196             param_name: cps_net_mask
197       type: string
198       description: CPS network mask
199       default: 255.255.255.0
200     oam_net_mask:
201       label: CPS network mask
202       hidden: false
203       immutable: false
204       annotations:
205         source:
206           type: org.openecomp.annotations.Source
207           properties:
208             vf_module_label:
209             - hot-nimbus-pcm_v0.4
210             source_type: HEAT
211             param_name: oam_net_mask
212       type: string
213       description: CPS network mask
214       default: 255.255.255.0
215     oam_net_name:
216       label: OAM network name
217       hidden: false
218       immutable: false
219       annotations:
220         source:
221           type: org.openecomp.annotations.Source
222           properties:
223             vf_module_label:
224             - hot-nimbus-pcm_v0.4
225             source_type: HEAT
226             param_name: oam_net_name
227       type: string
228       description: OAM network name
229       default: oam_protected_net_0
230     port_net_name:
231       hidden: false
232       immutable: false
233       annotations:
234         source:
235           type: org.openecomp.annotations.Source
236           properties:
237             vf_module_label:
238             - hot-nimbus-pcm_v0.4
239             source_type: HEAT
240             param_name: port_net_name
241       type: string
242   node_templates:
243     server_pcm_001:
244       type: org.openecomp.resource.abstract.nodes.heat.pcm_server
245       directives:
246       - substitutable
247       properties:
248         port_pcm_port_1_network_role_tag: oam
249         availabilityzone_name:
250           get_input: availabilityzone_name
251         port_pcm_port_0_ip_requirements:
252         - ip_version: 4
253           ip_count_required:
254             is_required: true
255           floating_ip_count_required:
256             is_required: false
257         oam_net_gw:
258           get_input: oam_net_gw
259         pcm_image_name:
260           get_input: pcm_image_name
261         security_group_name:
262           get_input: security_group_name
263         cps_net_ip:
264           get_input:
265           - cps_net_ips
266           - 0
267         port_pcm_port_1_mac_requirements:
268           mac_count_required:
269             is_required: false
270         pcm_flavor_name:
271           get_input: pcm_flavor_name
272         service_template_filter:
273           substitute_service_template: nested-pcm_v0.1ServiceTemplate.yaml
274         pcm_vol:
275           get_input:
276           - pcm_volumes
277           - 0
278         port_pcm_port_1_ip_requirements:
279         - ip_version: 4
280           ip_count_required:
281             is_required: true
282           floating_ip_count_required:
283             is_required: false
284         port_pcm_port_0_network_role_tag: cps
285         port_pcm_port_0_mac_requirements:
286           mac_count_required:
287             is_required: false
288         pcm_server_name:
289           get_input:
290           - pcm_server_names
291           - 0
292         cps_net_name:
293           get_input: cps_net_name
294         cps_net_mask:
295           get_input: cps_net_mask
296         oam_net_ip:
297           get_input:
298           - oam_net_ips
299           - 0
300         oam_net_mask:
301           get_input: oam_net_mask
302         oam_net_name:
303           get_input: oam_net_name
304     packet_mirror_network:
305       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
306       properties:
307         network_name:
308           get_input: port_net_name
309       requirements:
310       - dependency:
311           capability: tosca.capabilities.Node
312           node: server_pcm_001
313           relationship: tosca.relationships.DependsOn
314     abstract_compute:
315       type: org.openecomp.resource.abstract.nodes.compute
316       directives:
317       - substitutable
318       properties:
319         compute_compute_user_data_format:
320         - get_attribute:
321           - server_pcm_001
322           - oam_net_gw
323         compute_compute_name:
324         - compute_name: null
325         vm_flavor_name:
326           compute_flavor_name: null
327         vm_image_name:
328           get_input: compute_image_name
329         port_compute_port_network:
330         - get_input: port_net_name
331         port_compute_port_network_role_tag: port
332         compute_compute_metadata:
333         - get_attribute:
334           - server_pcm_001
335           - server_pcm_id
336         port_compute_port_mac_requirements:
337           mac_count_required:
338             is_required: false
339         port_compute_port_ip_requirements:
340         - ip_version: 4
341           ip_count_required:
342             is_required: false
343           floating_ip_count_required:
344             is_required: false
345         service_template_filter:
346           substitute_service_template: Nested_computeServiceTemplate.yaml
347           count: 1
348         index_value:
349           get_property:
350           - SELF
351           - service_template_filter
352           - index_value
353   groups:
354     hot-nimbus-pcm_v0.4_group:
355       type: org.openecomp.groups.heat.HeatStack
356       properties:
357         heat_file: ../Artifacts/hot-nimbus-pcm_v0.4.yaml
358         description: heat template that creates PCRF Cluman stack
359       members:
360       - server_pcm_001
361       - packet_mirror_network
362       - abstract_compute