511aa0ccbe286b28ef8671775638a245cfbf4d2f
[sdc.git] /
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_Internal_2:
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         subinterface_indicator: false
108       requirements:
109       - binding:
110           capability: tosca.capabilities.network.Bindable
111           node: FSB2_template
112           relationship: tosca.relationships.network.BindsTo
113       - link:
114           capability: tosca.capabilities.network.Linkable
115           node: jsa_net
116           relationship: tosca.relationships.network.LinksTo
117     FSB2_Internal_1:
118       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
119       properties:
120         mac_address:
121           get_input: fsb2-Internal1-mac
122         network: Internal2-net-fsb2-Internal1
123         subinterface_indicator: false
124       requirements:
125       - binding:
126           capability: tosca.capabilities.network.Bindable
127           node: FSB1_template
128           relationship: tosca.relationships.network.BindsTo
129       - link:
130           capability: tosca.capabilities.network.Linkable
131           node: jsa_net
132           relationship: tosca.relationships.network.LinksTo
133     FSB1_Internal_2:
134       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
135       properties:
136         mac_address:
137           get_input: fsb1-Internal2-mac
138         network: Internal1-net-fsb1-Internal2
139         subinterface_indicator: false
140       requirements:
141       - binding:
142           capability: tosca.capabilities.network.Bindable
143           node: FSB2_template
144           relationship: tosca.relationships.network.BindsTo
145       - link:
146           capability: tosca.capabilities.network.Linkable
147           node: jsa_net1
148           relationship: tosca.relationships.network.LinksTo
149     FSB1_Internal_1:
150       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
151       properties:
152         mac_address:
153           get_input: fsb1-Internal1-mac
154         network: Internal1-net-fsb1-Internal1
155         subinterface_indicator: false
156       requirements:
157       - binding:
158           capability: tosca.capabilities.network.Bindable
159           node: FSB1_template
160           relationship: tosca.relationships.network.BindsTo
161       - link:
162           capability: tosca.capabilities.network.Linkable
163           node: jsa_net1
164           relationship: tosca.relationships.network.LinksTo
165     jsa_net:
166       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
167       properties:
168         shared: true
169         network_name:
170           get_input: jsa_net_name
171     jsa_net1:
172       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
173       properties:
174         shared: true
175         network_name:
176           get_attribute:
177           - abstract_FSB
178           - FSB_FSB1_Internal_network_id
179         dhcp_agent_ids:
180           get_attribute:
181           - abstract_FSB
182           - FSB_addresses
183         tenant_id:
184           get_attribute:
185           - abstract_FSB
186           - FSB_FSB2_Internal_network_id
187         qos_policy:
188           get_attribute:
189           - abstract_FSB
190           - FSB_FSB2_Internal_network_id
191     FSB1_template:
192       type: org.openecomp.resource.vfc.nodes.heat.FSB
193       properties:
194         flavor:
195           get_input: fsb-flavor
196         image:
197           get_input: fsb-image
198         admin_pass: STATIC-DATA-FSB1
199         user_data: OPTIONAL-DATA-FSB1
200         availability_zone:
201           get_input: fsb1_zone
202         metadata:
203           write_files:
204           - path: /path1/etc/sysconfig/network-scripts/ifcfg-eth0
205           - path: /path2/etc/sysconfig/network-scripts/ifcfg-eth1
206         name:
207           get_input: fsb1-name
208       requirements:
209       - dependency:
210           capability: tosca.capabilities.Node
211           node: packet_mirror_network
212           relationship: tosca.relationships.DependsOn
213       - local_storage:
214           capability: tosca.capabilities.Attachment
215           node: cmaui_volume1
216           relationship: cmaui_volume_attachment
217       - local_storage:
218           capability: tosca.capabilities.Attachment
219           node: cmaui_volume2
220           relationship: cmaui_volume_attachment
221     FSB2_template:
222       type: org.openecomp.resource.vfc.nodes.heat.FSB
223       properties:
224         flavor:
225           get_input: fsb-flavor
226         image:
227           get_input: fsb-image
228         admin_pass: STATIC-DATA-FSB2
229         availability_zone:
230           get_input: fsb2_zone
231         metadata:
232           write_files:
233           - path: /path3/etc/sysconfig/network-scripts/ifcfg-eth0
234           - path: /path4/etc/sysconfig/network-scripts/ifcfg-eth1
235         name:
236           get_input: fsb2-name
237       requirements:
238       - dependency:
239           capability: tosca.capabilities.Node
240           node: packet_mirror_network
241           relationship: tosca.relationships.DependsOn
242       - local_storage:
243           capability: tosca.capabilities.Attachment
244           node: cmaui_volume1
245           relationship: cmaui_volume_attachment
246       - local_storage:
247           capability: tosca.capabilities.Attachment
248           node: cmaui_volume2
249           relationship: cmaui_volume_attachment
250     cmaui_volume1:
251       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
252       properties:
253         volume_type:
254           get_input: CMAUI_volume_type
255         size: '(get_input : cmaui_cinder_volume_size) * 1024'
256     cmaui_volume2:
257       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
258       properties:
259         volume_type:
260           get_input: CMAUI_volume_type
261         size: '(get_input : cmaui_cinder_volume_size) * 1024'
262     cmaui_volume3:
263       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
264       properties:
265         volume_type:
266           get_input: CMAUI_volume_type
267         size: '(get_input : cmaui_cinder_volume_size) * 1024'
268     cmaui_volume4:
269       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
270       properties:
271         volume_type:
272           get_input: CMAUI_volume_type
273         size: '(get_input : cmaui_cinder_volume_size) * 1024'
274     packet_mirror_network:
275       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
276       properties:
277         network_name:
278           get_input: packet_mirror_network_name
279     abstract_FSB:
280       type: org.openecomp.resource.abstract.nodes.FSB
281       directives:
282       - substitutable
283       properties:
284         port_FSB1_Internal_mac_address:
285           get_input: fsb1-Internal1-mac
286         compute_FSB_user_data:
287         - OPTIONAL-DATA-FSB1
288         - null
289         vm_flavor_name:
290           get_input: fsb-flavor
291         vm_image_name:
292           get_input: fsb-image
293         compute_FSB_admin_pass:
294         - STATIC-DATA-FSB1
295         - STATIC-DATA-FSB2
296         port_FSB1_Internal_subinterface_indicator:
297         - false
298         - false
299         port_FSB1_Internal_network:
300         - Internal1-net-fsb1-Internal1
301         - Internal1-net-fsb1-Internal2
302         port_FSB2_Internal_mac_address:
303           get_input: fsb2-Internal1-mac
304         port_FSB2_Internal_network:
305         - Internal2-net-fsb2-Internal1
306         - Internal2-net-fsb2-Internal2
307         compute_FSB_metadata:
308         - write_files:
309           - path: /path1/etc/sysconfig/network-scripts/ifcfg-eth0
310           - path: /path2/etc/sysconfig/network-scripts/ifcfg-eth1
311         - write_files:
312           - path: /path3/etc/sysconfig/network-scripts/ifcfg-eth0
313           - path: /path4/etc/sysconfig/network-scripts/ifcfg-eth1
314         port_FSB2_Internal_subinterface_indicator:
315         - false
316         - false
317         compute_FSB_availability_zone:
318         - get_input: fsb1_zone
319         - get_input: fsb2_zone
320         compute_FSB_name:
321         - get_input: fsb1-name
322         - get_input: fsb2-name
323         service_template_filter:
324           substitute_service_template: Nested_FSBServiceTemplate.yaml
325           count: 2
326         index_value:
327           get_property:
328           - SELF
329           - service_template_filter
330           - index_value
331       requirements:
332       - dependency_FSB:
333           capability: tosca.capabilities.Node
334           node: packet_mirror_network
335           relationship: tosca.relationships.DependsOn
336       - link_FSB_FSB1_Internal:
337           capability: tosca.capabilities.network.Linkable
338           node: jsa_net1
339           relationship: tosca.relationships.network.LinksTo
340       - link_FSB_FSB2_Internal:
341           capability: tosca.capabilities.network.Linkable
342           node: jsa_net
343           relationship: tosca.relationships.network.LinksTo
344       - local_storage_FSB:
345           capability: tosca.capabilities.Attachment
346           node: cmaui_volume1
347           relationship: cmaui_volume_attachment
348       - local_storage_FSB:
349           capability: tosca.capabilities.Attachment
350           node: cmaui_volume2
351           relationship: cmaui_volume_attachment
352   groups:
353     ep-jsa_net_group:
354       type: org.openecomp.groups.heat.HeatStack
355       properties:
356         heat_file: ../Artifacts/ep-jsa_net.yaml
357         description: |
358           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
359       members:
360       - FSB1_Internal_1
361       - FSB1_Internal_2
362       - FSB2_Internal_1
363       - FSB2_Internal_2
364       - FSB1_template
365       - FSB2_template
366       - jsa_net
367       - jsa_net1
368       - packet_mirror_network_name