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