8e6142435ec07f927c242bac30a24a3783476fa8
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / unifiedComposition / creSubstitutionServiceTemplate / WithOutputParameters / noConsolidation / in / 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 node_types:
8   org.openecomp.resource.vfc.nodes.heat.FSB1:
9     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
10 topology_template:
11   inputs:
12     Internal2_name:
13       label: Internal2_name
14       hidden: false
15       immutable: false
16       type: string
17       description: Internal2_name
18     Internal1_shared:
19       label: Internal1_shared
20       hidden: false
21       immutable: false
22       type: string
23       description: Internal1_shared
24     FSB1_volume_name:
25       label: FSB1_volume
26       hidden: false
27       immutable: false
28       type: string
29       description: FSB1_volume_1
30     jsa_cidr:
31       label: jsa_cidr
32       hidden: false
33       immutable: false
34       type: string
35       description: jsa_cidr
36       default: 107.243.7.128/26
37     availabilityzone_name:
38       label: availabilityzone_name
39       hidden: false
40       immutable: false
41       type: string
42       description: availabilityzone_name
43     fsb1-name:
44       label: FSB1_name
45       hidden: false
46       immutable: false
47       type: string
48       description: FSB1_name
49     pcm_image_name:
50       label: pcm_image_name
51       hidden: false
52       immutable: false
53       type: string
54       description: pcm_image_name
55     Internal2_external:
56       label: Internal2_external
57       hidden: false
58       immutable: false
59       type: string
60       description: Internal2_external
61     Internal2_forwarding_mode:
62       label: Internal2_forwarding_mode
63       hidden: false
64       immutable: false
65       type: string
66       description: Internal2_forwarding_mode
67     pcrf_psm_flavor_name:
68       label: pcrf_psm_flavor_name
69       hidden: false
70       immutable: false
71       type: string
72       description: pcrf_psm_flavor_name
73     pcrf_psm_image_name:
74       label: pcrf_psm_image_name
75       hidden: false
76       immutable: false
77       type: string
78       description: pcrf_psm_image_name
79     pcrf_vnf_id:
80       hidden: false
81       immutable: false
82       type: string
83       description: prop
84     FSB_1_image:
85       label: MME_FSB1
86       hidden: false
87       immutable: false
88       type: string
89       description: MME_FSB1_15B-CP04-r5a01
90     snapshot01:
91       hidden: false
92       immutable: false
93       type: string
94       description: prop
95     volume_size:
96       label: volume size
97       hidden: false
98       immutable: false
99       type: float
100       description: my volume size 320GB
101     snapshot02:
102       hidden: false
103       immutable: false
104       type: string
105       description: prop
106     fsb1-Internal1-mac:
107       label: FSB1_internal_mac
108       hidden: false
109       immutable: false
110       type: string
111       description: FSB1_internal_mac
112     Internal2_shared:
113       label: Internal2_shared
114       hidden: false
115       immutable: false
116       type: string
117       description: Internal2_shared
118     pcm_server_name:
119       label: pcm_server_name
120       hidden: false
121       immutable: false
122       type: string
123       description: pcm_server_name
124     cps_net_mask:
125       hidden: false
126       immutable: false
127       type: string
128       description: prop
129     Internal1_net_name:
130       label: Internal1_net_name
131       hidden: false
132       immutable: false
133       type: string
134       description: Internal1_net_name
135     oam_net_name:
136       label: oam_net_name
137       hidden: false
138       immutable: false
139       type: string
140       description: oam_net_name
141     fsb1-flavor:
142       label: FSB1_flavor
143       hidden: false
144       immutable: false
145       type: string
146       description: FSB1_flavor
147     fsb1-Internal2-mac:
148       label: FSB1_internal_mac
149       hidden: false
150       immutable: false
151       type: string
152       description: FSB1_internal_mac
153     pcm_vol_01:
154       hidden: false
155       immutable: false
156       type: string
157       description: prop
158     volume_type:
159       label: volume type
160       hidden: false
161       immutable: false
162       type: string
163       description: volume type Gold
164     fsb1-zone:
165       label: FSB1_zone
166       hidden: false
167       immutable: false
168       type: string
169       description: FSB1_zone
170     fsb_zone:
171       label: FSB1_zone
172       hidden: false
173       immutable: false
174       type: string
175       description: FSB1_zone
176     oam_net_gw:
177       hidden: false
178       immutable: false
179       type: string
180       description: prop
181     VMME_FSB1_boot_volume:
182       hidden: false
183       immutable: false
184       type: string
185     network_name:
186       hidden: false
187       immutable: false
188       type: string
189       description: prop
190     security_group_name:
191       hidden: false
192       immutable: false
193       type: list
194       description: CMAUI1, CMAUI2 server names
195       entry_schema:
196         type: string
197     cps_net_ip:
198       hidden: false
199       immutable: false
200       type: string
201       description: prop
202     jsa_net_name:
203       label: jsa_net_name
204       hidden: false
205       immutable: false
206       type: string
207       description: jsa_net_name
208       default: jsa_log_net_0
209     pcrf_psm_server_name:
210       label: pcrf_psm_server_name
211       hidden: false
212       immutable: false
213       type: string
214       description: pcrf_psm_server_name
215     pcm_flavor_name:
216       label: pcm_flavor_name
217       hidden: false
218       immutable: false
219       type: string
220       description: pcm_flavor_name
221     oam_net_id:
222       label: oam_net_id
223       hidden: false
224       immutable: false
225       type: string
226       description: oam_net_id
227     pcrf_cps_net_ip:
228       hidden: false
229       immutable: false
230       type: string
231       description: prop
232     fsb2-Internal1-mac:
233       label: FSB1_internal_mac
234       hidden: false
235       immutable: false
236       type: string
237       description: FSB1_internal_mac
238     Internal1_forwarding_mode:
239       label: Internal1_forwarding_mode
240       hidden: false
241       immutable: false
242       type: string
243       description: Internal1_forwarding_mode
244     pcrf_cps_net_name:
245       label: pcrf_cps_net_name
246       hidden: false
247       immutable: false
248       type: string
249       description: pcrf_cps_net_name
250     pcm_vol:
251       hidden: false
252       immutable: false
253       type: string
254       description: prop
255     cps_net_name:
256       label: cps_net_name
257       hidden: false
258       immutable: false
259       type: string
260       description: cps_net_name
261     oam_net_ip:
262       hidden: false
263       immutable: false
264       type: string
265       description: prop
266     oam_net_mask:
267       hidden: false
268       immutable: false
269       type: string
270       description: prop
271     fsb1-oam-ip:
272       hidden: false
273       immutable: false
274       type: string
275       description: prop
276     pcrf_security_group_name:
277       hidden: false
278       immutable: false
279       type: list
280       description: CMAUI1, CMAUI2 server names
281       entry_schema:
282         type: string
283     Internal1_external:
284       label: Internal1_external
285       hidden: false
286       immutable: false
287       type: string
288       description: Internal1_external
289   node_templates:
290     FSB2_Internal2:
291       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
292       properties:
293         mac_address:
294           get_input: fsb1-Internal2-mac
295         network: Internal2-net
296       requirements:
297       - binding:
298           capability: tosca.capabilities.network.Bindable
299           node: FSB1
300           relationship: tosca.relationships.network.BindsTo
301     FSB1_Internal1:
302       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
303       properties:
304         mac_address:
305           get_input: fsb1-Internal1-mac
306         network: Internal1-net
307       requirements:
308       - binding:
309           capability: tosca.capabilities.network.Bindable
310           node: FSB1
311           relationship: tosca.relationships.network.BindsTo
312       - link:
313           capability: tosca.capabilities.network.Linkable
314           node: jsa_net1
315           relationship: tosca.relationships.network.LinksTo
316     FSB1_OAM:
317       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
318       properties:
319         fixed_ips:
320         - ip_address:
321             get_input: fsb1-oam-ip
322         network: jsa_net1
323       requirements:
324       - binding:
325           capability: tosca.capabilities.network.Bindable
326           node: FSB1
327           relationship: tosca.relationships.network.BindsTo
328       - link:
329           capability: tosca.capabilities.network.Linkable
330           node: jsa_net1
331           relationship: tosca.relationships.network.LinksTo
332     jsa_net1:
333       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
334       properties:
335         shared: true
336         network_name:
337          get_attribute:
338           - FSB1_Internal1
339           - network_id
340         dhcp_agent_ids:
341          get_attribute:
342           - FSB1_template
343           - addresses
344         tenant_id:
345          get_attribute:
346           - FSB2_Internal2
347           - network_id
348         qos_policy:
349          get_attribute:
350           - FSB2_Internal2
351           - network_id
352     FSB1_template:
353       type: org.openecomp.resource.vfc.nodes.heat.FSB1
354       properties:
355         flavor:
356           get_input: fsb1-flavor
357         availability_zone:
358           get_input: fsb_zone
359         metadata:
360           write_files:
361           - path: /etc/sysconfig/network-scripts/ifcfg-eth0
362             permissions: '0644'
363             content:
364               str_replace:
365                 template:
366                   get_artifact:
367                   - SELF
368                   - nimbus-ethernet
369                 params:
370                   $dev: eth0
371                   $netmask:
372                     get_input: cps_net_mask
373                   $ip:
374                     get_input: cps_net_ip
375           - path: /etc/sysconfig/network-scripts/ifcfg-eth1
376             permissions: '0644'
377             content:
378               str_replace:
379                 template:
380                   get_artifact:
381                   - SELF
382                   - nimbus-ethernet-gw
383                 params:
384                   $dev: eth1
385                   $netmask:
386                     get_input: oam_net_mask
387                   $gateway:
388                     get_input: oam_net_gw
389                   $ip:
390                     get_input: oam_net_ip
391         name:
392           get_input: fsb1-name
393       artifacts:
394         nimbus-ethernet-gw:
395           type: tosca.artifacts.Deployment
396           file: ../Artifacts/nimbus-ethernet-gw
397         nimbus-ethernet:
398           type: tosca.artifacts.Deployment
399           file: ../Artifacts/nimbus-ethernet
400       requirements:
401       - local_storage:
402           capability: tosca.capabilities.Attachment
403           node: cmaui_volume1
404           relationship: cmaui_volume_attachment
405       - local_storage:
406           capability: tosca.capabilities.Attachment
407           node: cmaui_volume2
408           relationship: cmaui_volume_attachment
409     cmaui_volume1:
410       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
411       properties:
412         volume_type: {get_attribute: [ FSB1_template, addresses, {get_attribute: [ FSB2_Internal2,index ] } ]}
413         size: { get_attribute: [FSB1_Internal1, addresses, get_input: [CMAUI_volume_type,{get_attribute: [FSB1_OAM,oam_index ] }], 0, "OS-EXT-IPS-MAC:mac_addr"] }
414     cmaui_volume2:
415       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
416       properties:
417         volume_type:
418           get_input: CMAUI_volume_type
419         size: { get_input: [a, addresses, get_input: [CMAUI_volume_type, {get_attribute: [FSB1_template,accessIPv6 ] }], 0, "OS-EXT-IPS-MAC:mac_addr"] }
420   groups:
421     ep-jsa_net_group:
422       type: org.openecomp.groups.heat.HeatStack
423       properties:
424         heat_file: ../Artifacts/ep-jsa_net.yaml
425         description: |
426           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
427       members:
428       - FSB2_Internal2
429       - FSB1_Internal1
430       - FSB1_OAM
431       - FSB1_template