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