9d41ce4974ab930a269a30e1fa3f5437001b712f
[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 node_types:
8   org.openecomp.resource.vfc.nodes.heat.Compute_Node_2:
9     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
10   org.openecomp.resource.vfc.nodes.heat.QRouter:
11     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
12 topology_template:
13   inputs:
14     tenant_name:
15       hidden: false
16       immutable: false
17       annotations:
18         source:
19           type: org.openecomp.annotations.Source
20           properties:
21             vf_module_label:
22             - input
23             source_type: HEAT
24             param_name: tenant_name
25       type: string
26       description: Name of tenant to be used
27     oam_private_net_name:
28       hidden: false
29       immutable: false
30       annotations:
31         source:
32           type: org.openecomp.annotations.Source
33           properties:
34             vf_module_label:
35             - input
36             source_type: HEAT
37             param_name: oam_private_net_name
38       type: string
39       description: A string specifying a symbolic name for the network
40     packet_internal_network_name:
41       hidden: false
42       immutable: false
43       annotations:
44         source:
45           type: org.openecomp.annotations.Source
46           properties:
47             vf_module_label:
48             - input
49             source_type: HEAT
50             param_name: packet_internal_network_name
51       type: string
52       description: A string specifying a symbolic name for the network
53     packet_mirror_network_subnet_alloc_start:
54       hidden: false
55       immutable: false
56       annotations:
57         source:
58           type: org.openecomp.annotations.Source
59           properties:
60             vf_module_label:
61             - input
62             source_type: HEAT
63             param_name: packet_mirror_network_subnet_alloc_start
64       type: string
65       description: Start address for the allocation pool
66     packet_mirror_network_name:
67       hidden: false
68       immutable: false
69       annotations:
70         source:
71           type: org.openecomp.annotations.Source
72           properties:
73             vf_module_label:
74             - input
75             source_type: HEAT
76             param_name: packet_mirror_network_name
77       type: string
78       description: A string specifying a symbolic name for the network
79     base_image_name:
80       hidden: false
81       immutable: false
82       annotations:
83         source:
84           type: org.openecomp.annotations.Source
85           properties:
86             vf_module_label:
87             - input
88             source_type: HEAT
89             param_name: base_image_name
90       type: string
91       description: The base ID or name of the image to boot with
92     cdr_network:
93       hidden: false
94       immutable: false
95       annotations:
96         source:
97           type: org.openecomp.annotations.Source
98           properties:
99             vf_module_label:
100             - input
101             source_type: HEAT
102             param_name: cdr_network
103       type: string
104       description: A string specifying a symbolic name for the network
105     packet_internal_network_subnet_alloc_start:
106       hidden: false
107       immutable: false
108       annotations:
109         source:
110           type: org.openecomp.annotations.Source
111           properties:
112             vf_module_label:
113             - input
114             source_type: HEAT
115             param_name: packet_internal_network_subnet_alloc_start
116       type: string
117       description: Start address for the allocation pool
118     packet_internal_network_subnet_alloc_end:
119       hidden: false
120       immutable: false
121       annotations:
122         source:
123           type: org.openecomp.annotations.Source
124           properties:
125             vf_module_label:
126             - input
127             source_type: HEAT
128             param_name: packet_internal_network_subnet_alloc_end
129       type: string
130       description: End address for the allocation pool
131     domain_name:
132       hidden: false
133       immutable: false
134       annotations:
135         source:
136           type: org.openecomp.annotations.Source
137           properties:
138             vf_module_label:
139             - input
140             source_type: HEAT
141             param_name: domain_name
142       type: string
143       description: The servers domain
144     packet_mirror_network_subnet_alloc_end:
145       hidden: false
146       immutable: false
147       annotations:
148         source:
149           type: org.openecomp.annotations.Source
150           properties:
151             vf_module_label:
152             - input
153             source_type: HEAT
154             param_name: packet_mirror_network_subnet_alloc_end
155       type: string
156       description: End address for the allocation pool
157     packet_internal_network_subnet_name:
158       hidden: false
159       immutable: false
160       annotations:
161         source:
162           type: org.openecomp.annotations.Source
163           properties:
164             vf_module_label:
165             - input
166             source_type: HEAT
167             param_name: packet_internal_network_subnet_name
168       type: string
169       description: The name of the subnet
170     packet_mirror_network_subnet_cidr:
171       hidden: false
172       immutable: false
173       annotations:
174         source:
175           type: org.openecomp.annotations.Source
176           properties:
177             vf_module_label:
178             - input
179             source_type: HEAT
180             param_name: packet_mirror_network_subnet_cidr
181       type: string
182       description: The Classless Inter-Domain Routing
183     availability_zone_0:
184       hidden: false
185       immutable: false
186       annotations:
187         source:
188           type: org.openecomp.annotations.Source
189           properties:
190             vf_module_label:
191             - input
192             source_type: HEAT
193             param_name: availability_zone_0
194       type: string
195       description: Name of the availability zone for server placement
196     packet_internal_network_subnet_cidr:
197       hidden: false
198       immutable: false
199       annotations:
200         source:
201           type: org.openecomp.annotations.Source
202           properties:
203             vf_module_label:
204             - input
205             source_type: HEAT
206             param_name: packet_internal_network_subnet_cidr
207       type: string
208       description: The Classless Inter-Domain Routing
209     region_name:
210       hidden: false
211       immutable: false
212       annotations:
213         source:
214           type: org.openecomp.annotations.Source
215           properties:
216             vf_module_label:
217             - input
218             source_type: HEAT
219             param_name: region_name
220       type: string
221       description: Name of region to be used
222     availability_zone_1:
223       hidden: false
224       immutable: false
225       annotations:
226         source:
227           type: org.openecomp.annotations.Source
228           properties:
229             vf_module_label:
230             - input
231             source_type: HEAT
232             param_name: availability_zone_1
233       type: string
234       description: Name of the availability zone for server placement
235     manager_name_0:
236       hidden: false
237       immutable: false
238       annotations:
239         source:
240           type: org.openecomp.annotations.Source
241           properties:
242             vf_module_label:
243             - input
244             source_type: HEAT
245             param_name: manager_name_0
246       type: string
247       description: VM Name for Manager VM 0
248     manager_oam_direct_ip_0:
249       hidden: false
250       immutable: false
251       annotations:
252         source:
253           type: org.openecomp.annotations.Source
254           properties:
255             vf_module_label:
256             - input
257             source_type: HEAT
258             param_name: manager_oam_direct_ip_0
259       type: string
260       description: The public ip address of the manager
261     packet_mirror_network_subnet_name:
262       hidden: false
263       immutable: false
264       annotations:
265         source:
266           type: org.openecomp.annotations.Source
267           properties:
268             vf_module_label:
269             - input
270             source_type: HEAT
271             param_name: packet_mirror_network_subnet_name
272       type: string
273       description: The name of the subnet
274     rpmrepository_ip_0:
275       hidden: false
276       immutable: false
277       annotations:
278         source:
279           type: org.openecomp.annotations.Source
280           properties:
281             vf_module_label:
282             - input
283             source_type: HEAT
284             param_name: rpmrepository_ip_0
285       type: string
286       description: The public ip address of the repository
287   node_templates:
288     Compute_Node_2:
289       type: org.openecomp.resource.vfc.nodes.heat.Compute_Node_2
290       properties:
291         flavor: FLAVOR-test
292         availability_zone: Availability-test
293         image: Image-test
294         config_drive: true
295         name: Compute_Node_2-name
296       requirements:
297       - dependency:
298           capability: tosca.capabilities.Node
299           node: packet_mirror_network
300           relationship: tosca.relationships.DependsOn
301     QRouter:
302       type: org.openecomp.resource.vfc.nodes.heat.QRouter
303       properties:
304         flavor: FLAVOR-test
305         availability_zone: Availability-test
306         image: Image-test
307         config_drive: true
308         name: QRouter-name
309       requirements:
310       - dependency:
311           capability: tosca.capabilities.Node
312           node: packet_internal_network
313           relationship: tosca.relationships.DependsOn
314     packet_mirror_network:
315       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
316       properties:
317         network_name:
318           get_input: packet_mirror_network_name
319       requirements:
320       - dependency:
321           capability: tosca.capabilities.Node
322           node: QRouter
323           relationship: tosca.relationships.DependsOn
324     packet_internal_network:
325       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
326       properties:
327         network_name:
328           get_input: packet_internal_network_name
329     cdr_network_port:
330       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
331       properties:
332         ip_requirements:
333         - ip_version: 4
334           ip_count_required:
335             is_required: false
336           floating_ip_count_required:
337             is_required: false
338         - ip_version: 6
339           ip_count_required:
340             is_required: false
341           floating_ip_count_required:
342             is_required: false
343         mac_requirements:
344           mac_count_required:
345             is_required: false
346         network:
347           get_input: cdr_network
348       requirements:
349       - binding:
350           capability: tosca.capabilities.network.Bindable
351           node: QRouter
352           relationship: tosca.relationships.network.BindsTo
353       - binding:
354           capability: tosca.capabilities.network.Bindable
355           node: Compute_Node_2
356           relationship: tosca.relationships.network.BindsTo
357     oam_private_net_network_port:
358       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
359       properties:
360         ip_requirements:
361         - ip_version: 4
362           ip_count_required:
363             is_required: false
364           floating_ip_count_required:
365             is_required: false
366         - ip_version: 6
367           ip_count_required:
368             is_required: false
369           floating_ip_count_required:
370             is_required: false
371         mac_requirements:
372           mac_count_required:
373             is_required: false
374         network_role_tag: oam_private
375         network:
376           get_input: oam_private_net_name
377       requirements:
378       - binding:
379           capability: tosca.capabilities.network.Bindable
380           node: QRouter
381           relationship: tosca.relationships.network.BindsTo
382       - binding:
383           capability: tosca.capabilities.network.Bindable
384           node: Compute_Node_2
385           relationship: tosca.relationships.network.BindsTo
386   groups:
387     input_group:
388       type: org.openecomp.groups.heat.HeatStack
389       properties:
390         heat_file: ../Artifacts/input.yaml
391       members:
392       - Compute_Node_2
393       - QRouter
394       - packet_mirror_network
395       - packet_internal_network
396       - cdr_network_port
397       - oam_private_net_network_port