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