a9d7c6b6ec91d040383c4f76ee75187e40023e4c
[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.cmaui:
11     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
12 topology_template:
13   inputs:
14     cmaui_names:
15       hidden: false
16       immutable: false
17       annotations:
18         source:
19           type: org.openecomp.annotations.Source
20           properties:
21             vf_module_label:
22             - main
23             source_type: HEAT
24             param_name: cmaui_names
25       type: list
26       description: CMAUI1, CMAUI2 server names
27       entry_schema:
28         type: string
29     template_PortTuple_LB1:
30       hidden: false
31       immutable: false
32       annotations:
33         source:
34           type: org.openecomp.annotations.Source
35           properties:
36             vf_module_label:
37             - main
38             source_type: HEAT
39             param_name: template_PortTuple_LB1
40       type: string
41     oam_sec_group_name:
42       hidden: false
43       immutable: false
44       annotations:
45         source:
46           type: org.openecomp.annotations.Source
47           properties:
48             vf_module_label:
49             - main
50             source_type: HEAT
51             param_name: oam_sec_group_name
52       type: string
53     lb_st_interface_type_oam:
54       hidden: false
55       immutable: false
56       annotations:
57         source:
58           type: org.openecomp.annotations.Source
59           properties:
60             vf_module_label:
61             - main
62             source_type: HEAT
63             param_name: lb_st_interface_type_oam
64       type: string
65     virtual_ip_address:
66       hidden: false
67       immutable: false
68       annotations:
69         source:
70           type: org.openecomp.annotations.Source
71           properties:
72             vf_module_label:
73             - main
74             source_type: HEAT
75             param_name: virtual_ip_address
76       type: string
77     security_group_name:
78       hidden: false
79       immutable: false
80       annotations:
81         source:
82           type: org.openecomp.annotations.Source
83           properties:
84             vf_module_label:
85             - main
86             source_type: HEAT
87             param_name: security_group_name
88       type: list
89       description: CMAUI1, CMAUI2 server names
90       entry_schema:
91         type: string
92     jsa_net_name:
93       hidden: false
94       immutable: false
95       annotations:
96         source:
97           type: org.openecomp.annotations.Source
98           properties:
99             vf_module_label:
100             - main
101             source_type: HEAT
102             param_name: jsa_net_name
103       type: string
104       description: network name of jsa log network
105     vlan_ids:
106       hidden: false
107       immutable: false
108       annotations:
109         source:
110           type: org.openecomp.annotations.Source
111           properties:
112             vf_module_label:
113             - main
114             source_type: HEAT
115             param_name: vlan_ids
116       type: string
117     cmaui_image:
118       hidden: false
119       immutable: false
120       annotations:
121         source:
122           type: org.openecomp.annotations.Source
123           properties:
124             vf_module_label:
125             - main
126             source_type: HEAT
127             param_name: cmaui_image
128       type: string
129       description: Image for CMAUI server
130     virtual_ipv6_address:
131       hidden: false
132       immutable: false
133       annotations:
134         source:
135           type: org.openecomp.annotations.Source
136           properties:
137             vf_module_label:
138             - main
139             source_type: HEAT
140             param_name: virtual_ipv6_address
141       type: string
142     cmaui_flavor:
143       hidden: false
144       immutable: false
145       annotations:
146         source:
147           type: org.openecomp.annotations.Source
148           properties:
149             vf_module_label:
150             - main
151             source_type: HEAT
152             param_name: cmaui_flavor
153       type: string
154       description: Flavor for CMAUI server
155     lb_st_vlan_type_oam:
156       hidden: false
157       immutable: false
158       annotations:
159         source:
160           type: org.openecomp.annotations.Source
161           properties:
162             vf_module_label:
163             - main
164             source_type: HEAT
165             param_name: lb_st_vlan_type_oam
166       type: string
167       description: dummy
168     mac_address:
169       hidden: false
170       immutable: false
171       annotations:
172         source:
173           type: org.openecomp.annotations.Source
174           properties:
175             vf_module_label:
176             - main
177             source_type: HEAT
178             param_name: mac_address
179       type: string
180     availability_zone_0:
181       label: availabilityzone name
182       hidden: false
183       immutable: false
184       annotations:
185         source:
186           type: org.openecomp.annotations.Source
187           properties:
188             vf_module_label:
189             - main
190             source_type: HEAT
191             param_name: availability_zone_0
192       type: string
193       description: availabilityzone name
194     cmaui_oam_ips:
195       hidden: false
196       immutable: false
197       annotations:
198         source:
199           type: org.openecomp.annotations.Source
200           properties:
201             vf_module_label:
202             - main
203             source_type: HEAT
204             param_name: cmaui_oam_ips
205       type: string
206   node_templates:
207     cmaui_port_2:
208       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
209       properties:
210         replacement_policy: AUTO
211         ip_requirements:
212         - ip_version: 4
213           ip_count_required:
214             is_required: true
215           floating_ip_count_required:
216             is_required: false
217         security_groups:
218         - get_input: security_group_name
219         fixed_ips:
220         - ip_address:
221             get_input:
222             - cmaui_oam_ips
223             - 0
224         mac_requirements:
225           mac_count_required:
226             is_required: false
227         network: test_net1
228       requirements:
229       - link:
230           capability: tosca.capabilities.network.Linkable
231           node: test_net1
232           relationship: tosca.relationships.network.LinksTo
233       - binding:
234           capability: tosca.capabilities.network.Bindable
235           node: server_cmaui_nova
236           relationship: tosca.relationships.network.BindsTo
237     test_nested_invalidConnection:
238       type: org.openecomp.resource.abstract.nodes.heat.nested
239       directives:
240       - substitutable
241       properties:
242         p1: test_Vlan1
243         service_template_filter:
244           substitute_service_template: nestedServiceTemplate.yaml
245         p2: server_cmaui_nova
246     test_net2:
247       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
248       properties:
249         shared: true
250         network_name:
251           get_input: jsa_net_name
252     template_VMInt_OAM_lb_1:
253       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
254       properties:
255         security_group_refs:
256         - get_input: oam_sec_group_name
257         virtual_network_refs:
258         - test_net1
259         virtual_machine_interface_properties:
260           service_interface_type:
261             get_input: lb_st_interface_type_oam
262         port_tuple_refs:
263         - get_input: template_PortTuple_LB1
264       requirements:
265       - link:
266           capability: tosca.capabilities.network.Linkable
267           node: test_net1
268           relationship: tosca.relationships.network.LinksTo
269       - binding:
270           capability: tosca.capabilities.network.Bindable
271           node: server_cmaui_nova
272           relationship: tosca.relationships.network.BindsTo
273     test_resourceGroup:
274       type: org.openecomp.resource.abstract.nodes.heat.nested
275       directives:
276       - substitutable
277       properties:
278         p1: template_VMInt_OAM_lb_1
279         service_template_filter:
280           substitute_service_template: nestedServiceTemplate.yaml
281           count: 9
282           mandatory: true
283         p2: cmaui_port_2
284         net2: test_net2
285         net1: test_net1
286       requirements:
287       - link_template_Vlan_2:
288           capability: tosca.capabilities.network.Linkable
289           node: test_net2
290           relationship: tosca.relationships.network.LinksTo
291       - link_template_Vlan_1:
292           capability: tosca.capabilities.network.Linkable
293           node: test_net1
294           relationship: tosca.relationships.network.LinksTo
295       - binding_template_Vlan_2:
296           capability: tosca.capabilities.network.Bindable
297           node: cmaui_port_2
298           relationship: tosca.relationships.network.BindsTo
299       - binding_template_Vlan_1:
300           capability: tosca.capabilities.network.Bindable
301           node: template_VMInt_OAM_lb_1
302           relationship: tosca.relationships.network.BindsTo
303     test_net1:
304       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
305       properties:
306         shared: true
307         network_name:
308           get_input: jsa_net_name
309     test_Vlan2:
310       type: org.openecomp.resource.cp.nodes.heat.network.contrailV2.VLANSubInterface
311       properties:
312         virtual_machine_interface_refs:
313         - template_VMInt_OAM_lb_1
314         name: vlan
315         virtual_network_refs:
316         - test_net1
317         virtual_machine_interface_properties:
318           sub_interface_vlan_tag:
319             get_input: lb_st_vlan_type_oam
320         virtual_machine_interface_allowed_address_pairs:
321           allowed_address_pair:
322           - address_mode: active-standby
323             ip:
324               ip_prefix:
325                 get_input: virtual_ip_address
326               ip_prefix_len: 32
327             mac:
328               get_input: mac_address
329           - address_mode: active-standby
330             ip:
331               ip_prefix:
332                 get_input: virtual_ipv6_address
333               ip_prefix_len: 128
334             mac:
335               get_input: mac_address
336         virtual_machine_interface_mac_addresses:
337           mac_address:
338           - get_input: mac_address
339       requirements:
340       - link:
341           capability: tosca.capabilities.network.Linkable
342           node: test_net1
343           relationship: tosca.relationships.network.LinksTo
344       - binding:
345           capability: tosca.capabilities.network.Bindable
346           node: template_VMInt_OAM_lb_1
347           relationship: tosca.relationships.network.BindsTo
348     test_Vlan1:
349       type: org.openecomp.resource.cp.nodes.heat.network.contrailV2.VLANSubInterface
350       properties:
351         virtual_machine_interface_refs:
352         - test_Vlan2
353         name: vlan
354         virtual_network_refs:
355         - test_net1
356         virtual_machine_interface_properties:
357           sub_interface_vlan_tag:
358             get_input: lb_st_vlan_type_oam
359         virtual_machine_interface_allowed_address_pairs:
360           allowed_address_pair:
361           - address_mode: active-standby
362             ip:
363               ip_prefix:
364                 get_input: virtual_ip_address
365               ip_prefix_len: 32
366             mac:
367               get_input: mac_address
368           - address_mode: active-standby
369             ip:
370               ip_prefix:
371                 get_input: virtual_ipv6_address
372               ip_prefix_len: 128
373             mac:
374               get_input: mac_address
375         virtual_machine_interface_mac_addresses:
376           mac_address:
377           - get_input: mac_address
378       requirements:
379       - link:
380           capability: tosca.capabilities.network.Linkable
381           node: test_net1
382           relationship: tosca.relationships.network.LinksTo
383     server_cmaui_nova:
384       type: org.openecomp.resource.vfc.nodes.heat.cmaui
385       properties:
386         flavor:
387           get_input: cmaui_flavor
388         availability_zone:
389           get_input: availability_zone_0
390         image:
391           get_input: cmaui_image
392         contrail_service_instance_ind: true
393         name:
394           get_input:
395           - cmaui_names
396           - 0
397     test_nested:
398       type: org.openecomp.resource.abstract.nodes.heat.nested
399       directives:
400       - substitutable
401       properties:
402         p1: template_VMInt_OAM_lb_1
403         service_template_filter:
404           substitute_service_template: nestedServiceTemplate.yaml
405         p2: cmaui_port_2
406         net2: test_net2
407         net1: test_net1
408       requirements:
409       - link_template_Vlan_2:
410           capability: tosca.capabilities.network.Linkable
411           node: test_net2
412           relationship: tosca.relationships.network.LinksTo
413       - link_template_Vlan_1:
414           capability: tosca.capabilities.network.Linkable
415           node: test_net1
416           relationship: tosca.relationships.network.LinksTo
417       - binding_template_Vlan_2:
418           capability: tosca.capabilities.network.Bindable
419           node: cmaui_port_2
420           relationship: tosca.relationships.network.BindsTo
421       - binding_template_Vlan_1:
422           capability: tosca.capabilities.network.Bindable
423           node: template_VMInt_OAM_lb_1
424           relationship: tosca.relationships.network.BindsTo
425   groups:
426     main_group:
427       type: org.openecomp.groups.heat.HeatStack
428       properties:
429         heat_file: ../Artifacts/main.yml
430         description: |
431           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
432       members:
433       - cmaui_port_2
434       - test_nested_invalidConnection
435       - test_net2
436       - template_VMInt_OAM_lb_1
437       - test_resourceGroup
438       - test_net1
439       - test_Vlan2
440       - test_Vlan1
441       - server_cmaui_nova
442       - test_nested