[SDC-29] rebase continue work to align source
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / unifiedComposition / updVolumes / consolidation / 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 node_types:
10   org.openecomp.resource.vfc.nodes.heat.FSB:
11     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
12 topology_template:
13   inputs:
14     fsb1-name:
15       label: FSB1_name
16       hidden: false
17       immutable: false
18       type: string
19       description: FSB1_name
20     fsb2-name:
21       label: FSB2_name
22       hidden: false
23       immutable: false
24       type: string
25       description: FSB2_name
26     cmaui_cinder_volume_size:
27       label: volume size
28       hidden: false
29       immutable: false
30       type: float
31       description: my volume size 320GB
32     fsb-flavor:
33       label: FSB1_flavor
34       hidden: false
35       immutable: false
36       type: string
37       description: FSB1_flavor
38     fsb-image:
39       label: FSB1_image
40       hidden: false
41       immutable: false
42       type: string
43       description: FSB1_image
44     fsb1-Internal1-mac:
45       label: FSB1_internal_mac
46       hidden: false
47       immutable: false
48       type: string
49       description: FSB1_internal_mac
50     fsb1-Internal2-mac:
51       label: FSB1_internal_mac
52       hidden: false
53       immutable: false
54       type: string
55       description: FSB1_internal_mac
56     fsb1-zone:
57       label: FSB1_zone
58       hidden: false
59       immutable: false
60       type: string
61       description: FSB1_zone
62     fsb2_zone:
63       label: FSB2_zone
64       hidden: false
65       immutable: false
66       type: string
67       description: FSB2_zone
68     network_name:
69       hidden: false
70       immutable: false
71       type: string
72       description: prop
73     fsb2-Internal1-mac:
74       label: FSB1_internal_mac
75       hidden: false
76       immutable: false
77       type: string
78       description: FSB1_internal_mac
79     fsb2-Internal2-mac:
80       label: FSB1_internal_mac
81       hidden: false
82       immutable: false
83       type: string
84       description: FSB1_internal_mac
85     fsb1-oam-ip:
86       hidden: false
87       immutable: false
88       type: string
89       description: prop
90     jsa_net_name:
91       hidden: false
92       immutable: false
93       type: string
94       description: prop
95     packet_mirror_network_name:
96       hidden: false
97       immutable: false
98       type: string
99       description: prop
100   node_templates:
101     FSB2_Internal2:
102       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
103       properties:
104         mac_address:
105           get_input: fsb2-Internal2-mac
106         network: Internal2-net-fsb2-Internal2
107       requirements:
108       - binding:
109           capability: tosca.capabilities.network.Bindable
110           node: FSB2_template
111           relationship: tosca.relationships.network.BindsTo
112       - link:
113           capability: tosca.capabilities.network.Linkable
114           node: jsa_net
115           relationship: tosca.relationships.network.LinksTo
116     FSB2_Internal1:
117       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
118       properties:
119         mac_address:
120           get_input: fsb2-Internal1-mac
121         network: Internal2-net-fsb2-Internal1
122       requirements:
123       - binding:
124           capability: tosca.capabilities.network.Bindable
125           node: FSB1_template
126           relationship: tosca.relationships.network.BindsTo
127       - link:
128           capability: tosca.capabilities.network.Linkable
129           node: jsa_net
130           relationship: tosca.relationships.network.LinksTo
131     FSB1_Internal2:
132       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
133       properties:
134         mac_address:
135           get_input: fsb1-Internal2-mac
136         network: Internal1-net-fsb1-Internal2
137       requirements:
138       - binding:
139           capability: tosca.capabilities.network.Bindable
140           node: FSB2_template
141           relationship: tosca.relationships.network.BindsTo
142       - link:
143           capability: tosca.capabilities.network.Linkable
144           node: jsa_net1
145           relationship: tosca.relationships.network.LinksTo
146     FSB1_Internal1:
147       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
148       properties:
149         mac_address:
150           get_input: fsb1-Internal1-mac
151         network: Internal1-net-fsb1-Internal1
152       requirements:
153       - binding:
154           capability: tosca.capabilities.network.Bindable
155           node: FSB1_template
156           relationship: tosca.relationships.network.BindsTo
157       - link:
158           capability: tosca.capabilities.network.Linkable
159           node: jsa_net1
160           relationship: tosca.relationships.network.LinksTo
161     jsa_net:
162       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
163       properties:
164         shared: true
165         network_name:
166           get_input: jsa_net_name
167     jsa_net1:
168       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
169       properties:
170         shared: true
171         network_name:
172           get_attribute:
173           - abstract_FSB
174           - FSB_FSB1_Internal_network_id
175         dhcp_agent_ids:
176           get_attribute:
177           - abstract_FSB
178           - FSB_addresses
179         tenant_id:
180           get_attribute:
181           - abstract_FSB
182           - FSB_FSB2_Internal_network_id
183         qos_policy:
184           get_attribute:
185           - abstract_FSB
186           - FSB_FSB2_Internal_network_id
187     FSB1_template:
188       type: org.openecomp.resource.vfc.nodes.heat.FSB
189       properties:
190         flavor:
191           get_input: fsb-flavor
192         image:
193           get_input: fsb-image
194         admin_pass: STATIC-DATA-FSB1
195         user_data: OPTIONAL-DATA-FSB1
196         availability_zone:
197           get_input: fsb1_zone
198         metadata:
199           write_files:
200           - path: /path1/etc/sysconfig/network-scripts/ifcfg-eth0
201           - path: /path2/etc/sysconfig/network-scripts/ifcfg-eth1
202         name:
203           get_input: fsb1-name
204       requirements:
205       - dependency:
206           capability: tosca.capabilities.Node
207           node: packet_mirror_network
208           relationship: tosca.relationships.DependsOn
209       - local_storage:
210           capability: tosca.capabilities.Attachment
211           node: cmaui_volume1
212           relationship: cmaui_volume_attachment
213       - local_storage:
214           capability: tosca.capabilities.Attachment
215           node: cmaui_volume2
216           relationship: cmaui_volume_attachment
217     FSB2_template:
218       type: org.openecomp.resource.vfc.nodes.heat.FSB
219       properties:
220         flavor:
221           get_input: fsb-flavor
222         image:
223           get_input: fsb-image
224         admin_pass: STATIC-DATA-FSB2
225         availability_zone:
226           get_input: fsb2_zone
227         metadata:
228           write_files:
229           - path: /path3/etc/sysconfig/network-scripts/ifcfg-eth0
230           - path: /path4/etc/sysconfig/network-scripts/ifcfg-eth1
231         name:
232           get_input: fsb2-name
233       requirements:
234       - dependency:
235           capability: tosca.capabilities.Node
236           node: packet_mirror_network
237           relationship: tosca.relationships.DependsOn
238       - local_storage:
239           capability: tosca.capabilities.Attachment
240           node: cmaui_volume1
241           relationship: cmaui_volume_attachment
242       - local_storage:
243           capability: tosca.capabilities.Attachment
244           node: cmaui_volume2
245           relationship: cmaui_volume_attachment
246     cmaui_volume1:
247       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
248       properties:
249         volume_type:
250           get_input: CMAUI_volume_type
251         size: '(get_input : cmaui_cinder_volume_size) * 1024'
252     cmaui_volume2:
253       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
254       properties:
255         volume_type:
256           get_input: CMAUI_volume_type
257         size: '(get_input : cmaui_cinder_volume_size) * 1024'
258     cmaui_volume3:
259       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
260       properties:
261         volume_type:
262           get_input: CMAUI_volume_type
263         size: '(get_input : cmaui_cinder_volume_size) * 1024'
264     cmaui_volume4:
265       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
266       properties:
267         volume_type:
268           get_input: CMAUI_volume_type
269         size: '(get_input : cmaui_cinder_volume_size) * 1024'
270     packet_mirror_network:
271       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
272       properties:
273         network_name:
274           get_input: packet_mirror_network_name
275     abstract_FSB:
276       type: org.openecomp.resource.abstract.nodes.FSB
277       directives:
278       - substitutable
279       properties:
280         port_FSB1_Internal_mac_address:
281         - get_input: fsb1-Internal1-mac
282         - get_input: fsb1-Internal2-mac
283         compute_FSB_user_data:
284         - OPTIONAL-DATA-FSB1
285         - null
286         vm_flavor_name:
287           get_input: fsb-flavor
288         vm_image_name:
289           get_input: fsb-image
290         compute_FSB_admin_pass:
291         - STATIC-DATA-FSB1
292         - STATIC-DATA-FSB2
293         port_FSB1_Internal_network:
294         - Internal1-net-fsb1-Internal1
295         - Internal1-net-fsb1-Internal2
296         port_FSB2_Internal_mac_address:
297         - get_input: fsb2-Internal1-mac
298         - get_input: fsb2-Internal2-mac
299         port_FSB2_Internal_network:
300         - Internal2-net-fsb2-Internal1
301         - Internal2-net-fsb2-Internal2
302         compute_FSB_metadata:
303         - write_files:
304           - path: /path1/etc/sysconfig/network-scripts/ifcfg-eth0
305           - path: /path2/etc/sysconfig/network-scripts/ifcfg-eth1
306         - write_files:
307           - path: /path3/etc/sysconfig/network-scripts/ifcfg-eth0
308           - path: /path4/etc/sysconfig/network-scripts/ifcfg-eth1
309         compute_FSB_availability_zone:
310         - get_input: fsb1_zone
311         - get_input: fsb2_zone
312         compute_FSB_name:
313         - get_input: fsb1-name
314         - get_input: fsb2-name
315         service_template_filter:
316           substitute_service_template: Nested_FSBServiceTemplate.yaml
317           count: 2
318         index_value:
319           get_property:
320           - SELF
321           - service_template_filter
322           - index_value
323       requirements:
324       - dependency_FSB:
325           capability: tosca.capabilities.Node
326           node: packet_mirror_network
327           relationship: tosca.relationships.DependsOn
328       - link_FSB_FSB1_Internal:
329           capability: tosca.capabilities.network.Linkable
330           node: jsa_net1
331           relationship: tosca.relationships.network.LinksTo
332       - link_FSB_FSB2_Internal:
333           capability: tosca.capabilities.network.Linkable
334           node: jsa_net
335           relationship: tosca.relationships.network.LinksTo
336       - local_storage_FSB:
337           capability: tosca.capabilities.Attachment
338           node: cmaui_volume1
339           relationship: cmaui_volume_attachment
340       - local_storage_FSB:
341           capability: tosca.capabilities.Attachment
342           node: cmaui_volume2
343           relationship: cmaui_volume_attachment
344   groups:
345     ep-jsa_net_group:
346       type: org.openecomp.groups.heat.HeatStack
347       properties:
348         heat_file: ../Artifacts/ep-jsa_net.yaml
349         description: |
350           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
351       members:
352       - FSB1_Internal1
353       - FSB1_Internal2
354       - FSB2_Internal1
355       - FSB2_Internal2
356       - FSB1_template
357       - FSB2_template
358       - jsa_net
359       - jsa_net1
360       - packet_mirror_network_name