0f42e6643869b754b1b35f47234d583b5dfcba23
[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         ip_requirements:
254           get_input: port_vdbe_untr_1_port_ip_requirements
255         network_role:
256           get_input: port_vdbe_untr_1_port_network_role
257         subnetpoolid:
258           get_input: port_vdbe_untr_1_port_subnetpoolid
259         mac_requirements:
260           get_input: port_vdbe_untr_1_port_mac_requirements
261         name:
262           str_replace:
263             template: VM_NAMEDBE001p1n004
264             params:
265               DBE:
266                 get_input: vdbe_device_name
267               VM_NAME:
268                 get_input: vdbe_name_1
269         exCP_naming:
270           get_input: port_vdbe_untr_1_port_exCP_naming
271         virtual_network_refs:
272         - fabric_int_net
273         vlan_requirements:
274           get_input: port_vdbe_untr_1_port_vlan_requirements
275         virtual_machine_interface_allowed_address_pairs:
276           allowed_address_pair:
277           - address_mode:
278               get_input: aap_address_mode
279             ip:
280               ip_prefix:
281                 get_input: vdbe_aap_untrusted_ip_prefix
282               ip_prefix_len:
283                 get_input: vdbe_aap_untrusted_ip_prefix_len
284             mac:
285               get_input: vdbe_untrusted_vmac_address
286           - address_mode:
287               get_input: aap_address_mode
288             ip:
289               ip_prefix:
290                 get_input: vdbe_aap_sec_untrusted_ip_prefix
291               ip_prefix_len:
292                 get_input: vdbe_aap_sec_untrusted_ip_prefix_len
293             mac:
294               get_input: vdbe_hw_untr_mac_1
295           - address_mode:
296               get_input: aap_address_mode
297             ip:
298               ip_prefix:
299                 get_input: vdbe_aap_untrusted_v6_ip_prefix
300               ip_prefix_len:
301                 get_input: vdbe_aap_untrusted_v6_ip_prefix_len
302             mac:
303               get_input: vdbe_untrusted_vmac_address
304         network_role_tag:
305           get_input: port_vdbe_untr_1_port_network_role_tag
306         virtual_machine_interface_mac_addresses:
307         - get_input: vdbe_hw_untr_mac_1
308         order:
309           get_input: port_vdbe_untr_1_port_order
310       requirements:
311       - link:
312           capability: tosca.capabilities.network.Linkable
313           node: fabric_int_net
314           relationship: tosca.relationships.network.LinksTo
315       - binding:
316           capability: tosca.capabilities.network.Bindable
317           node: vdbe_node_1
318           relationship: tosca.relationships.network.BindsTo
319     vdbe_untr_1_subports:
320       type: org.openecomp.resource.abstract.nodes.heat.subinterface.nested_vlan
321       directives:
322       - substitutable
323       properties:
324         aap_untrusted_ip_prefix:
325           get_input: vdbe_aap_untrusted_ip_prefix
326         aap_sec_untrusted_ip_prefix:
327           get_input: vdbe_aap_sec_untrusted_ip_prefix
328         vdbe_subport_network: control_int_net
329         ip_v6_address:
330           get_input: vdbe_untrusted_v6_ip_1
331         counter:
332           get_input: counter
333         ip_address:
334           get_input: vdbe_untrusted_ip_1
335         subinterfaces_name_prefix:
336           str_replace:
337             template: VM_NAMEDBE001p1n004
338             params:
339               DBE:
340                 get_input: vdbe_device_name
341               VM_NAME:
342                 get_input: vdbe_name_1
343         aap_address_mode:
344           get_input: aap_address_mode
345         service_template_filter:
346           substitute_service_template: nested_vlanServiceTemplate.yaml
347           count:
348             get_input: untrusted_num_vn
349           mandatory: false
350         aap_untrusted_v6_ip_prefix:
351           get_input: vdbe_aap_untrusted_v6_ip_prefix
352         parent_interface: vdbe_untr_1_port
353         mac_address:
354           get_input: vdbe_hw_untr_mac_1
355         vlan_tag_list:
356           get_input: untrusted_vlan_tags
357         aap_sec_untrusted_ip_prefix_len:
358           get_input: vdbe_aap_sec_untrusted_ip_prefix_len
359         vmac_address:
360           get_attribute:
361           - control_int_net
362           - fq_name
363         aap_untrusted_v6_ip_prefix_len:
364           get_input: vdbe_aap_untrusted_v6_ip_prefix_len
365         aap_untrusted_ip_prefix_len:
366           get_input: vdbe_aap_untrusted_ip_prefix_len
367       requirements:
368       - subinterface_link_vdbe_untr_x_subport:
369           capability: tosca.capabilities.network.Linkable
370           node: control_int_net
371           relationship: tosca.relationships.network.LinksTo
372       - binding_vdbe_untr_x_subport:
373           capability: tosca.capabilities.network.Bindable
374           node: vdbe_untr_1_port
375           relationship: tosca.relationships.network.BindsTo
376     control_int_net:
377       type: org.openecomp.resource.vl.nodes.heat.network.contrailV2.VirtualNetwork
378       properties:
379         network_name:
380           str_replace:
381             template: VNF_NAME_control_net
382             params:
383               VNF_NAME:
384                 get_input: vnf_name
385   groups:
386     nested_pattern4_group:
387       type: org.openecomp.groups.heat.HeatStack
388       properties:
389         heat_file: ../Artifacts/nested_pattern4.yml
390         description: |
391           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
392       members:
393       - vdbe_node_1
394       - fabric_int_net
395       - vdbe_untr_1_port
396       - vdbe_untr_1_subports
397       - control_int_net
398   outputs:
399     out1:
400       description: output param connectivity
401       value:
402         get_attribute:
403         - vdbe_untr_1_subports
404         - aap_address_mode
405   substitution_mappings:
406     node_type: org.openecomp.resource.abstract.nodes.heat.vdbe
407     capabilities:
408       disk.latency_vdbe_node_1:
409       - vdbe_node_1
410       - disk.latency
411       binding_vdbe_node_1:
412       - vdbe_node_1
413       - binding
414       network.outgoing.bytes.rate_vdbe_untr_1_port:
415       - vdbe_untr_1_port
416       - network.outgoing.bytes.rate
417       instance_vdbe_node_1:
418       - vdbe_node_1
419       - instance
420       forwarder_vdbe_untr_1_port:
421       - vdbe_untr_1_port
422       - forwarder
423       disk.device.read.requests_vdbe_node_1:
424       - vdbe_node_1
425       - disk.device.read.requests
426       end_point_fabric_int_net:
427       - fabric_int_net
428       - end_point
429       disk.device.usage_vdbe_node_1:
430       - vdbe_node_1
431       - disk.device.usage
432       attachment_fabric_int_net:
433       - fabric_int_net
434       - attachment
435       disk.write.bytes_vdbe_node_1:
436       - vdbe_node_1
437       - disk.write.bytes
438       disk.device.write.bytes_vdbe_node_1:
439       - vdbe_node_1
440       - disk.device.write.bytes
441       disk.allocation_vdbe_node_1:
442       - vdbe_node_1
443       - disk.allocation
444       memory_vdbe_node_1:
445       - vdbe_node_1
446       - memory
447       cpu_util_vdbe_node_1:
448       - vdbe_node_1
449       - cpu_util
450       network.incoming.packets.rate_vdbe_untr_1_port:
451       - vdbe_untr_1_port
452       - network.incoming.packets.rate
453       disk.device.read.bytes_vdbe_node_1:
454       - vdbe_node_1
455       - disk.device.read.bytes
456       disk.device.read.bytes.rate_vdbe_node_1:
457       - vdbe_node_1
458       - disk.device.read.bytes.rate
459       disk.device.allocation_vdbe_node_1:
460       - vdbe_node_1
461       - disk.device.allocation
462       disk.write.requests.rate_vdbe_node_1:
463       - vdbe_node_1
464       - disk.write.requests.rate
465       disk.root.size_vdbe_node_1:
466       - vdbe_node_1
467       - disk.root.size
468       disk.device.iops_vdbe_node_1:
469       - vdbe_node_1
470       - disk.device.iops
471       disk.device.write.requests_vdbe_node_1:
472       - vdbe_node_1
473       - disk.device.write.requests
474       disk.write.requests_vdbe_node_1:
475       - vdbe_node_1
476       - disk.write.requests
477       network.incoming.bytes.rate_vdbe_untr_1_port:
478       - vdbe_untr_1_port
479       - network.incoming.bytes.rate
480       vcpus_vdbe_node_1:
481       - vdbe_node_1
482       - vcpus
483       binding_vdbe_untr_1_port:
484       - vdbe_untr_1_port
485       - binding
486       disk.ephemeral.size_vdbe_node_1:
487       - vdbe_node_1
488       - disk.ephemeral.size
489       network.outgoing.bytes_vdbe_untr_1_port:
490       - vdbe_untr_1_port
491       - network.outgoing.bytes
492       feature_vdbe_untr_1_subports:
493       - vdbe_untr_1_subports
494       - feature
495       disk.device.latency_vdbe_node_1:
496       - vdbe_node_1
497       - disk.device.latency
498       disk.capacity_vdbe_node_1:
499       - vdbe_node_1
500       - disk.capacity
501       disk.device.capacity_vdbe_node_1:
502       - vdbe_node_1
503       - disk.device.capacity
504       feature_fabric_int_net:
505       - fabric_int_net
506       - feature
507       link_control_int_net:
508       - control_int_net
509       - link
510       network.incoming.bytes_vdbe_untr_1_port:
511       - vdbe_untr_1_port
512       - network.incoming.bytes
513       end_point_control_int_net:
514       - control_int_net
515       - end_point
516       disk.usage_vdbe_node_1:
517       - vdbe_node_1
518       - disk.usage
519       disk.read.bytes_vdbe_node_1:
520       - vdbe_node_1
521       - disk.read.bytes
522       feature_vdbe_untr_x_subport_vdbe_untr_1_subports:
523       - vdbe_untr_1_subports
524       - feature_vdbe_untr_x_subport
525       disk.device.read.requests.rate_vdbe_node_1:
526       - vdbe_node_1
527       - disk.device.read.requests.rate
528       host_vdbe_node_1:
529       - vdbe_node_1
530       - host
531       feature_control_int_net:
532       - control_int_net
533       - feature
534       cpu.delta_vdbe_node_1:
535       - vdbe_node_1
536       - cpu.delta
537       network.incoming.packets_vdbe_untr_1_port:
538       - vdbe_untr_1_port
539       - network.incoming.packets
540       scalable_vdbe_node_1:
541       - vdbe_node_1
542       - scalable
543       link_fabric_int_net:
544       - fabric_int_net
545       - link
546       disk.iops_vdbe_node_1:
547       - vdbe_node_1
548       - disk.iops
549       feature_vdbe_node_1:
550       - vdbe_node_1
551       - feature
552       memory.resident_vdbe_node_1:
553       - vdbe_node_1
554       - memory.resident
555       endpoint_vdbe_node_1:
556       - vdbe_node_1
557       - endpoint
558       network.outgoing.packets.rate_vdbe_untr_1_port:
559       - vdbe_untr_1_port
560       - network.outgoing.packets.rate
561       os_vdbe_node_1:
562       - vdbe_node_1
563       - os
564       network.outpoing.packets_vdbe_untr_1_port:
565       - vdbe_untr_1_port
566       - network.outpoing.packets
567       disk.read.bytes.rate_vdbe_node_1:
568       - vdbe_node_1
569       - disk.read.bytes.rate
570       disk.device.write.bytes.rate_vdbe_node_1:
571       - vdbe_node_1
572       - disk.device.write.bytes.rate
573       attachment_control_int_net:
574       - control_int_net
575       - attachment
576       cpu_vdbe_node_1:
577       - vdbe_node_1
578       - cpu
579       disk.device.write.requests.rate_vdbe_node_1:
580       - vdbe_node_1
581       - disk.device.write.requests.rate
582       disk.read.requests_vdbe_node_1:
583       - vdbe_node_1
584       - disk.read.requests
585       disk.write.bytes.rate_vdbe_node_1:
586       - vdbe_node_1
587       - disk.write.bytes.rate
588       feature_vdbe_untr_1_port:
589       - vdbe_untr_1_port
590       - feature
591       memory.usage_vdbe_node_1:
592       - vdbe_node_1
593       - memory.usage
594     requirements:
595       dependency_vdbe_untr_x_subport_vdbe_untr_1_subports:
596       - vdbe_untr_1_subports
597       - dependency_vdbe_untr_x_subport
598       dependency_vdbe_node_1:
599       - vdbe_node_1
600       - dependency
601       local_storage_vdbe_node_1:
602       - vdbe_node_1
603       - local_storage
604       dependency_vdbe_untr_1_port:
605       - vdbe_untr_1_port
606       - dependency
607       dependency_control_int_net:
608       - control_int_net
609       - dependency
610       dependency_fabric_int_net:
611       - fabric_int_net
612       - dependency
613       dependency_vdbe_untr_1_subports:
614       - vdbe_untr_1_subports
615       - dependency