c588790442319aa20bd395b1c654f6079fb9cec7
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / fulltest / nestedSingleCompute / nestedNodesGetAttrIn / 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         metadata:
153           get_attribute:
154           - compute_port_0
155           - device_id
156         availabilityzone_name:
157           get_input: availabilityzone_name
158         oam_net_gw:
159           get_input: oam_net_gw
160         pcm_image_name:
161           get_input: pcm_image_name
162         security_group_name:
163           get_input: security_group_name
164         cps_net_ip:
165           get_input:
166           - cps_net_ips
167           - 0
168         pcm_flavor_name:
169           get_input: pcm_flavor_name
170         key_name:
171           get_attribute:
172           - abstract_oam_server_0
173           - accessIPv4
174         service_template_filter:
175           substitute_service_template: nested-pcm_v0.1ServiceTemplate.yaml
176         user_data_format:
177           get_attribute:
178           - abstract_pcm_server_0
179           - oam_net_gw
180         pcm_vol:
181           get_input:
182           - pcm_volumes
183           - 0
184         pcm_server_name:
185           get_input:
186           - pcm_server_names
187           - 0
188         cps_net_name:
189           get_input: cps_net_name
190         cps_net_mask:
191           get_input: cps_net_mask
192         oam_net_ip:
193           get_input:
194           - oam_net_ips
195           - 0
196         oam_net_mask:
197           get_input: oam_net_mask
198         oam_net_name:
199           get_input: oam_net_name
200     abstract_pcm_server_0:
201       type: org.openecomp.resource.abstract.nodes.heat.pcm_server
202       directives:
203       - substitutable
204       properties:
205         pcm_flavor_name:
206           get_input: pcm_flavor_name
207         service_template_filter:
208           substitute_service_template: nested-pcm_v0.1ServiceTemplate.yaml
209         pcm_image_name:
210           get_input: pcm_image_name
211         pcm_server_name:
212           get_input:
213           - pcm_server_names
214           - 0
215     packet_mirror_network:
216       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
217       properties:
218         tenant_id:
219           get_attribute:
220           - abstract_compute
221           - compute_instance_name
222         network_name:
223           get_attribute:
224           - abstract_pcm_server_1
225           - instance_name
226     abstract_oam_server_0:
227       type: org.openecomp.resource.abstract.nodes.heat.oam_server
228       directives:
229       - substitutable
230       properties:
231         availabilityzone_name:
232           get_input: availabilityzone_name
233         oam_net_gw:
234           get_input: oam_net_gw
235         oam_flavor_name:
236           get_input: oam_flavor_name
237         security_group_name:
238           get_input: security_group_name
239         cps_net_ip:
240           get_input:
241           - cps_net_ips
242           - 0
243         oam_server_name:
244           get_input:
245           - oam_server_names
246           - 0
247         service_template_filter:
248           substitute_service_template: nested-oam_v0.1ServiceTemplate.yaml
249         pcm_vol:
250           get_input:
251           - pcm_volumes
252           - 0
253         oam_image_name:
254           get_input: oam_image_name
255         cps_net_name:
256           get_input: cps_net_name
257         cps_net_mask:
258           get_input: cps_net_mask
259         oam_net_ip:
260           get_input:
261           - oam_net_ips
262           - 0
263         oam_net_mask:
264           get_input: oam_net_mask
265         oam_net_name:
266           get_input: oam_net_name
267     compute_port_0:
268       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
269       properties:
270         ip_requirements:
271         - ip_version: 4
272           ip_count_required:
273             is_required: false
274           floating_ip_count_required:
275             is_required: false
276         mac_requirements:
277           mac_count_required:
278             is_required: false
279         network:
280           get_input: net_name
281     abstract_compute:
282       type: org.openecomp.resource.abstract.nodes.compute
283       directives:
284       - substitutable
285       properties:
286         compute_compute_user_data_format:
287         - get_attribute:
288           - abstract_pcm_server_1
289           - oam_net_gw
290         vm_image_name:
291           get_input: compute_image_name
292         compute_compute_metadata:
293         - get_attribute:
294           - compute_port_0
295           - device_id
296         compute_compute_name:
297         - compute_name: null
298         vm_flavor_name:
299           compute_flavor_name: null
300         compute_compute_config_drive:
301         - get_attribute:
302           - compute_port_0
303           - tenant_id
304           - port_security_enabled
305           - device_id
306           - qos_policy
307           - allowed_address_pairs
308           - show
309           - device_owner
310           - network
311           - security_groups
312           - fixed_ips
313           - mac_address
314           - admin_state_up
315           - name
316           - subnets
317           - status
318         service_template_filter:
319           substitute_service_template: Nested_computeServiceTemplate.yaml
320           count: 1
321         index_value:
322           get_property:
323           - SELF
324           - service_template_filter
325           - index_value
326   groups:
327     hot-nimbus-pcm_v0.4_group:
328       type: org.openecomp.groups.heat.HeatStack
329       properties:
330         heat_file: ../Artifacts/hot-nimbus-pcm_v0.4.yaml
331         description: heat template that creates PCRF Cluman stack
332       members:
333       - packet_mirror_network
334       - compute_port_0
335       - abstract_compute
336       - abstract_pcm_server_0
337       - abstract_oam_server_0
338       - abstract_pcm_server_1