256a363dc87f0482028c33b6485ced42b3049b98
[sdc.git] /
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: nested_pattern4
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     vf_module_id:
15       hidden: false
16       immutable: false
17       type: string
18       description: Unique ID for this VF module inst
19     control_int_net_rpf:
20       hidden: false
21       immutable: false
22       type: string
23       description: Reverse Path Filtering enable or disable for the control virtual network
24     control_int_net_forwarding_mode:
25       hidden: false
26       immutable: false
27       type: string
28       description: forwarding mode of the control virtual network
29     vnf_name:
30       hidden: false
31       immutable: false
32       type: string
33       description: Unique name for this VF instance
34     vdbe_untrusted_ip_1:
35       hidden: false
36       immutable: false
37       type: string
38       description: IPV4 address of the secondary vDBE VM on the VAN untrusted network
39     vdbe_aap_untrusted_ip_prefix_len:
40       hidden: false
41       immutable: false
42       type: string
43       description: ip prefix length for the primary vDBE VM on the VAN untrusted network
44     untrusted_num_vn:
45       hidden: false
46       immutable: false
47       type: float
48       description: Number of vDBE subinterface virtual Networks
49       constraints:
50       - in_range:
51         - 1
52         - 77
53     vf_module_name:
54       hidden: false
55       immutable: false
56       type: string
57       description: Unique name for this VF module inst
58     aap_address_mode:
59       hidden: false
60       immutable: false
61       type: string
62       description: Address mode for the vDBE cluster IP
63     control_int_net_shared:
64       hidden: false
65       immutable: false
66       type: boolean
67       description: control virtual network shared
68     vdbe_untrusted_v6_ip_1:
69       hidden: false
70       immutable: false
71       type: string
72       description: IPV6 address of the secondary vDBE VM on the VAN untrusted network
73     vdbe_untrusted_vmac_address:
74       hidden: false
75       immutable: false
76       type: string
77       description: Virtual MAC of the primary vDBE VM on the VAN untrusted network
78     control_int_net_flood_unknown_unicast:
79       hidden: false
80       immutable: false
81       type: boolean
82       description: forwarding mode of the control virtual network
83     port_vdbe_untr_1_port_network_role:
84       type: string
85       required: true
86     vdbe_aap_sec_untrusted_ip_prefix:
87       hidden: false
88       immutable: false
89       type: string
90       description: ip prefix for secondary vDBE VM aap on the VAN untrusted network
91     vnf_id:
92       hidden: false
93       immutable: false
94       type: string
95       description: Unique ID for this VF inst
96     vdbe_name_1:
97       hidden: false
98       immutable: false
99       type: string
100       description: VM Name for this vdbe node 1
101     port_vdbe_untr_1_port_ip_requirements:
102       type: list
103       required: true
104       entry_schema:
105         type: org.openecomp.datatypes.network.IpRequirements
106     availability_zone_1:
107       hidden: false
108       immutable: false
109       type: string
110       description: The availability zone of secondary node1 vDBE vm in the local HA pair.
111     untrusted_vn_networks:
112       hidden: false
113       immutable: false
114       type: list
115       description: List of subinterface virtual networks
116       entry_schema:
117         type: string
118     vdbe_image_name:
119       hidden: false
120       immutable: false
121       type: string
122       description: Image to use for vDBE
123     oam_net_name:
124       hidden: false
125       immutable: false
126       type: string
127       description: Name of NSDNet network from which the management IP addresses will be allocated
128     vdbe_aap_sec_untrusted_ip_prefix_len:
129       hidden: false
130       immutable: false
131       type: string
132       description: ip prefix length for the secondary DBE VM aap on the VAN untrusted network
133     port_vdbe_untr_1_port_mac_requirements:
134       type: org.openecomp.datatypes.network.MacRequirements
135       required: true
136     port_vdbe_untr_1_port_order:
137       type: integer
138       required: true
139     vdbe_aap_untrusted_v6_ip_prefix:
140       hidden: false
141       immutable: false
142       type: string
143       description: ipv6 prefix for the primary vDBE VM on the VAN untrusted network
144     vdbe_aap_untrusted_v6_ip_prefix_len:
145       hidden: false
146       immutable: false
147       type: string
148       description: ipv6 prefix length for the primary vDBE VM on the VAN untrusted network
149     untrusted_vlan_tags:
150       hidden: false
151       immutable: false
152       type: list
153       description: List of subinterface vlan tags
154       entry_schema:
155         type: string
156     vdbe_flavor_name:
157       hidden: false
158       immutable: false
159       type: string
160       description: Flavor to use for vDBE
161     port_vdbe_untr_1_port_exCP_naming:
162       type: org.openecomp.datatypes.Naming
163       required: true
164     port_vdbe_untr_1_port_subnetpoolid:
165       type: string
166       required: true
167     vdbe_hw_untr_mac_1:
168       hidden: false
169       immutable: false
170       type: string
171       description: Secondary MAC address of the secondary vDBE VM on the VAN untrusted network
172     untrusted_net_name:
173       hidden: false
174       immutable: false
175       type: string
176       description: Name of public untrusted network into which this vDBE HA cluster is deployed
177     port_vdbe_untr_1_port_network_role_tag:
178       type: string
179       required: true
180     vdbe_device_name:
181       hidden: false
182       immutable: false
183       type: string
184       description: VDBE device Name for this vdbe VNF
185     port_vdbe_untr_1_port_vlan_requirements:
186       type: list
187       required: true
188       entry_schema:
189         type: org.openecomp.datatypes.network.VlanRequirements
190     vdbe_aap_untrusted_ip_prefix:
191       hidden: false
192       immutable: false
193       type: string
194       description: ip prefix for primary vDBE VM on the VAN untrusted network
195   node_templates:
196     vdbe_node_1:
197       type: org.openecomp.resource.vfc.compute.nodes.heat.vdbe
198       properties:
199         flavor:
200           get_input: vdbe_flavor_name
201         availability_zone:
202           get_input: availability_zone_1
203         image:
204           get_input: vdbe_image_name
205         metadata:
206           vf_module_id:
207             get_input: vf_module_id
208           vnf_id:
209             get_input: vnf_id
210           vnf_name:
211             get_input: vnf_name
212         name:
213           get_input: vdbe_name_1
214     vdbe_untr_1_port:
215       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
216       properties:
217         ip_requirements:
218           get_input: port_vdbe_untr_1_port_ip_requirements
219         network_role:
220           get_input: port_vdbe_untr_1_port_network_role
221         subnetpoolid:
222           get_input: port_vdbe_untr_1_port_subnetpoolid
223         mac_requirements:
224           get_input: port_vdbe_untr_1_port_mac_requirements
225         name:
226           str_replace:
227             template: VM_NAMEDBE001p1n004
228             params:
229               DBE:
230                 get_input: vdbe_device_name
231               VM_NAME:
232                 get_input: vdbe_name_1
233         exCP_naming:
234           get_input: port_vdbe_untr_1_port_exCP_naming
235         virtual_network_refs:
236         - control_int_net
237         vlan_requirements:
238           get_input: port_vdbe_untr_1_port_vlan_requirements
239         virtual_machine_interface_allowed_address_pairs:
240           allowed_address_pair:
241           - address_mode:
242               get_input: aap_address_mode
243             ip:
244               ip_prefix:
245                 get_input: vdbe_aap_untrusted_ip_prefix
246               ip_prefix_len:
247                 get_input: vdbe_aap_untrusted_ip_prefix_len
248             mac:
249               get_input: vdbe_untrusted_vmac_address
250           - address_mode:
251               get_input: aap_address_mode
252             ip:
253               ip_prefix:
254                 get_input: vdbe_aap_sec_untrusted_ip_prefix
255               ip_prefix_len:
256                 get_input: vdbe_aap_sec_untrusted_ip_prefix_len
257             mac:
258               get_input: vdbe_hw_untr_mac_1
259           - address_mode:
260               get_input: aap_address_mode
261             ip:
262               ip_prefix:
263                 get_input: vdbe_aap_untrusted_v6_ip_prefix
264               ip_prefix_len:
265                 get_input: vdbe_aap_untrusted_v6_ip_prefix_len
266             mac:
267               get_input: vdbe_untrusted_vmac_address
268         network_role_tag:
269           get_input: port_vdbe_untr_1_port_network_role_tag
270         virtual_machine_interface_mac_addresses:
271         - get_input: vdbe_hw_untr_mac_1
272         order:
273           get_input: port_vdbe_untr_1_port_order
274       requirements:
275       - link:
276           capability: tosca.capabilities.network.Linkable
277           node: control_int_net
278           relationship: tosca.relationships.network.LinksTo
279       - binding:
280           capability: tosca.capabilities.network.Bindable
281           node: vdbe_node_1
282           relationship: tosca.relationships.network.BindsTo
283     vdbe_untr_1_subports:
284       type: org.openecomp.resource.abstract.nodes.heat.subinterface.nested_vlan
285       directives:
286       - substitutable
287       properties:
288         aap_untrusted_ip_prefix:
289           get_input: vdbe_aap_untrusted_ip_prefix
290         aap_sec_untrusted_ip_prefix:
291           get_input: vdbe_aap_sec_untrusted_ip_prefix
292         vdbe_subport_network: control_int_net
293         ip_v6_address:
294           get_input: vdbe_untrusted_v6_ip_1
295         counter:
296           get_property:
297           - SELF
298           - service_template_filter
299           - index_value
300         ip_address:
301           get_input: vdbe_untrusted_ip_1
302         subinterfaces_name_prefix:
303           str_replace:
304             template: VM_NAMEDBE001p1n004
305             params:
306               DBE:
307                 get_input: vdbe_device_name
308               VM_NAME:
309                 get_input: vdbe_name_1
310         aap_address_mode:
311           get_input: aap_address_mode
312         service_template_filter:
313           substitute_service_template: nested_vlanServiceTemplate.yaml
314           count:
315             get_input: untrusted_num_vn
316           mandatory: false
317         aap_untrusted_v6_ip_prefix:
318           get_input: vdbe_aap_untrusted_v6_ip_prefix
319         parent_interface: vdbe_untr_1_port
320         mac_address:
321           get_input: vdbe_hw_untr_mac_1
322         vlan_tag_list:
323           get_input: untrusted_vlan_tags
324         aap_sec_untrusted_ip_prefix_len:
325           get_input: vdbe_aap_sec_untrusted_ip_prefix_len
326         vmac_address:
327           get_input: vdbe_untrusted_vmac_address
328         aap_untrusted_v6_ip_prefix_len:
329           get_input: vdbe_aap_untrusted_v6_ip_prefix_len
330         aap_untrusted_ip_prefix_len:
331           get_input: vdbe_aap_untrusted_ip_prefix_len
332       requirements:
333       - link_vdbe_untr_x_subport:
334           capability: tosca.capabilities.network.Linkable
335           node: control_int_net
336           relationship: tosca.relationships.network.LinksTo
337       - binding_vdbe_untr_x_subport:
338           capability: tosca.capabilities.network.Bindable
339           node: vdbe_untr_1_port
340           relationship: tosca.relationships.network.BindsTo
341       - dependency:
342           capability: tosca.capabilities.Node
343           node: control_int_net
344           relationship: tosca.relationships.DependsOn
345     control_int_net:
346       type: org.openecomp.resource.vl.nodes.heat.network.contrailV2.VirtualNetwork
347       properties:
348         network_name:
349           str_replace:
350             template: VNF_NAME_control_net
351             params:
352               VNF_NAME:
353                 get_input: vnf_name
354   groups:
355     nested_pattern4_group:
356       type: org.openecomp.groups.heat.HeatStack
357       properties:
358         heat_file: ../Artifacts/nested_pattern4.yml
359         description: |
360           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
361       members:
362       - vdbe_node_1
363       - vdbe_untr_1_port
364       - vdbe_untr_1_subports
365       - control_int_net
366   substitution_mappings:
367     node_type: org.openecomp.resource.abstract.nodes.heat.vdbe
368     capabilities:
369       disk.latency_vdbe_node_1:
370       - vdbe_node_1
371       - disk.latency
372       binding_vdbe_node_1:
373       - vdbe_node_1
374       - binding
375       network.outgoing.bytes.rate_vdbe_untr_1_port:
376       - vdbe_untr_1_port
377       - network.outgoing.bytes.rate
378       instance_vdbe_node_1:
379       - vdbe_node_1
380       - instance
381       forwarder_vdbe_untr_1_port:
382       - vdbe_untr_1_port
383       - forwarder
384       disk.device.read.requests_vdbe_node_1:
385       - vdbe_node_1
386       - disk.device.read.requests
387       disk.device.usage_vdbe_node_1:
388       - vdbe_node_1
389       - disk.device.usage
390       disk.write.bytes_vdbe_node_1:
391       - vdbe_node_1
392       - disk.write.bytes
393       disk.device.write.bytes_vdbe_node_1:
394       - vdbe_node_1
395       - disk.device.write.bytes
396       disk.allocation_vdbe_node_1:
397       - vdbe_node_1
398       - disk.allocation
399       memory_vdbe_node_1:
400       - vdbe_node_1
401       - memory
402       cpu_util_vdbe_node_1:
403       - vdbe_node_1
404       - cpu_util
405       network.incoming.packets.rate_vdbe_untr_1_port:
406       - vdbe_untr_1_port
407       - network.incoming.packets.rate
408       disk.device.read.bytes_vdbe_node_1:
409       - vdbe_node_1
410       - disk.device.read.bytes
411       disk.device.read.bytes.rate_vdbe_node_1:
412       - vdbe_node_1
413       - disk.device.read.bytes.rate
414       disk.device.allocation_vdbe_node_1:
415       - vdbe_node_1
416       - disk.device.allocation
417       disk.write.requests.rate_vdbe_node_1:
418       - vdbe_node_1
419       - disk.write.requests.rate
420       disk.root.size_vdbe_node_1:
421       - vdbe_node_1
422       - disk.root.size
423       disk.device.iops_vdbe_node_1:
424       - vdbe_node_1
425       - disk.device.iops
426       disk.device.write.requests_vdbe_node_1:
427       - vdbe_node_1
428       - disk.device.write.requests
429       disk.write.requests_vdbe_node_1:
430       - vdbe_node_1
431       - disk.write.requests
432       network.incoming.bytes.rate_vdbe_untr_1_port:
433       - vdbe_untr_1_port
434       - network.incoming.bytes.rate
435       vcpus_vdbe_node_1:
436       - vdbe_node_1
437       - vcpus
438       binding_vdbe_untr_1_port:
439       - vdbe_untr_1_port
440       - binding
441       disk.ephemeral.size_vdbe_node_1:
442       - vdbe_node_1
443       - disk.ephemeral.size
444       network.outgoing.bytes_vdbe_untr_1_port:
445       - vdbe_untr_1_port
446       - network.outgoing.bytes
447       feature_vdbe_untr_1_subports:
448       - vdbe_untr_1_subports
449       - feature
450       disk.device.latency_vdbe_node_1:
451       - vdbe_node_1
452       - disk.device.latency
453       disk.capacity_vdbe_node_1:
454       - vdbe_node_1
455       - disk.capacity
456       disk.device.capacity_vdbe_node_1:
457       - vdbe_node_1
458       - disk.device.capacity
459       link_control_int_net:
460       - control_int_net
461       - link
462       network.incoming.bytes_vdbe_untr_1_port:
463       - vdbe_untr_1_port
464       - network.incoming.bytes
465       end_point_control_int_net:
466       - control_int_net
467       - end_point
468       disk.usage_vdbe_node_1:
469       - vdbe_node_1
470       - disk.usage
471       disk.read.bytes_vdbe_node_1:
472       - vdbe_node_1
473       - disk.read.bytes
474       feature_vdbe_untr_x_subport_vdbe_untr_1_subports:
475       - vdbe_untr_1_subports
476       - feature_vdbe_untr_x_subport
477       disk.device.read.requests.rate_vdbe_node_1:
478       - vdbe_node_1
479       - disk.device.read.requests.rate
480       host_vdbe_node_1:
481       - vdbe_node_1
482       - host
483       feature_control_int_net:
484       - control_int_net
485       - feature
486       cpu.delta_vdbe_node_1:
487       - vdbe_node_1
488       - cpu.delta
489       network.incoming.packets_vdbe_untr_1_port:
490       - vdbe_untr_1_port
491       - network.incoming.packets
492       scalable_vdbe_node_1:
493       - vdbe_node_1
494       - scalable
495       disk.iops_vdbe_node_1:
496       - vdbe_node_1
497       - disk.iops
498       feature_vdbe_node_1:
499       - vdbe_node_1
500       - feature
501       memory.resident_vdbe_node_1:
502       - vdbe_node_1
503       - memory.resident
504       endpoint_vdbe_node_1:
505       - vdbe_node_1
506       - endpoint
507       network.outgoing.packets.rate_vdbe_untr_1_port:
508       - vdbe_untr_1_port
509       - network.outgoing.packets.rate
510       os_vdbe_node_1:
511       - vdbe_node_1
512       - os
513       network.outpoing.packets_vdbe_untr_1_port:
514       - vdbe_untr_1_port
515       - network.outpoing.packets
516       disk.read.bytes.rate_vdbe_node_1:
517       - vdbe_node_1
518       - disk.read.bytes.rate
519       disk.device.write.bytes.rate_vdbe_node_1:
520       - vdbe_node_1
521       - disk.device.write.bytes.rate
522       attachment_control_int_net:
523       - control_int_net
524       - attachment
525       cpu_vdbe_node_1:
526       - vdbe_node_1
527       - cpu
528       disk.device.write.requests.rate_vdbe_node_1:
529       - vdbe_node_1
530       - disk.device.write.requests.rate
531       disk.read.requests_vdbe_node_1:
532       - vdbe_node_1
533       - disk.read.requests
534       disk.write.bytes.rate_vdbe_node_1:
535       - vdbe_node_1
536       - disk.write.bytes.rate
537       feature_vdbe_untr_1_port:
538       - vdbe_untr_1_port
539       - feature
540       memory.usage_vdbe_node_1:
541       - vdbe_node_1
542       - memory.usage
543     requirements:
544       dependency_vdbe_untr_x_subport_vdbe_untr_1_subports:
545       - vdbe_untr_1_subports
546       - dependency_vdbe_untr_x_subport
547       dependency_vdbe_node_1:
548       - vdbe_node_1
549       - dependency
550       local_storage_vdbe_node_1:
551       - vdbe_node_1
552       - local_storage
553       dependency_vdbe_untr_1_port:
554       - vdbe_untr_1_port
555       - dependency
556       dependency_control_int_net:
557       - control_int_net
558       - dependency
559       dependency_vdbe_untr_1_subports:
560       - vdbe_untr_1_subports
561       - dependency