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 / vfcInstanceGroup / pattern4SubInterfaceNodesConnectedOut / 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     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         subnetpoolid:
200           get_input: port_vdbe_0_untr_vmi_1_subnetpoolid
201         ip_requirements:
202           get_input: port_vdbe_0_untr_vmi_1_ip_requirements
203         network_role:
204           get_input: port_vdbe_0_untr_vmi_1_network_role
205         mac_requirements:
206           get_input: port_vdbe_0_untr_vmi_1_mac_requirements
207         subinterface_indicator: true
208         name:
209           str_replace:
210             template: VM_NAMEDBE001p1n004
211             params:
212               DBE:
213                 get_input: vdbe_device_name
214               VM_NAME:
215                 get_input: vdbe_name_1
216         exCP_naming:
217           get_input: port_vdbe_0_untr_vmi_1_exCP_naming
218         virtual_network_refs:
219         - control_int_net
220         vlan_requirements:
221           get_input: port_vdbe_0_untr_vmi_1_vlan_requirements
222         virtual_machine_interface_allowed_address_pairs:
223           allowed_address_pair:
224           - address_mode:
225               get_input: aap_address_mode
226             ip:
227               ip_prefix:
228                 get_input: vdbe_aap_untrusted_ip_prefix
229               ip_prefix_len:
230                 get_input: vdbe_aap_untrusted_ip_prefix_len
231             mac:
232               get_input: vdbe_untrusted_vmac_address
233           - address_mode:
234               get_input: aap_address_mode
235             ip:
236               ip_prefix:
237                 get_input: vdbe_aap_sec_untrusted_ip_prefix
238               ip_prefix_len:
239                 get_input: vdbe_aap_sec_untrusted_ip_prefix_len
240             mac:
241               get_input: vdbe_hw_untr_mac_1
242           - address_mode:
243               get_input: aap_address_mode
244             ip:
245               ip_prefix:
246                 get_input: vdbe_aap_untrusted_v6_ip_prefix
247               ip_prefix_len:
248                 get_input: vdbe_aap_untrusted_v6_ip_prefix_len
249             mac:
250               get_input: vdbe_untrusted_vmac_address
251         network_role_tag:
252           get_input: port_vdbe_0_untr_vmi_1_network_role_tag
253         virtual_machine_interface_mac_addresses:
254         - get_input: vdbe_hw_untr_mac_1
255         order:
256           get_input: port_vdbe_0_untr_vmi_1_order
257       requirements:
258       - link:
259           capability: tosca.capabilities.network.Linkable
260           node: control_int_net
261           relationship: tosca.relationships.network.LinksTo
262       - binding:
263           capability: tosca.capabilities.network.Bindable
264           node: vdbe_node_1
265           relationship: tosca.relationships.network.BindsTo
266     vdbe_node_1:
267       type: org.openecomp.resource.vfc.compute.nodes.heat.vdbe
268       properties:
269         flavor:
270           get_input: vdbe_flavor_name
271         availability_zone:
272           get_input: availability_zone_1
273         image:
274           get_input: vdbe_image_name
275         metadata:
276           vf_module_id:
277             get_input: vf_module_id
278           vnf_id:
279             get_input: vnf_id
280           vnf_name:
281             get_input: vnf_name
282         name:
283           get_input: vdbe_name_1
284     vdbe_untr_1_subports:
285       type: org.openecomp.resource.abstract.nodes.heat.subinterface.nested_vlan
286       directives:
287       - substitutable
288       properties:
289         aap_untrusted_ip_prefix:
290           get_input: vdbe_aap_untrusted_ip_prefix
291         aap_sec_untrusted_ip_prefix:
292           get_input: vdbe_aap_sec_untrusted_ip_prefix
293         vdbe_subport_network: control_int_net
294         ip_v6_address:
295           get_input: vdbe_untrusted_v6_ip_1
296         counter:
297           get_property:
298           - SELF
299           - service_template_filter
300           - index_value
301         ip_address:
302           get_input: vdbe_untrusted_ip_1
303         subinterfaces_name_prefix:
304           str_replace:
305             template: VM_NAMEDBE001p1n004
306             params:
307               DBE:
308                 get_input: vdbe_device_name
309               VM_NAME:
310                 get_input: vdbe_name_1
311         aap_address_mode:
312           get_input: aap_address_mode
313         service_template_filter:
314           substitute_service_template: nested_vlanServiceTemplate.yaml
315           count:
316             get_input: untrusted_num_vn
317           mandatory: false
318         aap_untrusted_v6_ip_prefix:
319           get_input: vdbe_aap_untrusted_v6_ip_prefix
320         parent_interface: vdbe_0_untr_vmi_1
321         mac_address:
322           get_input: vdbe_hw_untr_mac_1
323         vlan_tag_list:
324           get_input: untrusted_vlan_tags
325         aap_sec_untrusted_ip_prefix_len:
326           get_input: vdbe_aap_sec_untrusted_ip_prefix_len
327         vmac_address:
328           get_input: vdbe_untrusted_vmac_address
329         aap_untrusted_v6_ip_prefix_len:
330           get_input: vdbe_aap_untrusted_v6_ip_prefix_len
331         aap_untrusted_ip_prefix_len:
332           get_input: vdbe_aap_untrusted_ip_prefix_len
333       requirements:
334       - subinterface_link_vdbe_0_subint_untr_vmi_1:
335           capability: tosca.capabilities.network.Linkable
336           node: control_int_net
337           relationship: tosca.relationships.network.LinksTo
338       - binding_vdbe_0_subint_untr_vmi_1:
339           capability: tosca.capabilities.network.Bindable
340           node: vdbe_0_untr_vmi_1
341           relationship: tosca.relationships.network.BindsTo
342     control_int_net:
343       type: org.openecomp.resource.vl.nodes.heat.network.contrailV2.VirtualNetwork
344       properties:
345         network_name:
346           str_replace:
347             template: VNF_NAME_control_net
348             params:
349               VNF_NAME:
350                 get_input: vnf_name
351   groups:
352     nested_pattern4_group:
353       type: org.openecomp.groups.heat.HeatStack
354       properties:
355         heat_file: ../Artifacts/nested_pattern4.yml
356         description: |
357           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
358       members:
359       - vdbe_0_untr_vmi_1
360       - vdbe_node_1
361       - vdbe_untr_1_subports
362       - control_int_net
363   substitution_mappings:
364     node_type: org.openecomp.resource.abstract.nodes.heat.vdbe
365     capabilities:
366       disk.latency_vdbe_node_1:
367       - vdbe_node_1
368       - disk.latency
369       binding_vdbe_node_1:
370       - vdbe_node_1
371       - binding
372       instance_vdbe_node_1:
373       - vdbe_node_1
374       - instance
375       network.outgoing.bytes_vdbe_0_untr_vmi_1:
376       - vdbe_0_untr_vmi_1
377       - network.outgoing.bytes
378       disk.device.read.requests_vdbe_node_1:
379       - vdbe_node_1
380       - disk.device.read.requests
381       disk.device.usage_vdbe_node_1:
382       - vdbe_node_1
383       - disk.device.usage
384       binding_vdbe_0_untr_vmi_1:
385       - vdbe_0_untr_vmi_1
386       - binding
387       forwarder_vdbe_0_untr_vmi_1:
388       - vdbe_0_untr_vmi_1
389       - forwarder
390       disk.write.bytes_vdbe_node_1:
391       - vdbe_node_1
392       - disk.write.bytes
393       disk.device.write.bytes_vdbe_node_1:
394       - vdbe_node_1
395       - disk.device.write.bytes
396       disk.allocation_vdbe_node_1:
397       - vdbe_node_1
398       - disk.allocation
399       memory_vdbe_node_1:
400       - vdbe_node_1
401       - memory
402       cpu_util_vdbe_node_1:
403       - vdbe_node_1
404       - cpu_util
405       disk.device.read.bytes_vdbe_node_1:
406       - vdbe_node_1
407       - disk.device.read.bytes
408       network.incoming.bytes.rate_vdbe_0_untr_vmi_1:
409       - vdbe_0_untr_vmi_1
410       - network.incoming.bytes.rate
411       disk.device.read.bytes.rate_vdbe_node_1:
412       - vdbe_node_1
413       - disk.device.read.bytes.rate
414       disk.device.allocation_vdbe_node_1:
415       - vdbe_node_1
416       - disk.device.allocation
417       disk.write.requests.rate_vdbe_node_1:
418       - vdbe_node_1
419       - disk.write.requests.rate
420       disk.root.size_vdbe_node_1:
421       - vdbe_node_1
422       - disk.root.size
423       disk.device.iops_vdbe_node_1:
424       - vdbe_node_1
425       - disk.device.iops
426       disk.device.write.requests_vdbe_node_1:
427       - vdbe_node_1
428       - disk.device.write.requests
429       disk.write.requests_vdbe_node_1:
430       - vdbe_node_1
431       - disk.write.requests
432       vcpus_vdbe_node_1:
433       - vdbe_node_1
434       - vcpus
435       disk.ephemeral.size_vdbe_node_1:
436       - vdbe_node_1
437       - disk.ephemeral.size
438       feature_vdbe_0_untr_vmi_1:
439       - vdbe_0_untr_vmi_1
440       - feature
441       feature_vdbe_untr_1_subports:
442       - vdbe_untr_1_subports
443       - feature
444       network.incoming.packets_vdbe_0_untr_vmi_1:
445       - vdbe_0_untr_vmi_1
446       - network.incoming.packets
447       disk.device.latency_vdbe_node_1:
448       - vdbe_node_1
449       - disk.device.latency
450       disk.capacity_vdbe_node_1:
451       - vdbe_node_1
452       - disk.capacity
453       disk.device.capacity_vdbe_node_1:
454       - vdbe_node_1
455       - disk.device.capacity
456       network.outgoing.packets.rate_vdbe_0_untr_vmi_1:
457       - vdbe_0_untr_vmi_1
458       - network.outgoing.packets.rate
459       link_control_int_net:
460       - control_int_net
461       - link
462       end_point_control_int_net:
463       - control_int_net
464       - end_point
465       disk.usage_vdbe_node_1:
466       - vdbe_node_1
467       - disk.usage
468       disk.read.bytes_vdbe_node_1:
469       - vdbe_node_1
470       - disk.read.bytes
471       disk.device.read.requests.rate_vdbe_node_1:
472       - vdbe_node_1
473       - disk.device.read.requests.rate
474       host_vdbe_node_1:
475       - vdbe_node_1
476       - host
477       feature_control_int_net:
478       - control_int_net
479       - feature
480       network.incoming.bytes_vdbe_0_untr_vmi_1:
481       - vdbe_0_untr_vmi_1
482       - network.incoming.bytes
483       cpu.delta_vdbe_node_1:
484       - vdbe_node_1
485       - cpu.delta
486       scalable_vdbe_node_1:
487       - vdbe_node_1
488       - scalable
489       disk.iops_vdbe_node_1:
490       - vdbe_node_1
491       - disk.iops
492       network.incoming.packets.rate_vdbe_0_untr_vmi_1:
493       - vdbe_0_untr_vmi_1
494       - network.incoming.packets.rate
495       feature_vdbe_node_1:
496       - vdbe_node_1
497       - feature
498       memory.resident_vdbe_node_1:
499       - vdbe_node_1
500       - memory.resident
501       endpoint_vdbe_node_1:
502       - vdbe_node_1
503       - endpoint
504       network.outgoing.bytes.rate_vdbe_0_untr_vmi_1:
505       - vdbe_0_untr_vmi_1
506       - network.outgoing.bytes.rate
507       os_vdbe_node_1:
508       - vdbe_node_1
509       - os
510       feature_vdbe_0_subint_untr_vmi_1_vdbe_untr_1_subports:
511       - vdbe_untr_1_subports
512       - feature_vdbe_0_subint_untr_vmi_1
513       disk.read.bytes.rate_vdbe_node_1:
514       - vdbe_node_1
515       - disk.read.bytes.rate
516       disk.device.write.bytes.rate_vdbe_node_1:
517       - vdbe_node_1
518       - disk.device.write.bytes.rate
519       network.outpoing.packets_vdbe_0_untr_vmi_1:
520       - vdbe_0_untr_vmi_1
521       - network.outpoing.packets
522       attachment_control_int_net:
523       - control_int_net
524       - attachment
525       cpu_vdbe_node_1:
526       - vdbe_node_1
527       - cpu
528       disk.device.write.requests.rate_vdbe_node_1:
529       - vdbe_node_1
530       - disk.device.write.requests.rate
531       disk.read.requests_vdbe_node_1:
532       - vdbe_node_1
533       - disk.read.requests
534       disk.write.bytes.rate_vdbe_node_1:
535       - vdbe_node_1
536       - disk.write.bytes.rate
537       memory.usage_vdbe_node_1:
538       - vdbe_node_1
539       - memory.usage
540     requirements:
541       dependency_vdbe_0_untr_vmi_1:
542       - vdbe_0_untr_vmi_1
543       - dependency
544       dependency_vdbe_node_1:
545       - vdbe_node_1
546       - dependency
547       local_storage_vdbe_node_1:
548       - vdbe_node_1
549       - local_storage
550       dependency_vdbe_0_subint_untr_vmi_1_vdbe_untr_1_subports:
551       - vdbe_untr_1_subports
552       - dependency_vdbe_0_subint_untr_vmi_1
553       dependency_control_int_net:
554       - control_int_net
555       - dependency
556       dependency_vdbe_untr_1_subports:
557       - vdbe_untr_1_subports
558       - dependency