2ba36df89518c90b75d81b94a67f1db1d317a4dd
[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     port_vdbe_0_untr_vmi_1_network_role_tag:
20       type: string
21       required: true
22     control_int_net_rpf:
23       hidden: false
24       immutable: false
25       type: string
26       description: Reverse Path Filtering enable or disable for the control virtual network
27     control_int_net_forwarding_mode:
28       hidden: false
29       immutable: false
30       type: string
31       description: forwarding mode of the control virtual network
32     vnf_name:
33       hidden: false
34       immutable: false
35       type: string
36       description: Unique name for this VF instance
37     vdbe_untrusted_ip_1:
38       hidden: false
39       immutable: false
40       type: string
41       description: IPV4 address of the secondary vDBE VM on the VAN untrusted network
42     vdbe_aap_untrusted_ip_prefix_len:
43       hidden: false
44       immutable: false
45       type: string
46       description: ip prefix length for the primary vDBE VM on the VAN untrusted network
47     port_vdbe_0_untr_vmi_1_vlan_requirements:
48       type: list
49       required: true
50       entry_schema:
51         type: org.openecomp.datatypes.network.VlanRequirements
52     untrusted_num_vn:
53       hidden: false
54       immutable: false
55       type: float
56       description: Number of vDBE subinterface virtual Networks
57       constraints:
58       - in_range:
59         - 1
60         - 77
61     vf_module_name:
62       hidden: false
63       immutable: false
64       type: string
65       description: Unique name for this VF module inst
66     aap_address_mode:
67       hidden: false
68       immutable: false
69       type: string
70       description: Address mode for the vDBE cluster IP
71     control_int_net_shared:
72       hidden: false
73       immutable: false
74       type: boolean
75       description: control virtual network shared
76     vdbe_untrusted_v6_ip_1:
77       hidden: false
78       immutable: false
79       type: string
80       description: IPV6 address of the secondary vDBE VM on the VAN untrusted network
81     vdbe_untrusted_vmac_address:
82       hidden: false
83       immutable: false
84       type: string
85       description: Virtual MAC of the primary vDBE VM on the VAN untrusted network
86     control_int_net_flood_unknown_unicast:
87       hidden: false
88       immutable: false
89       type: boolean
90       description: forwarding mode of the control virtual network
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     port_vdbe_0_untr_vmi_1_order:
102       type: integer
103       required: true
104     vdbe_name_1:
105       hidden: false
106       immutable: false
107       type: string
108       description: VM Name for this vdbe node 1
109     availability_zone_1:
110       hidden: false
111       immutable: false
112       type: string
113       description: The availability zone of secondary node1 vDBE vm in the local HA pair.
114     port_vdbe_0_untr_vmi_1_mac_requirements:
115       type: org.openecomp.datatypes.network.MacRequirements
116       required: true
117     untrusted_vn_networks:
118       hidden: false
119       immutable: false
120       type: list
121       description: List of subinterface virtual networks
122       entry_schema:
123         type: string
124     vdbe_image_name:
125       hidden: false
126       immutable: false
127       type: string
128       description: Image to use for vDBE
129     oam_net_name:
130       hidden: false
131       immutable: false
132       type: string
133       description: Name of NSDNet network from which the management IP addresses will be allocated
134     vdbe_aap_sec_untrusted_ip_prefix_len:
135       hidden: false
136       immutable: false
137       type: string
138       description: ip prefix length for the secondary DBE VM aap on the VAN untrusted network
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     port_vdbe_0_untr_vmi_1_subnetpoolid:
157       type: string
158       required: true
159     vdbe_flavor_name:
160       hidden: false
161       immutable: false
162       type: string
163       description: Flavor to use for vDBE
164     port_vdbe_0_untr_vmi_1_ip_requirements:
165       type: list
166       required: true
167       entry_schema:
168         type: org.openecomp.datatypes.network.IpRequirements
169     vdbe_hw_untr_mac_1:
170       hidden: false
171       immutable: false
172       type: string
173       description: Secondary MAC address of the secondary vDBE VM on the VAN untrusted network
174     untrusted_net_name:
175       hidden: false
176       immutable: false
177       type: string
178       description: Name of public untrusted network into which this vDBE HA cluster is deployed
179     vdbe_device_name:
180       hidden: false
181       immutable: false
182       type: string
183       description: VDBE device Name for this vdbe VNF
184     port_vdbe_0_untr_vmi_1_network_role:
185       type: string
186       required: true
187     vdbe_aap_untrusted_ip_prefix:
188       hidden: false
189       immutable: false
190       type: string
191       description: ip prefix for primary vDBE VM on the VAN untrusted network
192     port_vdbe_0_untr_vmi_1_exCP_naming:
193       type: org.openecomp.datatypes.Naming
194       required: true
195   node_templates:
196     vdbe_0_untr_vmi_1:
197       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
198       properties:
199         ip_requirements:
200           get_input: port_vdbe_0_untr_vmi_1_ip_requirements
201         network_role:
202           get_input: port_vdbe_0_untr_vmi_1_network_role
203         subnetpoolid:
204           get_input: port_vdbe_0_untr_vmi_1_subnetpoolid
205         mac_requirements:
206           get_input: port_vdbe_0_untr_vmi_1_mac_requirements
207         name:
208           str_replace:
209             template: VM_NAMEDBE001p1n004
210             params:
211               DBE:
212                 get_input: vdbe_device_name
213               VM_NAME:
214                 get_input: vdbe_name_1
215         exCP_naming:
216           get_input: port_vdbe_0_untr_vmi_1_exCP_naming
217         virtual_network_refs:
218         - control_int_net
219         vlan_requirements:
220           get_input: port_vdbe_0_untr_vmi_1_vlan_requirements
221         virtual_machine_interface_allowed_address_pairs:
222           allowed_address_pair:
223           - address_mode:
224               get_input: aap_address_mode
225             ip:
226               ip_prefix:
227                 get_input: vdbe_aap_untrusted_ip_prefix
228               ip_prefix_len:
229                 get_input: vdbe_aap_untrusted_ip_prefix_len
230             mac:
231               get_input: vdbe_untrusted_vmac_address
232           - address_mode:
233               get_input: aap_address_mode
234             ip:
235               ip_prefix:
236                 get_input: vdbe_aap_sec_untrusted_ip_prefix
237               ip_prefix_len:
238                 get_input: vdbe_aap_sec_untrusted_ip_prefix_len
239             mac:
240               get_input: vdbe_hw_untr_mac_1
241           - address_mode:
242               get_input: aap_address_mode
243             ip:
244               ip_prefix:
245                 get_input: vdbe_aap_untrusted_v6_ip_prefix
246               ip_prefix_len:
247                 get_input: vdbe_aap_untrusted_v6_ip_prefix_len
248             mac:
249               get_input: vdbe_untrusted_vmac_address
250         network_role_tag:
251           get_input: port_vdbe_0_untr_vmi_1_network_role_tag
252         virtual_machine_interface_mac_addresses:
253         - get_input: vdbe_hw_untr_mac_1
254         order:
255           get_input: port_vdbe_0_untr_vmi_1_order
256       requirements:
257       - link:
258           capability: tosca.capabilities.network.Linkable
259           node: control_int_net
260           relationship: tosca.relationships.network.LinksTo
261       - binding:
262           capability: tosca.capabilities.network.Bindable
263           node: vdbe_node_1
264           relationship: tosca.relationships.network.BindsTo
265     vdbe_node_1:
266       type: org.openecomp.resource.vfc.compute.nodes.heat.vdbe
267       properties:
268         flavor:
269           get_input: vdbe_flavor_name
270         availability_zone:
271           get_input: availability_zone_1
272         image:
273           get_input: vdbe_image_name
274         metadata:
275           vf_module_id:
276             get_input: vf_module_id
277           vnf_id:
278             get_input: vnf_id
279           vnf_name:
280             get_input: vnf_name
281         name:
282           get_input: vdbe_name_1
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_0_untr_vmi_1
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_0_subint_untr_vmi_1:
334           capability: tosca.capabilities.network.Linkable
335           node: control_int_net
336           relationship: tosca.relationships.network.LinksTo
337       - binding_vdbe_0_subint_untr_vmi_1:
338           capability: tosca.capabilities.network.Bindable
339           node: vdbe_0_untr_vmi_1
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_0_untr_vmi_1
363       - vdbe_node_1
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       instance_vdbe_node_1:
376       - vdbe_node_1
377       - instance
378       network.outgoing.bytes_vdbe_0_untr_vmi_1:
379       - vdbe_0_untr_vmi_1
380       - network.outgoing.bytes
381       disk.device.read.requests_vdbe_node_1:
382       - vdbe_node_1
383       - disk.device.read.requests
384       disk.device.usage_vdbe_node_1:
385       - vdbe_node_1
386       - disk.device.usage
387       binding_vdbe_0_untr_vmi_1:
388       - vdbe_0_untr_vmi_1
389       - binding
390       forwarder_vdbe_0_untr_vmi_1:
391       - vdbe_0_untr_vmi_1
392       - forwarder
393       disk.write.bytes_vdbe_node_1:
394       - vdbe_node_1
395       - disk.write.bytes
396       disk.device.write.bytes_vdbe_node_1:
397       - vdbe_node_1
398       - disk.device.write.bytes
399       disk.allocation_vdbe_node_1:
400       - vdbe_node_1
401       - disk.allocation
402       memory_vdbe_node_1:
403       - vdbe_node_1
404       - memory
405       cpu_util_vdbe_node_1:
406       - vdbe_node_1
407       - cpu_util
408       disk.device.read.bytes_vdbe_node_1:
409       - vdbe_node_1
410       - disk.device.read.bytes
411       network.incoming.bytes.rate_vdbe_0_untr_vmi_1:
412       - vdbe_0_untr_vmi_1
413       - network.incoming.bytes.rate
414       disk.device.read.bytes.rate_vdbe_node_1:
415       - vdbe_node_1
416       - disk.device.read.bytes.rate
417       disk.device.allocation_vdbe_node_1:
418       - vdbe_node_1
419       - disk.device.allocation
420       disk.write.requests.rate_vdbe_node_1:
421       - vdbe_node_1
422       - disk.write.requests.rate
423       disk.root.size_vdbe_node_1:
424       - vdbe_node_1
425       - disk.root.size
426       disk.device.iops_vdbe_node_1:
427       - vdbe_node_1
428       - disk.device.iops
429       disk.device.write.requests_vdbe_node_1:
430       - vdbe_node_1
431       - disk.device.write.requests
432       disk.write.requests_vdbe_node_1:
433       - vdbe_node_1
434       - disk.write.requests
435       vcpus_vdbe_node_1:
436       - vdbe_node_1
437       - vcpus
438       disk.ephemeral.size_vdbe_node_1:
439       - vdbe_node_1
440       - disk.ephemeral.size
441       feature_vdbe_0_untr_vmi_1:
442       - vdbe_0_untr_vmi_1
443       - feature
444       feature_vdbe_untr_1_subports:
445       - vdbe_untr_1_subports
446       - feature
447       network.incoming.packets_vdbe_0_untr_vmi_1:
448       - vdbe_0_untr_vmi_1
449       - network.incoming.packets
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       network.outgoing.packets.rate_vdbe_0_untr_vmi_1:
460       - vdbe_0_untr_vmi_1
461       - network.outgoing.packets.rate
462       link_control_int_net:
463       - control_int_net
464       - link
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       disk.device.read.requests.rate_vdbe_node_1:
475       - vdbe_node_1
476       - disk.device.read.requests.rate
477       host_vdbe_node_1:
478       - vdbe_node_1
479       - host
480       feature_control_int_net:
481       - control_int_net
482       - feature
483       network.incoming.bytes_vdbe_0_untr_vmi_1:
484       - vdbe_0_untr_vmi_1
485       - network.incoming.bytes
486       cpu.delta_vdbe_node_1:
487       - vdbe_node_1
488       - cpu.delta
489       scalable_vdbe_node_1:
490       - vdbe_node_1
491       - scalable
492       disk.iops_vdbe_node_1:
493       - vdbe_node_1
494       - disk.iops
495       network.incoming.packets.rate_vdbe_0_untr_vmi_1:
496       - vdbe_0_untr_vmi_1
497       - network.incoming.packets.rate
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.bytes.rate_vdbe_0_untr_vmi_1:
508       - vdbe_0_untr_vmi_1
509       - network.outgoing.bytes.rate
510       os_vdbe_node_1:
511       - vdbe_node_1
512       - os
513       feature_vdbe_0_subint_untr_vmi_1_vdbe_untr_1_subports:
514       - vdbe_untr_1_subports
515       - feature_vdbe_0_subint_untr_vmi_1
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       network.outpoing.packets_vdbe_0_untr_vmi_1:
523       - vdbe_0_untr_vmi_1
524       - network.outpoing.packets
525       attachment_control_int_net:
526       - control_int_net
527       - attachment
528       cpu_vdbe_node_1:
529       - vdbe_node_1
530       - cpu
531       disk.device.write.requests.rate_vdbe_node_1:
532       - vdbe_node_1
533       - disk.device.write.requests.rate
534       disk.read.requests_vdbe_node_1:
535       - vdbe_node_1
536       - disk.read.requests
537       disk.write.bytes.rate_vdbe_node_1:
538       - vdbe_node_1
539       - disk.write.bytes.rate
540       memory.usage_vdbe_node_1:
541       - vdbe_node_1
542       - memory.usage
543     requirements:
544       dependency_vdbe_0_untr_vmi_1:
545       - vdbe_0_untr_vmi_1
546       - dependency
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_0_subint_untr_vmi_1_vdbe_untr_1_subports:
554       - vdbe_untr_1_subports
555       - dependency_vdbe_0_subint_untr_vmi_1
556       dependency_control_int_net:
557       - control_int_net
558       - dependency
559       dependency_vdbe_untr_1_subports:
560       - vdbe_untr_1_subports
561       - dependency