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