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