42f3daa53fb92191a7d73b3fd37819148b23289f
[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     port_vdbe_untr_vmi_virtual_machine_interface_allowed_address_pairs:
15       type: org.openecomp.datatypes.heat.contrailV2.virtual.machine.subInterface.AddressPairs
16       required: true
17     port_vdbe_untr_vmi_network_role_tag:
18       type: string
19       required: true
20     subinterface_nested_parent_interface:
21       type: list
22       required: true
23       entry_schema:
24         type: string
25     subinterface_nested_aap_address_mode:
26       type: list
27       required: true
28       entry_schema:
29         type: string
30     subinterface_nested_vlan_tag_list:
31       type: list
32       required: true
33       entry_schema:
34         type: json
35     compute_vdbe_availability_zone:
36       type: list
37       required: true
38       entry_schema:
39         type: string
40     subinterface_nested_aap_untrusted_v6_ip_prefix_len:
41       type: list
42       required: true
43       entry_schema:
44         type: string
45     vm_flavor_name:
46       type: string
47       required: true
48     untrusted_num_vn:
49       hidden: false
50       immutable: false
51       type: float
52       description: Number of vDBE subinterface virtual Networks
53       constraints:
54       - in_range:
55         - 1
56         - 77
57     port_vdbe_untr_vmi_virtual_machine_interface_mac_addresses:
58       type: list
59       required: true
60       entry_schema:
61         type: json
62     subinterface_nested_aap_untrusted_ip_prefix:
63       type: list
64       required: true
65       entry_schema:
66         type: string
67     vm_image_name:
68       type: string
69       required: true
70     subinterface_nested_aap_sec_untrusted_ip_prefix_len:
71       type: list
72       required: true
73       entry_schema:
74         type: string
75     subinterface_nested_aap_sec_untrusted_ip_prefix:
76       type: list
77       required: true
78       entry_schema:
79         type: string
80     subinterface_nested_aap_untrusted_v6_ip_prefix:
81       type: list
82       required: true
83       entry_schema:
84         type: string
85     compute_vdbe_metadata:
86       type: list
87       required: true
88       entry_schema:
89         type: json
90     subinterface_nested_mac_address:
91       type: list
92       required: true
93       entry_schema:
94         type: string
95     port_vdbe_untr_vmi_virtual_network_refs:
96       type: list
97       required: true
98       entry_schema:
99         type: json
100     port_vdbe_untr_vmi_mac_requirements:
101       type: org.openecomp.datatypes.network.MacRequirements
102       required: true
103     subinterface_nested_ip_address:
104       type: list
105       required: true
106       entry_schema:
107         type: string
108     port_vdbe_untr_vmi_ip_requirements:
109       type: list
110       required: true
111       entry_schema:
112         type: org.openecomp.datatypes.network.IpRequirements
113     subinterface_nested_ip_v6_address:
114       type: list
115       required: true
116       entry_schema:
117         type: string
118     port_vdbe_untr_vmi_order:
119       type: integer
120       required: true
121     index_value:
122       type: integer
123       description: Index value of this substitution service template runtime instance
124       required: false
125       default: 0
126       constraints:
127       - greater_or_equal: 0
128     subinterface_nested_vmac_address:
129       type: list
130       required: true
131       entry_schema:
132         type: string
133     subinterface_nested_vn_network_list:
134       type: list
135       required: true
136       entry_schema:
137         type: string
138     port_vdbe_untr_vmi_network_role:
139       type: string
140       required: true
141     port_vdbe_untr_vmi_exCP_naming:
142       type: org.openecomp.datatypes.Naming
143       required: true
144     subinterface_nested_aap_untrusted_ip_prefix_len:
145       type: list
146       required: true
147       entry_schema:
148         type: string
149     port_vdbe_untr_vmi_name:
150       type: list
151       required: true
152       entry_schema:
153         type: string
154     subinterface_nested_subinterfaces_name_prefix:
155       type: list
156       required: true
157       entry_schema:
158         type: string
159     compute_vdbe_name:
160       type: list
161       required: true
162       entry_schema:
163         type: string
164     port_vdbe_untr_vmi_subnetpoolid:
165       type: string
166       required: true
167     port_vdbe_untr_vmi_vlan_requirements:
168       type: list
169       required: true
170       entry_schema:
171         type: org.openecomp.datatypes.network.VlanRequirements
172   node_templates:
173     vdbe:
174       type: org.openecomp.resource.vfc.compute.nodes.heat.vdbe
175       properties:
176         availability_zone:
177           get_input:
178           - compute_vdbe_availability_zone
179           - index_value
180         flavor:
181           get_input: vm_flavor_name
182         metadata:
183           get_input:
184           - compute_vdbe_metadata
185           - index_value
186         image:
187           get_input: vm_image_name
188         name:
189           get_input:
190           - compute_vdbe_name
191           - index_value
192     vdbe_vdbe_untr_vmi:
193       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
194       properties:
195         mac_requirements:
196           get_input: port_vdbe_untr_vmi_mac_requirements
197         order:
198           get_input: port_vdbe_untr_vmi_order
199         exCP_naming:
200           get_input: port_vdbe_untr_vmi_exCP_naming
201         virtual_machine_interface_allowed_address_pairs:
202           get_input:
203           - port_vdbe_untr_vmi_virtual_machine_interface_allowed_address_pairs
204           - index_value
205         vlan_requirements:
206           get_input: port_vdbe_untr_vmi_vlan_requirements
207         virtual_network_refs:
208           get_input:
209           - port_vdbe_untr_vmi_virtual_network_refs
210           - index_value
211         ip_requirements:
212           get_input: port_vdbe_untr_vmi_ip_requirements
213         network_role_tag:
214           get_input: port_vdbe_untr_vmi_network_role_tag
215         virtual_machine_interface_mac_addresses:
216           get_input:
217           - port_vdbe_untr_vmi_virtual_machine_interface_mac_addresses
218           - index_value
219         network_role:
220           get_input: port_vdbe_untr_vmi_network_role
221         subnetpoolid:
222           get_input: port_vdbe_untr_vmi_subnetpoolid
223         name:
224           get_input:
225           - port_vdbe_untr_vmi_name
226           - index_value
227       requirements:
228       - binding:
229           capability: tosca.capabilities.network.Bindable
230           node: vdbe
231           relationship: tosca.relationships.network.BindsTo
232     vdbe_vdbe_untr_vmi_nested:
233       type: org.openecomp.resource.abstract.nodes.heat.subinterface.nested
234       directives:
235       - substitutable
236       properties:
237         aap_untrusted_ip_prefix:
238           get_input:
239           - subinterface_nested_aap_untrusted_ip_prefix
240           - index_value
241         aap_sec_untrusted_ip_prefix:
242           get_input:
243           - subinterface_nested_aap_sec_untrusted_ip_prefix
244           - index_value
245         ip_v6_address:
246           get_input:
247           - subinterface_nested_ip_v6_address
248           - index_value
249         counter:
250           get_property:
251           - SELF
252           - service_template_filter
253           - index_value
254         ip_address:
255           get_input:
256           - subinterface_nested_ip_address
257           - index_value
258         subinterfaces_name_prefix:
259           get_input:
260           - subinterface_nested_subinterfaces_name_prefix
261           - index_value
262         aap_address_mode:
263           get_input:
264           - subinterface_nested_aap_address_mode
265           - index_value
266         service_template_filter:
267           substitute_service_template: nestedServiceTemplate.yaml
268           count:
269             get_input: untrusted_num_vn
270           mandatory: false
271         aap_untrusted_v6_ip_prefix:
272           get_input:
273           - subinterface_nested_aap_untrusted_v6_ip_prefix
274           - index_value
275         parent_interface:
276           get_input:
277           - subinterface_nested_parent_interface
278           - index_value
279         vn_network_list:
280           get_input:
281           - subinterface_nested_vn_network_list
282           - index_value
283         mac_address:
284           get_input:
285           - subinterface_nested_mac_address
286           - index_value
287         vlan_tag_list:
288           get_input:
289           - subinterface_nested_vlan_tag_list
290           - index_value
291         aap_sec_untrusted_ip_prefix_len:
292           get_input:
293           - subinterface_nested_aap_sec_untrusted_ip_prefix_len
294           - index_value
295         vmac_address:
296           get_input:
297           - subinterface_nested_vmac_address
298           - index_value
299         aap_untrusted_v6_ip_prefix_len:
300           get_input:
301           - subinterface_nested_aap_untrusted_v6_ip_prefix_len
302           - index_value
303         aap_untrusted_ip_prefix_len:
304           get_input:
305           - subinterface_nested_aap_untrusted_ip_prefix_len
306           - index_value
307       requirements:
308       - binding_vdbe_0_untr_vmi_0:
309           capability: tosca.capabilities.network.Bindable
310           node: vdbe_vdbe_untr_vmi
311           relationship: tosca.relationships.network.BindsTo
312   substitution_mappings:
313     node_type: org.openecomp.resource.abstract.nodes.vdbe
314     capabilities:
315       feature_vdbe_vdbe_untr_vmi_nested:
316       - vdbe_vdbe_untr_vmi_nested
317       - feature
318       network.incoming.packets.rate_vdbe_vdbe_untr_vmi:
319       - vdbe_vdbe_untr_vmi
320       - network.incoming.packets.rate
321       feature_vdbe:
322       - vdbe
323       - feature
324       disk.device.iops_vdbe:
325       - vdbe
326       - disk.device.iops
327       endpoint_vdbe:
328       - vdbe
329       - endpoint
330       disk.ephemeral.size_vdbe:
331       - vdbe
332       - disk.ephemeral.size
333       cpu_util_vdbe:
334       - vdbe
335       - cpu_util
336       vcpus_vdbe:
337       - vdbe
338       - vcpus
339       disk.write.requests_vdbe:
340       - vdbe
341       - disk.write.requests
342       feature_vdbe_vdbe_untr_vmi:
343       - vdbe_vdbe_untr_vmi
344       - feature
345       disk.device.latency_vdbe:
346       - vdbe
347       - disk.device.latency
348       disk.device.write.requests.rate_vdbe:
349       - vdbe
350       - disk.device.write.requests.rate
351       disk.write.bytes.rate_vdbe:
352       - vdbe
353       - disk.write.bytes.rate
354       scalable_vdbe:
355       - vdbe
356       - scalable
357       disk.iops_vdbe:
358       - vdbe
359       - disk.iops
360       disk.device.write.requests_vdbe:
361       - vdbe
362       - disk.device.write.requests
363       disk.device.capacity_vdbe:
364       - vdbe
365       - disk.device.capacity
366       disk.device.allocation_vdbe:
367       - vdbe
368       - disk.device.allocation
369       disk.usage_vdbe:
370       - vdbe
371       - disk.usage
372       memory.usage_vdbe:
373       - vdbe
374       - memory.usage
375       disk.read.requests_vdbe:
376       - vdbe
377       - disk.read.requests
378       instance_vdbe:
379       - vdbe
380       - instance
381       network.outpoing.packets_vdbe_vdbe_untr_vmi:
382       - vdbe_vdbe_untr_vmi
383       - network.outpoing.packets
384       cpu.delta_vdbe:
385       - vdbe
386       - cpu.delta
387       disk.device.read.bytes.rate_vdbe:
388       - vdbe
389       - disk.device.read.bytes.rate
390       disk.device.write.bytes.rate_vdbe:
391       - vdbe
392       - disk.device.write.bytes.rate
393       memory.resident_vdbe:
394       - vdbe
395       - memory.resident
396       network.incoming.packets_vdbe_vdbe_untr_vmi:
397       - vdbe_vdbe_untr_vmi
398       - network.incoming.packets
399       disk.write.requests.rate_vdbe:
400       - vdbe
401       - disk.write.requests.rate
402       network.incoming.bytes.rate_vdbe_vdbe_untr_vmi:
403       - vdbe_vdbe_untr_vmi
404       - network.incoming.bytes.rate
405       cpu_vdbe:
406       - vdbe
407       - cpu
408       disk.write.bytes_vdbe:
409       - vdbe
410       - disk.write.bytes
411       binding_vdbe_vdbe_untr_vmi:
412       - vdbe_vdbe_untr_vmi
413       - binding
414       disk.device.usage_vdbe:
415       - vdbe
416       - disk.device.usage
417       disk.device.read.bytes_vdbe:
418       - vdbe
419       - disk.device.read.bytes
420       disk.latency_vdbe:
421       - vdbe
422       - disk.latency
423       feature_vdbe_0_untr_vmi_0_vdbe_vdbe_untr_vmi_nested:
424       - vdbe_vdbe_untr_vmi_nested
425       - feature_vdbe_0_untr_vmi_0
426       network.outgoing.bytes.rate_vdbe_vdbe_untr_vmi:
427       - vdbe_vdbe_untr_vmi
428       - network.outgoing.bytes.rate
429       disk.capacity_vdbe:
430       - vdbe
431       - disk.capacity
432       host_vdbe:
433       - vdbe
434       - host
435       disk.allocation_vdbe:
436       - vdbe
437       - disk.allocation
438       disk.read.bytes.rate_vdbe:
439       - vdbe
440       - disk.read.bytes.rate
441       network.outgoing.packets.rate_vdbe_vdbe_untr_vmi:
442       - vdbe_vdbe_untr_vmi
443       - network.outgoing.packets.rate
444       network.incoming.bytes_vdbe_vdbe_untr_vmi:
445       - vdbe_vdbe_untr_vmi
446       - network.incoming.bytes
447       os_vdbe:
448       - vdbe
449       - os
450       forwarder_vdbe_vdbe_untr_vmi:
451       - vdbe_vdbe_untr_vmi
452       - forwarder
453       disk.device.read.requests_vdbe:
454       - vdbe
455       - disk.device.read.requests
456       disk.root.size_vdbe:
457       - vdbe
458       - disk.root.size
459       network.outgoing.bytes_vdbe_vdbe_untr_vmi:
460       - vdbe_vdbe_untr_vmi
461       - network.outgoing.bytes
462       memory_vdbe:
463       - vdbe
464       - memory
465       binding_vdbe:
466       - vdbe
467       - binding
468       disk.device.write.bytes_vdbe:
469       - vdbe
470       - disk.device.write.bytes
471       disk.device.read.requests.rate_vdbe:
472       - vdbe
473       - disk.device.read.requests.rate
474       disk.read.bytes_vdbe:
475       - vdbe
476       - disk.read.bytes
477     requirements:
478       link_vdbe_vdbe_untr_vmi:
479       - vdbe_vdbe_untr_vmi
480       - link
481       link_vdbe_0_untr_vmi_0_vdbe_vdbe_untr_vmi_nested:
482       - vdbe_vdbe_untr_vmi_nested
483       - link_vdbe_0_untr_vmi_0
484       dependency_vdbe_vdbe_untr_vmi_nested:
485       - vdbe_vdbe_untr_vmi_nested
486       - dependency
487       dependency_vdbe_0_untr_vmi_0_vdbe_vdbe_untr_vmi_nested:
488       - vdbe_vdbe_untr_vmi_nested
489       - dependency_vdbe_0_untr_vmi_0
490       local_storage_vdbe:
491       - vdbe
492       - local_storage
493       dependency_vdbe_vdbe_untr_vmi:
494       - vdbe_vdbe_untr_vmi
495       - dependency
496       dependency_vdbe:
497       - vdbe
498       - dependency