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