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