aa8cf3245c02c0c606114d42f5edc54c2e3dff57
[sdc.git] /
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: nested
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       type: list
18       description: CMAUI1, CMAUI2 server names
19       entry_schema:
20         type: string
21     p2:
22       hidden: false
23       immutable: false
24       type: string
25       description: UID of OAM network
26     cmaui_image:
27       hidden: false
28       immutable: false
29       type: string
30       description: Image for CMAUI server
31     cmaui_flavor:
32       hidden: false
33       immutable: false
34       type: string
35       description: Flavor for CMAUI server
36     availability_zone_0:
37       label: availabilityzone name
38       hidden: false
39       immutable: false
40       type: string
41       description: availabilityzone name
42     cmaui_oam_ips:
43       hidden: false
44       immutable: false
45       type: string
46       description: cmaui_port_1
47     net:
48       hidden: false
49       immutable: false
50       type: string
51       description: UID of OAM network
52     shared_security_group_id1:
53       hidden: false
54       immutable: false
55       type: string
56       description: UID of OAM network
57   node_templates:
58     cmaui_port_2:
59       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
60       properties:
61         replacement_policy: AUTO
62         ip_requirements:
63         - ip_version: 4
64           ip_count_required:
65             is_required: true
66           floating_ip_count_required:
67             is_required: false
68         security_groups:
69         - get_input: shared_security_group_id1
70         fixed_ips:
71         - ip_address:
72             get_input:
73             - cmaui_oam_ips
74             - 0
75         mac_requirements:
76           mac_count_required:
77             is_required: false
78         network:
79           get_input: net
80       requirements:
81       - binding:
82           capability: tosca.capabilities.network.Bindable
83           node: server_cmaui_1
84           relationship: tosca.relationships.network.BindsTo
85     server_cmaui_1:
86       type: org.openecomp.resource.vfc.nodes.heat.cmaui
87       properties:
88         flavor:
89           get_input: cmaui_flavor
90         availability_zone:
91           get_input: availability_zone_0
92         image:
93           get_input: cmaui_image
94         metadata:
95           get_attribute:
96           - test_nested2
97           - availability_zone_0
98         name:
99           get_input:
100           - cmaui_names
101           - 0
102     test_nested2:
103       type: org.openecomp.resource.abstract.nodes.heat.nested2level
104       directives:
105       - substitutable
106       properties:
107         service_template_filter:
108           substitute_service_template: nested2levelServiceTemplate.yaml
109         p2:
110           get_input: p2
111         shared_security_group_id1:
112           get_input: shared_security_group_id1
113     cmaui_port_1:
114       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
115       properties:
116         replacement_policy: AUTO
117         ip_requirements:
118         - ip_version: 4
119           ip_count_required:
120             is_required: true
121           floating_ip_count_required:
122             is_required: false
123         security_groups:
124         - get_input: shared_security_group_id1
125         - get_input: p2
126         fixed_ips:
127         - ip_address:
128             get_input:
129             - cmaui_oam_ips
130             - 0
131         mac_requirements:
132           mac_count_required:
133             is_required: false
134         network:
135           get_input: net
136       requirements:
137       - binding:
138           capability: tosca.capabilities.network.Bindable
139           node: server_cmaui_1
140           relationship: tosca.relationships.network.BindsTo
141   groups:
142     nested_group:
143       type: org.openecomp.groups.heat.HeatStack
144       properties:
145         heat_file: ../Artifacts/nested.yml
146         description: cmaui server template for vMMSC
147       members:
148       - cmaui_port_2
149       - server_cmaui_1
150       - test_nested2
151       - cmaui_port_1
152   outputs:
153     output_attr_1:
154       value:
155         get_attribute:
156         - test_nested2
157         - availability_zone_0
158   substitution_mappings:
159     node_type: org.openecomp.resource.abstract.nodes.heat.nested
160     capabilities:
161       network.incoming.packets.rate_cmaui_port_22_test_nested2:
162       - test_nested2
163       - network.incoming.packets.rate_cmaui_port_22
164       disk.device.usage_server_cmaui_1:
165       - server_cmaui_1
166       - disk.device.usage
167       disk.device.latency_server_cmaui_1:
168       - server_cmaui_1
169       - disk.device.latency
170       disk.device.usage_server_cmaui_2_test_nested2:
171       - test_nested2
172       - disk.device.usage_server_cmaui_2
173       host_server_cmaui_2_test_nested2:
174       - test_nested2
175       - host_server_cmaui_2
176       disk.root.size_server_cmaui_2_test_nested2:
177       - test_nested2
178       - disk.root.size_server_cmaui_2
179       disk.device.write.bytes.rate_server_cmaui_2_test_nested2:
180       - test_nested2
181       - disk.device.write.bytes.rate_server_cmaui_2
182       disk.root.size_server_cmaui_1:
183       - server_cmaui_1
184       - disk.root.size
185       disk.device.write.requests.rate_server_cmaui_1:
186       - server_cmaui_1
187       - disk.device.write.requests.rate
188       binding_cmaui_port_11_test_nested2:
189       - test_nested2
190       - binding_cmaui_port_11
191       disk.write.bytes.rate_server_cmaui_2_test_nested2:
192       - test_nested2
193       - disk.write.bytes.rate_server_cmaui_2
194       disk.iops_server_cmaui_2_test_nested2:
195       - test_nested2
196       - disk.iops_server_cmaui_2
197       network.outgoing.bytes_cmaui_port_2:
198       - cmaui_port_2
199       - network.outgoing.bytes
200       disk.read.requests_server_cmaui_1:
201       - server_cmaui_1
202       - disk.read.requests
203       network.outgoing.bytes_cmaui_port_1:
204       - cmaui_port_1
205       - network.outgoing.bytes
206       disk.device.iops_server_cmaui_1:
207       - server_cmaui_1
208       - disk.device.iops
209       disk.allocation_server_cmaui_2_test_nested2:
210       - test_nested2
211       - disk.allocation_server_cmaui_2
212       disk.device.read.bytes.rate_server_cmaui_1:
213       - server_cmaui_1
214       - disk.device.read.bytes.rate
215       network.incoming.packets.rate_cmaui_port_11_test_nested2:
216       - test_nested2
217       - network.incoming.packets.rate_cmaui_port_11
218       disk.read.bytes_server_cmaui_1:
219       - server_cmaui_1
220       - disk.read.bytes
221       disk.device.read.bytes_server_cmaui_1:
222       - server_cmaui_1
223       - disk.device.read.bytes
224       cpu_server_cmaui_2_test_nested2:
225       - test_nested2
226       - cpu_server_cmaui_2
227       disk.device.read.bytes.rate_server_cmaui_2_test_nested2:
228       - test_nested2
229       - disk.device.read.bytes.rate_server_cmaui_2
230       disk.device.read.bytes_server_cmaui_2_test_nested2:
231       - test_nested2
232       - disk.device.read.bytes_server_cmaui_2
233       disk.write.requests.rate_server_cmaui_1:
234       - server_cmaui_1
235       - disk.write.requests.rate
236       endpoint_server_cmaui_2_test_nested2:
237       - test_nested2
238       - endpoint_server_cmaui_2
239       binding_cmaui_port_22_test_nested2:
240       - test_nested2
241       - binding_cmaui_port_22
242       cpu.delta_server_cmaui_2_test_nested2:
243       - test_nested2
244       - cpu.delta_server_cmaui_2
245       instance_server_cmaui_2_test_nested2:
246       - test_nested2
247       - instance_server_cmaui_2
248       cpu_server_cmaui_1:
249       - server_cmaui_1
250       - cpu
251       network.incoming.packets_cmaui_port_2:
252       - cmaui_port_2
253       - network.incoming.packets
254       forwarder_cmaui_port_11_test_nested2:
255       - test_nested2
256       - forwarder_cmaui_port_11
257       memory.usage_server_cmaui_2_test_nested2:
258       - test_nested2
259       - memory.usage_server_cmaui_2
260       disk.write.requests.rate_server_cmaui_2_test_nested2:
261       - test_nested2
262       - disk.write.requests.rate_server_cmaui_2
263       network.incoming.packets_cmaui_port_1:
264       - cmaui_port_1
265       - network.incoming.packets
266       disk.device.write.bytes_server_cmaui_2_test_nested2:
267       - test_nested2
268       - disk.device.write.bytes_server_cmaui_2
269       disk.ephemeral.size_server_cmaui_1:
270       - server_cmaui_1
271       - disk.ephemeral.size
272       disk.capacity_server_cmaui_2_test_nested2:
273       - test_nested2
274       - disk.capacity_server_cmaui_2
275       disk.capacity_server_cmaui_1:
276       - server_cmaui_1
277       - disk.capacity
278       network.incoming.bytes.rate_cmaui_port_22_test_nested2:
279       - test_nested2
280       - network.incoming.bytes.rate_cmaui_port_22
281       disk.latency_server_cmaui_2_test_nested2:
282       - test_nested2
283       - disk.latency_server_cmaui_2
284       disk.read.bytes.rate_server_cmaui_2_test_nested2:
285       - test_nested2
286       - disk.read.bytes.rate_server_cmaui_2
287       network.outpoing.packets_cmaui_port_11_test_nested2:
288       - test_nested2
289       - network.outpoing.packets_cmaui_port_11
290       disk.device.read.requests_server_cmaui_2_test_nested2:
291       - test_nested2
292       - disk.device.read.requests_server_cmaui_2
293       binding_server_cmaui_2_test_nested2:
294       - test_nested2
295       - binding_server_cmaui_2
296       os_server_cmaui_2_test_nested2:
297       - test_nested2
298       - os_server_cmaui_2
299       feature_cmaui_port_22_test_nested2:
300       - test_nested2
301       - feature_cmaui_port_22
302       binding_cmaui_port_1:
303       - cmaui_port_1
304       - binding
305       binding_cmaui_port_2:
306       - cmaui_port_2
307       - binding
308       disk.ephemeral.size_server_cmaui_2_test_nested2:
309       - test_nested2
310       - disk.ephemeral.size_server_cmaui_2
311       disk.iops_server_cmaui_1:
312       - server_cmaui_1
313       - disk.iops
314       vcpus_server_cmaui_2_test_nested2:
315       - test_nested2
316       - vcpus_server_cmaui_2
317       disk.device.write.requests_server_cmaui_1:
318       - server_cmaui_1
319       - disk.device.write.requests
320       network.outgoing.bytes.rate_cmaui_port_2:
321       - cmaui_port_2
322       - network.outgoing.bytes.rate
323       disk.device.write.bytes.rate_server_cmaui_1:
324       - server_cmaui_1
325       - disk.device.write.bytes.rate
326       cpu_util_server_cmaui_1:
327       - server_cmaui_1
328       - cpu_util
329       network.outgoing.packets.rate_cmaui_port_22_test_nested2:
330       - test_nested2
331       - network.outgoing.packets.rate_cmaui_port_22
332       network.outgoing.bytes.rate_cmaui_port_1:
333       - cmaui_port_1
334       - network.outgoing.bytes.rate
335       network.outgoing.bytes.rate_cmaui_port_11_test_nested2:
336       - test_nested2
337       - network.outgoing.bytes.rate_cmaui_port_11
338       network.incoming.bytes_cmaui_port_2:
339       - cmaui_port_2
340       - network.incoming.bytes
341       network.incoming.bytes_cmaui_port_1:
342       - cmaui_port_1
343       - network.incoming.bytes
344       disk.write.bytes.rate_server_cmaui_1:
345       - server_cmaui_1
346       - disk.write.bytes.rate
347       disk.device.write.bytes_server_cmaui_1:
348       - server_cmaui_1
349       - disk.device.write.bytes
350       network.incoming.packets_cmaui_port_11_test_nested2:
351       - test_nested2
352       - network.incoming.packets_cmaui_port_11
353       network.incoming.bytes_cmaui_port_11_test_nested2:
354       - test_nested2
355       - network.incoming.bytes_cmaui_port_11
356       network.incoming.packets.rate_cmaui_port_1:
357       - cmaui_port_1
358       - network.incoming.packets.rate
359       network.incoming.packets.rate_cmaui_port_2:
360       - cmaui_port_2
361       - network.incoming.packets.rate
362       feature_cmaui_port_1:
363       - cmaui_port_1
364       - feature
365       feature_cmaui_port_2:
366       - cmaui_port_2
367       - feature
368       disk.write.bytes_server_cmaui_1:
369       - server_cmaui_1
370       - disk.write.bytes
371       feature_server_cmaui_1:
372       - server_cmaui_1
373       - feature
374       disk.allocation_server_cmaui_1:
375       - server_cmaui_1
376       - disk.allocation
377       cpu_util_server_cmaui_2_test_nested2:
378       - test_nested2
379       - cpu_util_server_cmaui_2
380       disk.device.iops_server_cmaui_2_test_nested2:
381       - test_nested2
382       - disk.device.iops_server_cmaui_2
383       binding_server_cmaui_1:
384       - server_cmaui_1
385       - binding
386       scalable_server_cmaui_2_test_nested2:
387       - test_nested2
388       - scalable_server_cmaui_2
389       network.incoming.bytes.rate_cmaui_port_11_test_nested2:
390       - test_nested2
391       - network.incoming.bytes.rate_cmaui_port_11
392       attachment_cmaui_port_2:
393       - cmaui_port_2
394       - attachment
395       feature_test_nested2:
396       - test_nested2
397       - feature
398       scalable_server_cmaui_1:
399       - server_cmaui_1
400       - scalable
401       attachment_cmaui_port_22_test_nested2:
402       - test_nested2
403       - attachment_cmaui_port_22
404       network.outgoing.packets.rate_cmaui_port_1:
405       - cmaui_port_1
406       - network.outgoing.packets.rate
407       network.outgoing.packets.rate_cmaui_port_2:
408       - cmaui_port_2
409       - network.outgoing.packets.rate
410       attachment_cmaui_port_1:
411       - cmaui_port_1
412       - attachment
413       disk.write.requests_server_cmaui_2_test_nested2:
414       - test_nested2
415       - disk.write.requests_server_cmaui_2
416       disk.write.requests_server_cmaui_1:
417       - server_cmaui_1
418       - disk.write.requests
419       disk.usage_server_cmaui_1:
420       - server_cmaui_1
421       - disk.usage
422       disk.read.requests_server_cmaui_2_test_nested2:
423       - test_nested2
424       - disk.read.requests_server_cmaui_2
425       endpoint_server_cmaui_1:
426       - server_cmaui_1
427       - endpoint
428       disk.device.capacity_server_cmaui_2_test_nested2:
429       - test_nested2
430       - disk.device.capacity_server_cmaui_2
431       disk.device.read.requests.rate_server_cmaui_2_test_nested2:
432       - test_nested2
433       - disk.device.read.requests.rate_server_cmaui_2
434       memory.resident_server_cmaui_2_test_nested2:
435       - test_nested2
436       - memory.resident_server_cmaui_2
437       disk.usage_server_cmaui_2_test_nested2:
438       - test_nested2
439       - disk.usage_server_cmaui_2
440       network.outgoing.bytes_cmaui_port_11_test_nested2:
441       - test_nested2
442       - network.outgoing.bytes_cmaui_port_11
443       os_server_cmaui_1:
444       - server_cmaui_1
445       - os
446       forwarder_cmaui_port_2:
447       - cmaui_port_2
448       - forwarder
449       forwarder_cmaui_port_1:
450       - cmaui_port_1
451       - forwarder
452       feature_server_cmaui_2_test_nested2:
453       - test_nested2
454       - feature_server_cmaui_2
455       disk.device.write.requests.rate_server_cmaui_2_test_nested2:
456       - test_nested2
457       - disk.device.write.requests.rate_server_cmaui_2
458       memory_server_cmaui_2_test_nested2:
459       - test_nested2
460       - memory_server_cmaui_2
461       disk.device.allocation_server_cmaui_1:
462       - server_cmaui_1
463       - disk.device.allocation
464       memory_server_cmaui_1:
465       - server_cmaui_1
466       - memory
467       disk.device.write.requests_server_cmaui_2_test_nested2:
468       - test_nested2
469       - disk.device.write.requests_server_cmaui_2
470       host_server_cmaui_1:
471       - server_cmaui_1
472       - host
473       network.outgoing.packets.rate_cmaui_port_11_test_nested2:
474       - test_nested2
475       - network.outgoing.packets.rate_cmaui_port_11
476       disk.read.bytes_server_cmaui_2_test_nested2:
477       - test_nested2
478       - disk.read.bytes_server_cmaui_2
479       network.outgoing.bytes_cmaui_port_22_test_nested2:
480       - test_nested2
481       - network.outgoing.bytes_cmaui_port_22
482       disk.device.capacity_server_cmaui_1:
483       - server_cmaui_1
484       - disk.device.capacity
485       disk.device.latency_server_cmaui_2_test_nested2:
486       - test_nested2
487       - disk.device.latency_server_cmaui_2
488       disk.device.allocation_server_cmaui_2_test_nested2:
489       - test_nested2
490       - disk.device.allocation_server_cmaui_2
491       instance_server_cmaui_1:
492       - server_cmaui_1
493       - instance
494       disk.device.read.requests.rate_server_cmaui_1:
495       - server_cmaui_1
496       - disk.device.read.requests.rate
497       network.outgoing.bytes.rate_cmaui_port_22_test_nested2:
498       - test_nested2
499       - network.outgoing.bytes.rate_cmaui_port_22
500       network.incoming.bytes.rate_cmaui_port_1:
501       - cmaui_port_1
502       - network.incoming.bytes.rate
503       network.incoming.bytes.rate_cmaui_port_2:
504       - cmaui_port_2
505       - network.incoming.bytes.rate
506       vcpus_server_cmaui_1:
507       - server_cmaui_1
508       - vcpus
509       disk.read.bytes.rate_server_cmaui_1:
510       - server_cmaui_1
511       - disk.read.bytes.rate
512       network.outpoing.packets_cmaui_port_1:
513       - cmaui_port_1
514       - network.outpoing.packets
515       network.outpoing.packets_cmaui_port_2:
516       - cmaui_port_2
517       - network.outpoing.packets
518       disk.device.read.requests_server_cmaui_1:
519       - server_cmaui_1
520       - disk.device.read.requests
521       cpu.delta_server_cmaui_1:
522       - server_cmaui_1
523       - cpu.delta
524       disk.write.bytes_server_cmaui_2_test_nested2:
525       - test_nested2
526       - disk.write.bytes_server_cmaui_2
527       network.incoming.packets_cmaui_port_22_test_nested2:
528       - test_nested2
529       - network.incoming.packets_cmaui_port_22
530       network.incoming.bytes_cmaui_port_22_test_nested2:
531       - test_nested2
532       - network.incoming.bytes_cmaui_port_22
533       network.outpoing.packets_cmaui_port_22_test_nested2:
534       - test_nested2
535       - network.outpoing.packets_cmaui_port_22
536       memory.resident_server_cmaui_1:
537       - server_cmaui_1
538       - memory.resident
539       feature_cmaui_port_11_test_nested2:
540       - test_nested2
541       - feature_cmaui_port_11
542       attachment_cmaui_port_11_test_nested2:
543       - test_nested2
544       - attachment_cmaui_port_11
545       disk.latency_server_cmaui_1:
546       - server_cmaui_1
547       - disk.latency
548       forwarder_cmaui_port_22_test_nested2:
549       - test_nested2
550       - forwarder_cmaui_port_22
551       memory.usage_server_cmaui_1:
552       - server_cmaui_1
553       - memory.usage
554     requirements:
555       dependency_cmaui_port_22_test_nested2:
556       - test_nested2
557       - dependency_cmaui_port_22
558       link_cmaui_port_22_test_nested2:
559       - test_nested2
560       - link_cmaui_port_22
561       dependency_cmaui_port_11_test_nested2:
562       - test_nested2
563       - dependency_cmaui_port_11
564       link_cmaui_port_2:
565       - cmaui_port_2
566       - link
567       link_cmaui_port_1:
568       - cmaui_port_1
569       - link
570       local_storage_server_cmaui_1:
571       - server_cmaui_1
572       - local_storage
573       dependency_server_cmaui_2_test_nested2:
574       - test_nested2
575       - dependency_server_cmaui_2
576       local_storage_server_cmaui_2_test_nested2:
577       - test_nested2
578       - local_storage_server_cmaui_2
579       dependency_test_nested2:
580       - test_nested2
581       - dependency
582       dependency_cmaui_port_1:
583       - cmaui_port_1
584       - dependency
585       link_cmaui_port_11_test_nested2:
586       - test_nested2
587       - link_cmaui_port_11
588       dependency_server_cmaui_1:
589       - server_cmaui_1
590       - dependency
591       dependency_cmaui_port_2:
592       - cmaui_port_2
593       - dependency