e8f7c17fbb524ba7eb5bf753c90b43dc73409092
[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     cmaui_image:\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: cmaui_image\r
40       type: string\r
41       description: Image for CMAUI server\r
42     template_PortTuple_LB1:\r
43       hidden: false\r
44       immutable: false\r
45       annotations:\r
46         source:\r
47           type: org.openecomp.annotations.Source\r
48           properties:\r
49             vf_module_label:\r
50             - main\r
51             source_type: HEAT\r
52             param_name: template_PortTuple_LB1\r
53       type: string\r
54     cmaui_flavor:\r
55       hidden: false\r
56       immutable: false\r
57       annotations:\r
58         source:\r
59           type: org.openecomp.annotations.Source\r
60           properties:\r
61             vf_module_label:\r
62             - main\r
63             source_type: HEAT\r
64             param_name: cmaui_flavor\r
65       type: string\r
66       description: Flavor for CMAUI server\r
67     oam_sec_group_name:\r
68       hidden: false\r
69       immutable: false\r
70       annotations:\r
71         source:\r
72           type: org.openecomp.annotations.Source\r
73           properties:\r
74             vf_module_label:\r
75             - main\r
76             source_type: HEAT\r
77             param_name: oam_sec_group_name\r
78       type: string\r
79     lb_st_interface_type_oam:\r
80       hidden: false\r
81       immutable: false\r
82       annotations:\r
83         source:\r
84           type: org.openecomp.annotations.Source\r
85           properties:\r
86             vf_module_label:\r
87             - main\r
88             source_type: HEAT\r
89             param_name: lb_st_interface_type_oam\r
90       type: string\r
91     security_group_name:\r
92       hidden: false\r
93       immutable: false\r
94       annotations:\r
95         source:\r
96           type: org.openecomp.annotations.Source\r
97           properties:\r
98             vf_module_label:\r
99             - main\r
100             source_type: HEAT\r
101             param_name: security_group_name\r
102       type: list\r
103       description: CMAUI1, CMAUI2 server names\r
104       entry_schema:\r
105         type: string\r
106     availability_zone_0:\r
107       label: availabilityzone name\r
108       hidden: false\r
109       immutable: false\r
110       annotations:\r
111         source:\r
112           type: org.openecomp.annotations.Source\r
113           properties:\r
114             vf_module_label:\r
115             - main\r
116             source_type: HEAT\r
117             param_name: availability_zone_0\r
118       type: string\r
119       description: availabilityzone name\r
120     cmaui_oam_ips:\r
121       hidden: false\r
122       immutable: false\r
123       annotations:\r
124         source:\r
125           type: org.openecomp.annotations.Source\r
126           properties:\r
127             vf_module_label:\r
128             - main\r
129             source_type: HEAT\r
130             param_name: cmaui_oam_ips\r
131       type: string\r
132     contrail_net_name:\r
133       hidden: false\r
134       immutable: false\r
135       annotations:\r
136         source:\r
137           type: org.openecomp.annotations.Source\r
138           properties:\r
139             vf_module_label:\r
140             - main\r
141             source_type: HEAT\r
142             param_name: contrail_net_name\r
143       type: string\r
144       description: network name of jsa log network\r
145     jsa_net_name:\r
146       hidden: false\r
147       immutable: false\r
148       annotations:\r
149         source:\r
150           type: org.openecomp.annotations.Source\r
151           properties:\r
152             vf_module_label:\r
153             - main\r
154             source_type: HEAT\r
155             param_name: jsa_net_name\r
156       type: string\r
157     jsa_name:\r
158       hidden: false\r
159       immutable: false\r
160       annotations:\r
161         source:\r
162           type: org.openecomp.annotations.Source\r
163           properties:\r
164             vf_module_label:\r
165             - main\r
166             source_type: HEAT\r
167             param_name: jsa_name\r
168       type: string\r
169       description: network name of jsa log network\r
170   node_templates:\r
171     cmaui_port_2:\r
172       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port\r
173       properties:\r
174         replacement_policy: AUTO\r
175         ip_requirements:\r
176         - ip_version: 4\r
177           ip_count_required:\r
178             is_required: true\r
179           floating_ip_count_required:\r
180             is_required: false\r
181         - ip_version: 6\r
182           ip_count_required:\r
183             is_required: false\r
184           floating_ip_count_required:\r
185             is_required: false\r
186         security_groups:\r
187         - get_input: security_group_name\r
188         fixed_ips:\r
189         - ip_address:\r
190             get_input:\r
191             - cmaui_oam_ips\r
192             - 0\r
193         mac_requirements:\r
194           mac_count_required:\r
195             is_required: false\r
196         network: test_net1\r
197       requirements:\r
198       - link:\r
199           capability: tosca.capabilities.network.Linkable\r
200           node: test_net1\r
201           relationship: tosca.relationships.network.LinksTo\r
202       - binding:\r
203           capability: tosca.capabilities.network.Bindable\r
204           node: server_cmaui_nova\r
205           relationship: tosca.relationships.network.BindsTo\r
206     test_nested1Level:\r
207       type: org.openecomp.resource.abstract.nodes.heat.subinterface.nested1\r
208       directives:\r
209       - substitutable\r
210       properties:\r
211         service_template_filter:\r
212           substitute_service_template: nested1ServiceTemplate.yaml\r
213         net2:\r
214           get_attribute:\r
215           - test_contrailV2_net2\r
216           - fq_name\r
217         net1: test_net1\r
218         port1: template_VMInt_OAM_lb_1\r
219         port2: cmaui_port_2\r
220       requirements:\r
221       - subinterface_link_template_Vlan_2:\r
222           capability: tosca.capabilities.network.Linkable\r
223           node: test_contrailV2_net2\r
224           relationship: tosca.relationships.network.LinksTo\r
225       - subinterface_link_template_Vlan_1:\r
226           capability: tosca.capabilities.network.Linkable\r
227           node: test_net1\r
228           relationship: tosca.relationships.network.LinksTo\r
229       - subinterface_link_template_Vlan_8_test_nested4Level_test_nested3Level_test_nested2Level:\r
230           capability: tosca.capabilities.network.Linkable\r
231           node: test_net1\r
232           relationship: tosca.relationships.network.LinksTo\r
233       - subinterface_link_template_Vlan_7_test_nested4Level_test_nested3Level_test_nested2Level:\r
234           capability: tosca.capabilities.network.Linkable\r
235           node: test_net1\r
236           relationship: tosca.relationships.network.LinksTo\r
237       - subinterface_link_template_Vlan_6_test_nested3Level_test_nested2Level:\r
238           capability: tosca.capabilities.network.Linkable\r
239           node: test_net1\r
240           relationship: tosca.relationships.network.LinksTo\r
241       - subinterface_link_template_Vlan_5_test_nested3Level_test_nested2Level:\r
242           capability: tosca.capabilities.network.Linkable\r
243           node: test_net1\r
244           relationship: tosca.relationships.network.LinksTo\r
245       - subinterface_link_template_Vlan_4_test_nested2Level:\r
246           capability: tosca.capabilities.network.Linkable\r
247           node: test_contrailV2_net2\r
248           relationship: tosca.relationships.network.LinksTo\r
249       - subinterface_link_template_Vlan_3_test_nested2Level:\r
250           capability: tosca.capabilities.network.Linkable\r
251           node: test_contrailV2_net2\r
252           relationship: tosca.relationships.network.LinksTo\r
253       - binding_template_Vlan_2:\r
254           capability: tosca.capabilities.network.Bindable\r
255           node: cmaui_port_2\r
256           relationship: tosca.relationships.network.BindsTo\r
257       - binding_template_Vlan_1:\r
258           capability: tosca.capabilities.network.Bindable\r
259           node: template_VMInt_OAM_lb_1\r
260           relationship: tosca.relationships.network.BindsTo\r
261       - binding_template_Vlan_8_test_nested4Level_test_nested3Level_test_nested2Level:\r
262           capability: tosca.capabilities.network.Bindable\r
263           node: template_VMInt_OAM_lb_1\r
264           relationship: tosca.relationships.network.BindsTo\r
265       - binding_template_Vlan_7_test_nested4Level_test_nested3Level_test_nested2Level:\r
266           capability: tosca.capabilities.network.Bindable\r
267           node: template_VMInt_OAM_lb_1\r
268           relationship: tosca.relationships.network.BindsTo\r
269       - binding_template_Vlan_6_test_nested3Level_test_nested2Level:\r
270           capability: tosca.capabilities.network.Bindable\r
271           node: template_VMInt_OAM_lb_1\r
272           relationship: tosca.relationships.network.BindsTo\r
273       - binding_template_Vlan_5_test_nested3Level_test_nested2Level:\r
274           capability: tosca.capabilities.network.Bindable\r
275           node: template_VMInt_OAM_lb_1\r
276           relationship: tosca.relationships.network.BindsTo\r
277       - binding_template_Vlan_4_test_nested2Level:\r
278           capability: tosca.capabilities.network.Bindable\r
279           node: template_VMInt_OAM_lb_1\r
280           relationship: tosca.relationships.network.BindsTo\r
281       - binding_template_Vlan_3_test_nested2Level:\r
282           capability: tosca.capabilities.network.Bindable\r
283           node: template_VMInt_OAM_lb_1\r
284           relationship: tosca.relationships.network.BindsTo\r
285     test_contrailV2_net2:\r
286       type: org.openecomp.resource.vl.nodes.heat.network.contrailV2.VirtualNetwork\r
287       properties:\r
288         network_name:\r
289           get_input: contrail_net_name\r
290     template_VMInt_OAM_lb_1:\r
291       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface\r
292       properties:\r
293         security_group_refs:\r
294         - get_input: oam_sec_group_name\r
295         virtual_network_refs:\r
296         - test_net1\r
297         virtual_machine_interface_properties:\r
298           service_interface_type:\r
299             get_input: lb_st_interface_type_oam\r
300         port_tuple_refs:\r
301         - get_input: template_PortTuple_LB1\r
302       requirements:\r
303       - link:\r
304           capability: tosca.capabilities.network.Linkable\r
305           node: test_net1\r
306           relationship: tosca.relationships.network.LinksTo\r
307       - binding:\r
308           capability: tosca.capabilities.network.Bindable\r
309           node: server_cmaui_nova\r
310           relationship: tosca.relationships.network.BindsTo\r
311     test_resourceGroup:\r
312       type: org.openecomp.resource.abstract.nodes.heat.nested3\r
313       directives:\r
314       - substitutable\r
315       properties:\r
316         service_template_filter:\r
317           substitute_service_template: nested3ServiceTemplate.yaml\r
318           count: 9\r
319           mandatory: true\r
320         net1:\r
321           list_join:\r
322           - ':'\r
323           - get_attribute:\r
324             - test_contrailV2_net2\r
325             - fq_name\r
326         indx:\r
327           get_property:\r
328           - SELF\r
329           - service_template_filter\r
330           - index_value\r
331         port1: cmaui_port_2\r
332       requirements:\r
333       - subinterface_link_template_Vlan_7_test_nested4Level:\r
334           capability: tosca.capabilities.network.Linkable\r
335           node: test_contrailV2_net2\r
336           relationship: tosca.relationships.network.LinksTo\r
337       - subinterface_link_template_Vlan_6:\r
338           capability: tosca.capabilities.network.Linkable\r
339           node: test_contrailV2_net2\r
340           relationship: tosca.relationships.network.LinksTo\r
341       - binding_template_Vlan_7_test_nested4Level:\r
342           capability: tosca.capabilities.network.Bindable\r
343           node: cmaui_port_2\r
344           relationship: tosca.relationships.network.BindsTo\r
345       - binding_template_Vlan_6:\r
346           capability: tosca.capabilities.network.Bindable\r
347           node: cmaui_port_2\r
348           relationship: tosca.relationships.network.BindsTo\r
349     test_net1:\r
350       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net\r
351       properties:\r
352         shared: true\r
353         network_name:\r
354           get_input: jsa_net_name\r
355     test_nestedInvalidConnection:\r
356       type: org.openecomp.resource.abstract.nodes.heat.subinterface.nested1\r
357       directives:\r
358       - substitutable\r
359       properties:\r
360         service_template_filter:\r
361           substitute_service_template: nested1ServiceTemplate.yaml\r
362         net1: server_cmaui_nova\r
363         port1: server_cmaui_nova\r
364     server_cmaui_nova:\r
365       type: org.openecomp.resource.vfc.nodes.heat.cmaui\r
366       properties:\r
367         flavor:\r
368           get_input: cmaui_flavor\r
369         availability_zone:\r
370           get_input: availability_zone_0\r
371         image:\r
372           get_input: cmaui_image\r
373         contrail_service_instance_ind: true\r
374         name:\r
375           get_input:\r
376           - cmaui_names\r
377           - 0\r
378   groups:\r
379     main_group:\r
380       type: org.openecomp.groups.heat.HeatStack\r
381       properties:\r
382         heat_file: ../Artifacts/main.yml\r
383         description: |\r
384           Version 2.0 02-09-2016 (Authors: Paul Phillips, pnet2854 PROD)\r
385       members:\r
386       - cmaui_port_2\r
387       - test_nested1Level\r
388       - test_contrailV2_net2\r
389       - template_VMInt_OAM_lb_1\r
390       - test_resourceGroup\r
391       - test_net1\r
392       - test_nestedInvalidConnection\r
393       - server_cmaui_nova