3babb153dbdf8334af009646cea2d33f53596117
[sdc.git] /
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: Nested_vdbe
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.compute.nodes.heat.vdbe:
11     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
12 topology_template:
13   inputs:
14     subinterface_vlan1_aap_untrusted_v6_ip_prefix:
15       type: list
16       required: true
17       entry_schema:
18         type: string
19     subinterface_vlan1_aap_sec_untrusted_ip_prefix:
20       type: list
21       required: true
22       entry_schema:
23         type: string
24     subinterface_vlan1_vmac_address:
25       type: list
26       required: true
27       entry_schema:
28         type: string
29     compute_vdbe_availability_zone:
30       type: list
31       required: true
32       entry_schema:
33         type: string
34     vm_flavor_name:
35       type: string
36       required: true
37     subinterface_vlan1_counter:
38       type: list
39       required: true
40       entry_schema:
41         type: float
42     subinterface_vlan2_aap_untrusted_v6_ip_prefix:
43       type: list
44       required: true
45       entry_schema:
46         type: string
47     vm_image_name:
48       type: string
49       required: true
50     compute_vdbe_metadata:
51       type: list
52       required: true
53       entry_schema:
54         type: json
55     subinterface_vlan1_aap_untrusted_v6_ip_prefix_len:
56       type: list
57       required: true
58       entry_schema:
59         type: string
60     port_vdbe_untr_1_port_ip_requirements:
61       type: list
62       required: true
63       entry_schema:
64         type: org.openecomp.datatypes.network.IpRequirements
65     port_vdbe_untr_1_port_mac_requirements:
66       type: org.openecomp.datatypes.network.MacRequirements
67       required: true
68     port_vdbe_untr_1_port_order:
69       type: integer
70       required: true
71     subinterface_vlan2_ip_address:
72       type: list
73       required: true
74       entry_schema:
75         type: string
76     subinterface_vlan2_ip_v6_address:
77       type: list
78       required: true
79       entry_schema:
80         type: string
81     port_vdbe_untr_1_port_subnetpoolid:
82       type: string
83       required: true
84     subinterface_vlan2_parent_interface:
85       type: list
86       required: true
87       entry_schema:
88         type: string
89     subinterface_vlan2_aap_address_mode:
90       type: list
91       required: true
92       entry_schema:
93         type: string
94     port_vdbe_untr_1_port_virtual_machine_interface_allowed_address_pairs:
95       type: org.openecomp.datatypes.heat.contrailV2.virtual.machine.subInterface.AddressPairs
96       required: true
97     subinterface_vlan1_mac_address:
98       type: list
99       required: true
100       entry_schema:
101         type: string
102     subinterface_vlan2_mac_address:
103       type: list
104       required: true
105       entry_schema:
106         type: string
107     subinterface_vlan1_aap_untrusted_ip_prefix_len:
108       type: list
109       required: true
110       entry_schema:
111         type: string
112     subinterface_vlan1_ip_address:
113       type: list
114       required: true
115       entry_schema:
116         type: string
117     subinterface_vlan2_aap_sec_untrusted_ip_prefix:
118       type: list
119       required: true
120       entry_schema:
121         type: string
122     compute_vdbe_name:
123       type: list
124       required: true
125       entry_schema:
126         type: string
127     port_vdbe_untr_1_port_network_role_tag:
128       type: string
129       required: true
130     subinterface_vlan2_aap_untrusted_ip_prefix:
131       type: list
132       required: true
133       entry_schema:
134         type: string
135     port_vdbe_untr_1_port_subinterface_indicator:
136       type: list
137       required: true
138       entry_schema:
139         type: boolean
140     subinterface_vlan1_ip_v6_address:
141       type: list
142       required: true
143       entry_schema:
144         type: string
145     subinterface_vlan2_vmac_address:
146       type: list
147       required: true
148       entry_schema:
149         type: string
150     subinterface_vlan1_aap_untrusted_ip_prefix:
151       type: list
152       required: true
153       entry_schema:
154         type: string
155     subinterface_vlan2_vn_network_list:
156       type: list
157       required: true
158       entry_schema:
159         type: string
160     subinterface_vlan1_subinterfaces_name_prefix:
161       type: list
162       required: true
163       entry_schema:
164         type: string
165     port_vdbe_untr_1_port_network_role:
166       type: string
167       required: true
168     port_vdbe_untr_1_port_virtual_network_refs:
169       type: list
170       required: true
171       entry_schema:
172         type: json
173     subinterface_vlan2_vlan_tag_list:
174       type: list
175       required: true
176       entry_schema:
177         type: json
178     subinterface_vlan1_vn_network_list:
179       type: list
180       required: true
181       entry_schema:
182         type: string
183     subinterface_vlan2_aap_sec_untrusted_ip_prefix_len:
184       type: list
185       required: true
186       entry_schema:
187         type: string
188     subinterface_vlan1_service_template_filter_count:
189       type: list
190       required: true
191       entry_schema:
192         type: float
193     subinterface_vlan2_counter:
194       type: list
195       required: true
196       entry_schema:
197         type: float
198     subinterface_vlan1_parent_interface:
199       type: list
200       required: true
201       entry_schema:
202         type: string
203     subinterface_vlan1_aap_address_mode:
204       type: list
205       required: true
206       entry_schema:
207         type: string
208     subinterface_vlan2_aap_untrusted_ip_prefix_len:
209       type: list
210       required: true
211       entry_schema:
212         type: string
213     index_value:
214       type: integer
215       description: Index value of this substitution service template runtime instance
216       required: false
217       default: 0
218       constraints:
219       - greater_or_equal: 0
220     subinterface_vlan2_subinterfaces_name_prefix:
221       type: list
222       required: true
223       entry_schema:
224         type: string
225     subinterface_vlan2_aap_untrusted_v6_ip_prefix_len:
226       type: list
227       required: true
228       entry_schema:
229         type: string
230     port_vdbe_untr_1_port_exCP_naming:
231       type: org.openecomp.datatypes.Naming
232       required: true
233     port_vdbe_untr_1_port_name:
234       type: list
235       required: true
236       entry_schema:
237         type: string
238     subinterface_vlan2_service_template_filter_count:
239       type: list
240       required: true
241       entry_schema:
242         type: float
243     subinterface_vlan1_aap_sec_untrusted_ip_prefix_len:
244       type: list
245       required: true
246       entry_schema:
247         type: string
248     port_vdbe_untr_1_port_vlan_requirements:
249       type: list
250       required: true
251       entry_schema:
252         type: org.openecomp.datatypes.network.VlanRequirements
253     port_vdbe_untr_1_port_virtual_machine_interface_mac_addresses:
254       type: list
255       required: true
256       entry_schema:
257         type: json
258     subinterface_vlan1_vlan_tag_list:
259       type: list
260       required: true
261       entry_schema:
262         type: json
263   node_templates:
264     vdbe:
265       type: org.openecomp.resource.vfc.compute.nodes.heat.vdbe
266       properties:
267         availability_zone:
268           get_input:
269           - compute_vdbe_availability_zone
270           - index_value
271         flavor:
272           get_input: vm_flavor_name
273         metadata:
274           get_input:
275           - compute_vdbe_metadata
276           - index_value
277         image:
278           get_input: vm_image_name
279         name:
280           get_input:
281           - compute_vdbe_name
282           - index_value
283     vdbe_vdbe_untr_1_port_vlan1:
284       type: org.openecomp.resource.abstract.nodes.heat.subinterface.vlan1
285       directives:
286       - substitutable
287       properties:
288         aap_untrusted_ip_prefix:
289           get_input:
290           - subinterface_vlan1_aap_untrusted_ip_prefix
291           - index_value
292         aap_sec_untrusted_ip_prefix:
293           get_input:
294           - subinterface_vlan1_aap_sec_untrusted_ip_prefix
295           - index_value
296         ip_v6_address:
297           get_input:
298           - subinterface_vlan1_ip_v6_address
299           - index_value
300         counter:
301           get_input:
302           - subinterface_vlan1_counter
303           - index_value
304         ip_address:
305           get_input:
306           - subinterface_vlan1_ip_address
307           - index_value
308         subinterfaces_name_prefix:
309           get_input:
310           - subinterface_vlan1_subinterfaces_name_prefix
311           - index_value
312         aap_address_mode:
313           get_input:
314           - subinterface_vlan1_aap_address_mode
315           - index_value
316         service_template_filter:
317           count:
318             get_input:
319             - subinterface_vlan1_service_template_filter_count
320             - index_value
321           substitute_service_template: vlan1ServiceTemplate.yaml
322           mandatory: false
323         aap_untrusted_v6_ip_prefix:
324           get_input:
325           - subinterface_vlan1_aap_untrusted_v6_ip_prefix
326           - index_value
327         parent_interface:
328           get_input:
329           - subinterface_vlan1_parent_interface
330           - index_value
331         vn_network_list:
332           get_input:
333           - subinterface_vlan1_vn_network_list
334           - index_value
335         mac_address:
336           get_input:
337           - subinterface_vlan1_mac_address
338           - index_value
339         vlan_tag_list:
340           get_input:
341           - subinterface_vlan1_vlan_tag_list
342           - index_value
343         aap_sec_untrusted_ip_prefix_len:
344           get_input:
345           - subinterface_vlan1_aap_sec_untrusted_ip_prefix_len
346           - index_value
347         vmac_address:
348           get_input:
349           - subinterface_vlan1_vmac_address
350           - index_value
351         aap_untrusted_v6_ip_prefix_len:
352           get_input:
353           - subinterface_vlan1_aap_untrusted_v6_ip_prefix_len
354           - index_value
355         aap_untrusted_ip_prefix_len:
356           get_input:
357           - subinterface_vlan1_aap_untrusted_ip_prefix_len
358           - index_value
359       requirements:
360       - binding_vdbe_untr_x_subport:
361           capability: tosca.capabilities.network.Bindable
362           node: vdbe_vdbe_untr_1_port
363           relationship: tosca.relationships.network.BindsTo
364     vdbe_vdbe_untr_1_port:
365       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
366       properties:
367         mac_requirements:
368           get_input: port_vdbe_untr_1_port_mac_requirements
369         order:
370           get_input: port_vdbe_untr_1_port_order
371         exCP_naming:
372           get_input: port_vdbe_untr_1_port_exCP_naming
373         virtual_machine_interface_allowed_address_pairs:
374           get_input:
375           - port_vdbe_untr_1_port_virtual_machine_interface_allowed_address_pairs
376           - index_value
377         vlan_requirements:
378           get_input: port_vdbe_untr_1_port_vlan_requirements
379         subinterface_indicator:
380           get_input:
381           - port_vdbe_untr_1_port_subinterface_indicator
382           - index_value
383         virtual_network_refs:
384           get_input:
385           - port_vdbe_untr_1_port_virtual_network_refs
386           - index_value
387         ip_requirements:
388           get_input: port_vdbe_untr_1_port_ip_requirements
389         network_role_tag:
390           get_input: port_vdbe_untr_1_port_network_role_tag
391         virtual_machine_interface_mac_addresses:
392           get_input:
393           - port_vdbe_untr_1_port_virtual_machine_interface_mac_addresses
394           - index_value
395         network_role:
396           get_input: port_vdbe_untr_1_port_network_role
397         subnetpoolid:
398           get_input: port_vdbe_untr_1_port_subnetpoolid
399         name:
400           get_input:
401           - port_vdbe_untr_1_port_name
402           - index_value
403       requirements:
404       - binding:
405           capability: tosca.capabilities.network.Bindable
406           node: vdbe
407           relationship: tosca.relationships.network.BindsTo
408     vdbe_vdbe_untr_1_port_vlan2:
409       type: org.openecomp.resource.abstract.nodes.heat.subinterface.vlan2
410       directives:
411       - substitutable
412       properties:
413         aap_untrusted_ip_prefix:
414           get_input:
415           - subinterface_vlan2_aap_untrusted_ip_prefix
416           - index_value
417         aap_sec_untrusted_ip_prefix:
418           get_input:
419           - subinterface_vlan2_aap_sec_untrusted_ip_prefix
420           - index_value
421         ip_v6_address:
422           get_input:
423           - subinterface_vlan2_ip_v6_address
424           - index_value
425         counter:
426           get_input:
427           - subinterface_vlan2_counter
428           - index_value
429         ip_address:
430           get_input:
431           - subinterface_vlan2_ip_address
432           - index_value
433         subinterfaces_name_prefix:
434           get_input:
435           - subinterface_vlan2_subinterfaces_name_prefix
436           - index_value
437         aap_address_mode:
438           get_input:
439           - subinterface_vlan2_aap_address_mode
440           - index_value
441         service_template_filter:
442           count:
443             get_input:
444             - subinterface_vlan2_service_template_filter_count
445             - index_value
446           substitute_service_template: vlan2ServiceTemplate.yaml
447           mandatory: true
448         aap_untrusted_v6_ip_prefix:
449           get_input:
450           - subinterface_vlan2_aap_untrusted_v6_ip_prefix
451           - index_value
452         parent_interface:
453           get_input:
454           - subinterface_vlan2_parent_interface
455           - index_value
456         vn_network_list:
457           get_input:
458           - subinterface_vlan2_vn_network_list
459           - index_value
460         mac_address:
461           get_input:
462           - subinterface_vlan2_mac_address
463           - index_value
464         vlan_tag_list:
465           get_input:
466           - subinterface_vlan2_vlan_tag_list
467           - index_value
468         aap_sec_untrusted_ip_prefix_len:
469           get_input:
470           - subinterface_vlan2_aap_sec_untrusted_ip_prefix_len
471           - index_value
472         vmac_address:
473           get_input:
474           - subinterface_vlan2_vmac_address
475           - index_value
476         aap_untrusted_v6_ip_prefix_len:
477           get_input:
478           - subinterface_vlan2_aap_untrusted_v6_ip_prefix_len
479           - index_value
480         aap_untrusted_ip_prefix_len:
481           get_input:
482           - subinterface_vlan2_aap_untrusted_ip_prefix_len
483           - index_value
484       requirements:
485       - binding_vdbe_untr_x_subport_another:
486           capability: tosca.capabilities.network.Bindable
487           node: vdbe_vdbe_untr_1_port
488           relationship: tosca.relationships.network.BindsTo
489   substitution_mappings:
490     node_type: org.openecomp.resource.abstract.nodes.vdbe
491     capabilities:
492       feature_vdbe:
493       - vdbe
494       - feature
495       feature_vdbe_untr_x_subport_another_vdbe_vdbe_untr_1_port_vlan2:
496       - vdbe_vdbe_untr_1_port_vlan2
497       - feature_vdbe_untr_x_subport_another
498       disk.device.iops_vdbe:
499       - vdbe
500       - disk.device.iops
501       endpoint_vdbe:
502       - vdbe
503       - endpoint
504       disk.ephemeral.size_vdbe:
505       - vdbe
506       - disk.ephemeral.size
507       cpu_util_vdbe:
508       - vdbe
509       - cpu_util
510       vcpus_vdbe:
511       - vdbe
512       - vcpus
513       disk.write.requests_vdbe:
514       - vdbe
515       - disk.write.requests
516       feature_vdbe_vdbe_untr_1_port_vlan1:
517       - vdbe_vdbe_untr_1_port_vlan1
518       - feature
519       feature_vdbe_vdbe_untr_1_port_vlan2:
520       - vdbe_vdbe_untr_1_port_vlan2
521       - feature
522       disk.device.latency_vdbe:
523       - vdbe
524       - disk.device.latency
525       disk.device.write.requests.rate_vdbe:
526       - vdbe
527       - disk.device.write.requests.rate
528       feature_vdbe_vdbe_untr_1_port:
529       - vdbe_vdbe_untr_1_port
530       - feature
531       disk.write.bytes.rate_vdbe:
532       - vdbe
533       - disk.write.bytes.rate
534       network.incoming.bytes.rate_vdbe_vdbe_untr_1_port:
535       - vdbe_vdbe_untr_1_port
536       - network.incoming.bytes.rate
537       network.incoming.packets.rate_vdbe_vdbe_untr_1_port:
538       - vdbe_vdbe_untr_1_port
539       - network.incoming.packets.rate
540       scalable_vdbe:
541       - vdbe
542       - scalable
543       disk.iops_vdbe:
544       - vdbe
545       - disk.iops
546       disk.device.write.requests_vdbe:
547       - vdbe
548       - disk.device.write.requests
549       disk.device.capacity_vdbe:
550       - vdbe
551       - disk.device.capacity
552       network.outgoing.bytes_vdbe_vdbe_untr_1_port:
553       - vdbe_vdbe_untr_1_port
554       - network.outgoing.bytes
555       disk.device.allocation_vdbe:
556       - vdbe
557       - disk.device.allocation
558       disk.usage_vdbe:
559       - vdbe
560       - disk.usage
561       memory.usage_vdbe:
562       - vdbe
563       - memory.usage
564       disk.read.requests_vdbe:
565       - vdbe
566       - disk.read.requests
567       network.incoming.bytes_vdbe_vdbe_untr_1_port:
568       - vdbe_vdbe_untr_1_port
569       - network.incoming.bytes
570       feature_vdbe_untr_x_subport_vdbe_vdbe_untr_1_port_vlan1:
571       - vdbe_vdbe_untr_1_port_vlan1
572       - feature_vdbe_untr_x_subport
573       instance_vdbe:
574       - vdbe
575       - instance
576       cpu.delta_vdbe:
577       - vdbe
578       - cpu.delta
579       binding_vdbe_vdbe_untr_1_port:
580       - vdbe_vdbe_untr_1_port
581       - binding
582       disk.device.read.bytes.rate_vdbe:
583       - vdbe
584       - disk.device.read.bytes.rate
585       disk.device.write.bytes.rate_vdbe:
586       - vdbe
587       - disk.device.write.bytes.rate
588       memory.resident_vdbe:
589       - vdbe
590       - memory.resident
591       forwarder_vdbe_vdbe_untr_1_port:
592       - vdbe_vdbe_untr_1_port
593       - forwarder
594       disk.write.requests.rate_vdbe:
595       - vdbe
596       - disk.write.requests.rate
597       cpu_vdbe:
598       - vdbe
599       - cpu
600       disk.write.bytes_vdbe:
601       - vdbe
602       - disk.write.bytes
603       disk.device.usage_vdbe:
604       - vdbe
605       - disk.device.usage
606       disk.device.read.bytes_vdbe:
607       - vdbe
608       - disk.device.read.bytes
609       disk.latency_vdbe:
610       - vdbe
611       - disk.latency
612       network.outgoing.packets.rate_vdbe_vdbe_untr_1_port:
613       - vdbe_vdbe_untr_1_port
614       - network.outgoing.packets.rate
615       disk.capacity_vdbe:
616       - vdbe
617       - disk.capacity
618       host_vdbe:
619       - vdbe
620       - host
621       disk.allocation_vdbe:
622       - vdbe
623       - disk.allocation
624       network.outpoing.packets_vdbe_vdbe_untr_1_port:
625       - vdbe_vdbe_untr_1_port
626       - network.outpoing.packets
627       network.incoming.packets_vdbe_vdbe_untr_1_port:
628       - vdbe_vdbe_untr_1_port
629       - network.incoming.packets
630       disk.read.bytes.rate_vdbe:
631       - vdbe
632       - disk.read.bytes.rate
633       os_vdbe:
634       - vdbe
635       - os
636       disk.device.read.requests_vdbe:
637       - vdbe
638       - disk.device.read.requests
639       disk.root.size_vdbe:
640       - vdbe
641       - disk.root.size
642       memory_vdbe:
643       - vdbe
644       - memory
645       binding_vdbe:
646       - vdbe
647       - binding
648       disk.device.write.bytes_vdbe:
649       - vdbe
650       - disk.device.write.bytes
651       network.outgoing.bytes.rate_vdbe_vdbe_untr_1_port:
652       - vdbe_vdbe_untr_1_port
653       - network.outgoing.bytes.rate
654       disk.device.read.requests.rate_vdbe:
655       - vdbe
656       - disk.device.read.requests.rate
657       disk.read.bytes_vdbe:
658       - vdbe
659       - disk.read.bytes
660     requirements:
661       subinterface_link_vdbe_untr_x_subport_another_vdbe_vdbe_untr_1_port_vlan2:
662       - vdbe_vdbe_untr_1_port_vlan2
663       - subinterface_link_vdbe_untr_x_subport_another
664       dependency_vdbe_vdbe_untr_1_port:
665       - vdbe_vdbe_untr_1_port
666       - dependency
667       subinterface_link_vdbe_untr_x_subport_vdbe_vdbe_untr_1_port_vlan1:
668       - vdbe_vdbe_untr_1_port_vlan1
669       - subinterface_link_vdbe_untr_x_subport
670       local_storage_vdbe:
671       - vdbe
672       - local_storage
673       dependency_vdbe_vdbe_untr_1_port_vlan1:
674       - vdbe_vdbe_untr_1_port_vlan1
675       - dependency
676       dependency_vdbe_vdbe_untr_1_port_vlan2:
677       - vdbe_vdbe_untr_1_port_vlan2
678       - dependency
679       dependency_vdbe_untr_x_subport_another_vdbe_vdbe_untr_1_port_vlan2:
680       - vdbe_vdbe_untr_1_port_vlan2
681       - dependency_vdbe_untr_x_subport_another
682       link_vdbe_vdbe_untr_1_port:
683       - vdbe_vdbe_untr_1_port
684       - link
685       dependency_vdbe:
686       - vdbe
687       - dependency
688       dependency_vdbe_untr_x_subport_vdbe_vdbe_untr_1_port_vlan1:
689       - vdbe_vdbe_untr_1_port_vlan1
690       - dependency_vdbe_untr_x_subport