91253aebb61e528c390cb070d531d844acaae81e
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / fulltest / nestedSingleCompute / nestedWithOneComputeDiffPortType / 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     net_name:
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
179             source_type: HEAT
180             param_name: net_name
181       type: string
182     cps_net_name:
183       label: CPS network name
184       hidden: false
185       immutable: false
186       annotations:
187         source:
188           type: org.openecomp.annotations.Source
189           properties:
190             vf_module_label:
191             - hot-nimbus-pcm_v0.4
192             source_type: HEAT
193             param_name: cps_net_name
194       type: string
195       description: CPS network name
196       default: int_pcrf_net_0
197     cps_net_mask:
198       label: CPS network mask
199       hidden: false
200       immutable: false
201       annotations:
202         source:
203           type: org.openecomp.annotations.Source
204           properties:
205             vf_module_label:
206             - hot-nimbus-pcm_v0.4
207             source_type: HEAT
208             param_name: cps_net_mask
209       type: string
210       description: CPS network mask
211       default: 255.255.255.0
212     oam_net_mask:
213       label: CPS network mask
214       hidden: false
215       immutable: false
216       annotations:
217         source:
218           type: org.openecomp.annotations.Source
219           properties:
220             vf_module_label:
221             - hot-nimbus-pcm_v0.4
222             source_type: HEAT
223             param_name: oam_net_mask
224       type: string
225       description: CPS network mask
226       default: 255.255.255.0
227     oam_net_name:
228       label: OAM network name
229       hidden: false
230       immutable: false
231       annotations:
232         source:
233           type: org.openecomp.annotations.Source
234           properties:
235             vf_module_label:
236             - hot-nimbus-pcm_v0.4
237             source_type: HEAT
238             param_name: oam_net_name
239       type: string
240       description: OAM network name
241       default: oam_protected_net_0
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_1port_0_mac_requirements:
249           mac_count_required:
250             is_required: false
251         port_pcm_1port_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         availabilityzone_name:
258           get_input: availabilityzone_name
259         port_pcm_1port_0_network_role_tag: cps
260         oam_net_gw:
261           get_input: oam_net_gw
262         pcm_image_name:
263           get_input: pcm_image_name
264         port_pcm_2port_1_network_role_tag: oam
265         security_group_name:
266           get_input: security_group_name
267         cps_net_ip:
268           get_input:
269           - cps_net_ips
270           - 0
271         port_pcm_2port_1_mac_requirements:
272           mac_count_required:
273             is_required: false
274         port_pcm_2port_1_ip_requirements:
275         - ip_version: 4
276           ip_count_required:
277             is_required: true
278           floating_ip_count_required:
279             is_required: false
280         pcm_flavor_name:
281           get_input: pcm_flavor_name
282         service_template_filter:
283           substitute_service_template: nested-pcm_v0.1ServiceTemplate.yaml
284         pcm_vol:
285           get_input:
286           - pcm_volumes
287           - 0
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: net_name
309       requirements:
310       - dependency:
311           capability: tosca.capabilities.Node
312           node: server_pcm_001
313           relationship: tosca.relationships.DependsOn
314     compute_port_0:
315       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
316       properties:
317         ip_requirements:
318         - ip_version: 4
319           ip_count_required:
320             is_required: false
321           floating_ip_count_required:
322             is_required: false
323         mac_requirements:
324           mac_count_required:
325             is_required: false
326         network:
327           get_input: net_name
328     abstract_compute:
329       type: org.openecomp.resource.abstract.nodes.compute
330       directives:
331       - substitutable
332       properties:
333         compute_compute_user_data_format:
334         - get_attribute:
335           - server_pcm_001
336           - oam_net_gw
337         vm_image_name:
338           get_input: compute_image_name
339         compute_compute_metadata:
340         - get_attribute:
341           - server_pcm_001
342           - server_pcm_id
343         compute_compute_name:
344         - compute_name: null
345         vm_flavor_name:
346           compute_flavor_name: null
347         compute_compute_config_drive:
348         - get_attribute:
349           - compute_port_0
350           - tenant_id
351           - port_security_enabled
352           - device_id
353           - qos_policy
354           - allowed_address_pairs
355           - show
356           - device_owner
357           - network
358           - security_groups
359           - fixed_ips
360           - mac_address
361           - admin_state_up
362           - name
363           - subnets
364           - status
365         service_template_filter:
366           substitute_service_template: Nested_computeServiceTemplate.yaml
367           count: 1
368         index_value:
369           get_property:
370           - SELF
371           - service_template_filter
372           - index_value
373   groups:
374     hot-nimbus-pcm_v0.4_group:
375       type: org.openecomp.groups.heat.HeatStack
376       properties:
377         heat_file: ../Artifacts/hot-nimbus-pcm_v0.4.yaml
378         description: heat template that creates PCRF Cluman stack
379       members:
380       - server_pcm_001
381       - packet_mirror_network
382       - compute_port_0
383       - abstract_compute