b99f0a0a769b2215c301d459ddb1aeee6e5a8759
[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         security_groups:\r
218         - get_input: security_group_name\r
219         fixed_ips:\r
220         - ip_address:\r
221             get_input:\r
222             - cmaui_oam_ips\r
223             - 0\r
224         mac_requirements:\r
225           mac_count_required:\r
226             is_required: false\r
227         network: test_net1\r
228       requirements:\r
229       - link:\r
230           capability: tosca.capabilities.network.Linkable\r
231           node: test_net1\r
232           relationship: tosca.relationships.network.LinksTo\r
233       - binding:\r
234           capability: tosca.capabilities.network.Bindable\r
235           node: server_cmaui_nova\r
236           relationship: tosca.relationships.network.BindsTo\r
237     test_nested_invalidConnection:\r
238       type: org.openecomp.resource.abstract.nodes.heat.subinterface.nested\r
239       directives:\r
240       - substitutable\r
241       properties:\r
242         p1: test_Vlan1\r
243         service_template_filter:\r
244           substitute_service_template: nestedServiceTemplate.yaml\r
245         p2: server_cmaui_nova\r
246       requirements:\r
247       - binding_template_Vlan_1:\r
248           capability: tosca.capabilities.network.Bindable\r
249           node: test_Vlan1\r
250           relationship: tosca.relationships.network.BindsTo\r
251     test_net2:\r
252       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net\r
253       properties:\r
254         shared: true\r
255         network_name:\r
256           get_input: jsa_net_name\r
257     template_VMInt_OAM_lb_1:\r
258       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface\r
259       properties:\r
260         security_group_refs:\r
261         - get_input: oam_sec_group_name\r
262         virtual_network_refs:\r
263         - test_net1\r
264         virtual_machine_interface_properties:\r
265           service_interface_type:\r
266             get_input: lb_st_interface_type_oam\r
267         port_tuple_refs:\r
268         - get_input: template_PortTuple_LB1\r
269       requirements:\r
270       - link:\r
271           capability: tosca.capabilities.network.Linkable\r
272           node: test_net1\r
273           relationship: tosca.relationships.network.LinksTo\r
274       - binding:\r
275           capability: tosca.capabilities.network.Bindable\r
276           node: server_cmaui_nova\r
277           relationship: tosca.relationships.network.BindsTo\r
278     test_resourceGroup:\r
279       type: org.openecomp.resource.abstract.nodes.heat.subinterface.nested\r
280       directives:\r
281       - substitutable\r
282       properties:\r
283         p1: template_VMInt_OAM_lb_1\r
284         service_template_filter:\r
285           substitute_service_template: nestedServiceTemplate.yaml\r
286           count: 9\r
287           mandatory: true\r
288         p2: cmaui_port_2\r
289         net2: test_net2\r
290         net1: test_net1\r
291       requirements:\r
292       - link_template_Vlan_2:\r
293           capability: tosca.capabilities.network.Linkable\r
294           node: test_net2\r
295           relationship: tosca.relationships.network.LinksTo\r
296       - link_template_Vlan_1:\r
297           capability: tosca.capabilities.network.Linkable\r
298           node: test_net1\r
299           relationship: tosca.relationships.network.LinksTo\r
300       - binding_template_Vlan_2:\r
301           capability: tosca.capabilities.network.Bindable\r
302           node: cmaui_port_2\r
303           relationship: tosca.relationships.network.BindsTo\r
304       - binding_template_Vlan_1:\r
305           capability: tosca.capabilities.network.Bindable\r
306           node: template_VMInt_OAM_lb_1\r
307           relationship: tosca.relationships.network.BindsTo\r
308     test_net1:\r
309       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net\r
310       properties:\r
311         shared: true\r
312         network_name:\r
313           get_input: jsa_net_name\r
314     test_Vlan2:\r
315       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface\r
316       properties:\r
317         name: vlan\r
318         virtual_network_refs:\r
319         - test_net1\r
320         virtual_machine_interface_allowed_address_pairs:\r
321           allowed_address_pair:\r
322           - address_mode: active-standby\r
323             ip:\r
324               ip_prefix:\r
325                 get_input: virtual_ip_address\r
326               ip_prefix_len: 32\r
327             mac:\r
328               get_input: mac_address\r
329           - address_mode: active-standby\r
330             ip:\r
331               ip_prefix:\r
332                 get_input: virtual_ipv6_address\r
333               ip_prefix_len: 128\r
334             mac:\r
335               get_input: mac_address\r
336         virtual_machine_interface_mac_addresses:\r
337         - get_input: mac_address\r
338       requirements:\r
339       - link:\r
340           capability: tosca.capabilities.network.Linkable\r
341           node: test_net1\r
342           relationship: tosca.relationships.network.LinksTo\r
343     test_Vlan1:\r
344       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface\r
345       properties:\r
346         name: vlan\r
347         virtual_network_refs:\r
348         - test_net1\r
349         virtual_machine_interface_allowed_address_pairs:\r
350           allowed_address_pair:\r
351           - address_mode: active-standby\r
352             ip:\r
353               ip_prefix:\r
354                 get_input: virtual_ip_address\r
355               ip_prefix_len: 32\r
356             mac:\r
357               get_input: mac_address\r
358           - address_mode: active-standby\r
359             ip:\r
360               ip_prefix:\r
361                 get_input: virtual_ipv6_address\r
362               ip_prefix_len: 128\r
363             mac:\r
364               get_input: mac_address\r
365         virtual_machine_interface_mac_addresses:\r
366         - get_input: mac_address\r
367       requirements:\r
368       - link:\r
369           capability: tosca.capabilities.network.Linkable\r
370           node: test_net1\r
371           relationship: tosca.relationships.network.LinksTo\r
372     server_cmaui_nova:\r
373       type: org.openecomp.resource.vfc.nodes.heat.cmaui\r
374       properties:\r
375         flavor:\r
376           get_input: cmaui_flavor\r
377         availability_zone:\r
378           get_input: availability_zone_0\r
379         image:\r
380           get_input: cmaui_image\r
381         contrail_service_instance_ind: true\r
382         name:\r
383           get_input:\r
384           - cmaui_names\r
385           - 0\r
386     test_nested:\r
387       type: org.openecomp.resource.abstract.nodes.heat.subinterface.nested\r
388       directives:\r
389       - substitutable\r
390       properties:\r
391         p1: template_VMInt_OAM_lb_1\r
392         service_template_filter:\r
393           substitute_service_template: nestedServiceTemplate.yaml\r
394         p2: cmaui_port_2\r
395         net2: test_net2\r
396         net1: test_net1\r
397       requirements:\r
398       - link_template_Vlan_2:\r
399           capability: tosca.capabilities.network.Linkable\r
400           node: test_net2\r
401           relationship: tosca.relationships.network.LinksTo\r
402       - link_template_Vlan_1:\r
403           capability: tosca.capabilities.network.Linkable\r
404           node: test_net1\r
405           relationship: tosca.relationships.network.LinksTo\r
406       - binding_template_Vlan_2:\r
407           capability: tosca.capabilities.network.Bindable\r
408           node: cmaui_port_2\r
409           relationship: tosca.relationships.network.BindsTo\r
410       - binding_template_Vlan_1:\r
411           capability: tosca.capabilities.network.Bindable\r
412           node: template_VMInt_OAM_lb_1\r
413           relationship: tosca.relationships.network.BindsTo\r
414   groups:\r
415     main_group:\r
416       type: org.openecomp.groups.heat.HeatStack\r
417       properties:\r
418         heat_file: ../Artifacts/main.yml\r
419         description: |\r
420           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)\r
421       members:\r
422       - cmaui_port_2\r
423       - test_nested_invalidConnection\r
424       - test_net2\r
425       - template_VMInt_OAM_lb_1\r
426       - test_resourceGroup\r
427       - test_net1\r
428       - test_Vlan2\r
429       - test_Vlan1\r
430       - server_cmaui_nova\r
431       - test_nested\r