bde17d080e117d21c0e685df1f50cfe1cbb99bb3
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / fulltest / subinterface / vlantagging / pattern4 / subInterfaceNodesConnectedOut / 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     control_int_net_rpf:
20       hidden: false
21       immutable: false
22       type: string
23       description: Reverse Path Filtering enable or disable for the control virtual network
24     control_int_net_forwarding_mode:
25       hidden: false
26       immutable: false
27       type: string
28       description: forwarding mode of the control virtual network
29     vnf_name:
30       hidden: false
31       immutable: false
32       type: string
33       description: Unique name for this VF instance
34     vdbe_untrusted_ip_1:
35       hidden: false
36       immutable: false
37       type: string
38       description: IPV4 address of the secondary vDBE VM on the VAN untrusted network
39     vdbe_aap_untrusted_ip_prefix_len:
40       hidden: false
41       immutable: false
42       type: string
43       description: ip prefix length for the primary vDBE VM on the VAN untrusted network
44     untrusted_num_vn:
45       hidden: false
46       immutable: false
47       type: float
48       description: Number of vDBE subinterface virtual Networks
49       constraints:
50       - in_range:
51         - 1
52         - 77
53     vf_module_name:
54       hidden: false
55       immutable: false
56       type: string
57       description: Unique name for this VF module inst
58     aap_address_mode:
59       hidden: false
60       immutable: false
61       type: string
62       description: Address mode for the vDBE cluster IP
63     control_int_net_shared:
64       hidden: false
65       immutable: false
66       type: boolean
67       description: control virtual network shared
68     vdbe_untrusted_v6_ip_1:
69       hidden: false
70       immutable: false
71       type: string
72       description: IPV6 address of the secondary vDBE VM on the VAN untrusted network
73     vdbe_untrusted_vmac_address:
74       hidden: false
75       immutable: false
76       type: string
77       description: Virtual MAC of the primary vDBE VM on the VAN untrusted network
78     control_int_net_flood_unknown_unicast:
79       hidden: false
80       immutable: false
81       type: boolean
82       description: forwarding mode of the control virtual network
83     port_vdbe_untr_1_port_network_role:
84       type: string
85       required: true
86     vdbe_aap_sec_untrusted_ip_prefix:
87       hidden: false
88       immutable: false
89       type: string
90       description: ip prefix for secondary vDBE VM aap on the VAN untrusted network
91     vnf_id:
92       hidden: false
93       immutable: false
94       type: string
95       description: Unique ID for this VF inst
96     vdbe_name_1:
97       hidden: false
98       immutable: false
99       type: string
100       description: VM Name for this vdbe node 1
101     port_vdbe_untr_1_port_ip_requirements:
102       type: list
103       required: true
104       entry_schema:
105         type: org.openecomp.datatypes.network.IpRequirements
106     availability_zone_1:
107       hidden: false
108       immutable: false
109       type: string
110       description: The availability zone of secondary node1 vDBE vm in the local HA pair.
111     untrusted_vn_networks:
112       hidden: false
113       immutable: false
114       type: list
115       description: List of subinterface virtual networks
116       entry_schema:
117         type: string
118     vdbe_image_name:
119       hidden: false
120       immutable: false
121       type: string
122       description: Image to use for vDBE
123     oam_net_name:
124       hidden: false
125       immutable: false
126       type: string
127       description: Name of NSDNet network from which the management IP addresses will be allocated
128     vdbe_aap_sec_untrusted_ip_prefix_len:
129       hidden: false
130       immutable: false
131       type: string
132       description: ip prefix length for the secondary DBE VM aap on the VAN untrusted network
133     port_vdbe_untr_1_port_mac_requirements:
134       type: org.openecomp.datatypes.network.MacRequirements
135       required: true
136     port_vdbe_untr_1_port_order:
137       type: integer
138       required: true
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     vdbe_flavor_name:
157       hidden: false
158       immutable: false
159       type: string
160       description: Flavor to use for vDBE
161     port_vdbe_untr_1_port_exCP_naming:
162       type: org.openecomp.datatypes.Naming
163       required: true
164     port_vdbe_untr_1_port_subnetpoolid:
165       type: string
166       required: true
167     vdbe_hw_untr_mac_1:
168       hidden: false
169       immutable: false
170       type: string
171       description: Secondary MAC address of the secondary vDBE VM on the VAN untrusted network
172     untrusted_net_name:
173       hidden: false
174       immutable: false
175       type: string
176       description: Name of public untrusted network into which this vDBE HA cluster is deployed
177     port_vdbe_untr_1_port_network_role_tag:
178       type: string
179       required: true
180     vdbe_device_name:
181       hidden: false
182       immutable: false
183       type: string
184       description: VDBE device Name for this vdbe VNF
185     port_vdbe_untr_1_port_vlan_requirements:
186       type: list
187       required: true
188       entry_schema:
189         type: org.openecomp.datatypes.network.VlanRequirements
190     vdbe_aap_untrusted_ip_prefix:
191       hidden: false
192       immutable: false
193       type: string
194       description: ip prefix for primary vDBE VM on the VAN untrusted network
195   node_templates:
196     vdbe_node_1:
197       type: org.openecomp.resource.vfc.compute.nodes.heat.vdbe
198       properties:
199         flavor:
200           get_input: vdbe_flavor_name
201         availability_zone:
202           get_input: availability_zone_1
203         image:
204           get_input: vdbe_image_name
205         metadata:
206           vf_module_id:
207             get_input: vf_module_id
208           vnf_id:
209             get_input: vnf_id
210           vnf_name:
211             get_input: vnf_name
212         name:
213           get_input: vdbe_name_1
214     vdbe_untr_1_port:
215       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
216       properties:
217         subnetpoolid:
218           get_input: port_vdbe_untr_1_port_subnetpoolid
219         ip_requirements:
220           get_input: port_vdbe_untr_1_port_ip_requirements
221         network_role:
222           get_input: port_vdbe_untr_1_port_network_role
223         mac_requirements:
224           get_input: port_vdbe_untr_1_port_mac_requirements
225         subinterface_indicator: true
226         name:
227           str_replace:
228             template: VM_NAMEDBE001p1n004
229             params:
230               DBE:
231                 get_input: vdbe_device_name
232               VM_NAME:
233                 get_input: vdbe_name_1
234         exCP_naming:
235           get_input: port_vdbe_untr_1_port_exCP_naming
236         virtual_network_refs:
237         - control_int_net
238         vlan_requirements:
239           get_input: port_vdbe_untr_1_port_vlan_requirements
240         virtual_machine_interface_allowed_address_pairs:
241           allowed_address_pair:
242           - address_mode:
243               get_input: aap_address_mode
244             ip:
245               ip_prefix:
246                 get_input: vdbe_aap_untrusted_ip_prefix
247               ip_prefix_len:
248                 get_input: vdbe_aap_untrusted_ip_prefix_len
249             mac:
250               get_input: vdbe_untrusted_vmac_address
251           - address_mode:
252               get_input: aap_address_mode
253             ip:
254               ip_prefix:
255                 get_input: vdbe_aap_sec_untrusted_ip_prefix
256               ip_prefix_len:
257                 get_input: vdbe_aap_sec_untrusted_ip_prefix_len
258             mac:
259               get_input: vdbe_hw_untr_mac_1
260           - address_mode:
261               get_input: aap_address_mode
262             ip:
263               ip_prefix:
264                 get_input: vdbe_aap_untrusted_v6_ip_prefix
265               ip_prefix_len:
266                 get_input: vdbe_aap_untrusted_v6_ip_prefix_len
267             mac:
268               get_input: vdbe_untrusted_vmac_address
269         network_role_tag:
270           get_input: port_vdbe_untr_1_port_network_role_tag
271         virtual_machine_interface_mac_addresses:
272         - get_input: vdbe_hw_untr_mac_1
273         order:
274           get_input: port_vdbe_untr_1_port_order
275       requirements:
276       - link:
277           capability: tosca.capabilities.network.Linkable
278           node: control_int_net
279           relationship: tosca.relationships.network.LinksTo
280       - binding:
281           capability: tosca.capabilities.network.Bindable
282           node: vdbe_node_1
283           relationship: tosca.relationships.network.BindsTo
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_untr_1_port
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_untr_x_subport:
335           capability: tosca.capabilities.network.Linkable
336           node: control_int_net
337           relationship: tosca.relationships.network.LinksTo
338       - binding_vdbe_untr_x_subport:
339           capability: tosca.capabilities.network.Bindable
340           node: vdbe_untr_1_port
341           relationship: tosca.relationships.network.BindsTo
342       - dependency:
343           capability: tosca.capabilities.Node
344           node: control_int_net
345           relationship: tosca.relationships.DependsOn
346     control_int_net:
347       type: org.openecomp.resource.vl.nodes.heat.network.contrailV2.VirtualNetwork
348       properties:
349         network_name:
350           str_replace:
351             template: VNF_NAME_control_net
352             params:
353               VNF_NAME:
354                 get_input: vnf_name
355   groups:
356     nested_pattern4_group:
357       type: org.openecomp.groups.heat.HeatStack
358       properties:
359         heat_file: ../Artifacts/nested_pattern4.yml
360         description: |
361           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
362       members:
363       - vdbe_node_1
364       - vdbe_untr_1_port
365       - vdbe_untr_1_subports
366       - control_int_net
367   substitution_mappings:
368     node_type: org.openecomp.resource.abstract.nodes.heat.vdbe
369     capabilities:
370       disk.latency_vdbe_node_1:
371       - vdbe_node_1
372       - disk.latency
373       binding_vdbe_node_1:
374       - vdbe_node_1
375       - binding
376       network.outgoing.bytes.rate_vdbe_untr_1_port:
377       - vdbe_untr_1_port
378       - network.outgoing.bytes.rate
379       instance_vdbe_node_1:
380       - vdbe_node_1
381       - instance
382       forwarder_vdbe_untr_1_port:
383       - vdbe_untr_1_port
384       - forwarder
385       disk.device.read.requests_vdbe_node_1:
386       - vdbe_node_1
387       - disk.device.read.requests
388       disk.device.usage_vdbe_node_1:
389       - vdbe_node_1
390       - disk.device.usage
391       disk.write.bytes_vdbe_node_1:
392       - vdbe_node_1
393       - disk.write.bytes
394       disk.device.write.bytes_vdbe_node_1:
395       - vdbe_node_1
396       - disk.device.write.bytes
397       disk.allocation_vdbe_node_1:
398       - vdbe_node_1
399       - disk.allocation
400       memory_vdbe_node_1:
401       - vdbe_node_1
402       - memory
403       cpu_util_vdbe_node_1:
404       - vdbe_node_1
405       - cpu_util
406       network.incoming.packets.rate_vdbe_untr_1_port:
407       - vdbe_untr_1_port
408       - network.incoming.packets.rate
409       disk.device.read.bytes_vdbe_node_1:
410       - vdbe_node_1
411       - disk.device.read.bytes
412       disk.device.read.bytes.rate_vdbe_node_1:
413       - vdbe_node_1
414       - disk.device.read.bytes.rate
415       disk.device.allocation_vdbe_node_1:
416       - vdbe_node_1
417       - disk.device.allocation
418       disk.write.requests.rate_vdbe_node_1:
419       - vdbe_node_1
420       - disk.write.requests.rate
421       disk.root.size_vdbe_node_1:
422       - vdbe_node_1
423       - disk.root.size
424       disk.device.iops_vdbe_node_1:
425       - vdbe_node_1
426       - disk.device.iops
427       disk.device.write.requests_vdbe_node_1:
428       - vdbe_node_1
429       - disk.device.write.requests
430       disk.write.requests_vdbe_node_1:
431       - vdbe_node_1
432       - disk.write.requests
433       network.incoming.bytes.rate_vdbe_untr_1_port:
434       - vdbe_untr_1_port
435       - network.incoming.bytes.rate
436       vcpus_vdbe_node_1:
437       - vdbe_node_1
438       - vcpus
439       binding_vdbe_untr_1_port:
440       - vdbe_untr_1_port
441       - binding
442       disk.ephemeral.size_vdbe_node_1:
443       - vdbe_node_1
444       - disk.ephemeral.size
445       network.outgoing.bytes_vdbe_untr_1_port:
446       - vdbe_untr_1_port
447       - network.outgoing.bytes
448       feature_vdbe_untr_1_subports:
449       - vdbe_untr_1_subports
450       - feature
451       disk.device.latency_vdbe_node_1:
452       - vdbe_node_1
453       - disk.device.latency
454       disk.capacity_vdbe_node_1:
455       - vdbe_node_1
456       - disk.capacity
457       disk.device.capacity_vdbe_node_1:
458       - vdbe_node_1
459       - disk.device.capacity
460       link_control_int_net:
461       - control_int_net
462       - link
463       network.incoming.bytes_vdbe_untr_1_port:
464       - vdbe_untr_1_port
465       - network.incoming.bytes
466       end_point_control_int_net:
467       - control_int_net
468       - end_point
469       disk.usage_vdbe_node_1:
470       - vdbe_node_1
471       - disk.usage
472       disk.read.bytes_vdbe_node_1:
473       - vdbe_node_1
474       - disk.read.bytes
475       feature_vdbe_untr_x_subport_vdbe_untr_1_subports:
476       - vdbe_untr_1_subports
477       - feature_vdbe_untr_x_subport
478       disk.device.read.requests.rate_vdbe_node_1:
479       - vdbe_node_1
480       - disk.device.read.requests.rate
481       host_vdbe_node_1:
482       - vdbe_node_1
483       - host
484       feature_control_int_net:
485       - control_int_net
486       - feature
487       cpu.delta_vdbe_node_1:
488       - vdbe_node_1
489       - cpu.delta
490       network.incoming.packets_vdbe_untr_1_port:
491       - vdbe_untr_1_port
492       - network.incoming.packets
493       scalable_vdbe_node_1:
494       - vdbe_node_1
495       - scalable
496       disk.iops_vdbe_node_1:
497       - vdbe_node_1
498       - disk.iops
499       feature_vdbe_node_1:
500       - vdbe_node_1
501       - feature
502       memory.resident_vdbe_node_1:
503       - vdbe_node_1
504       - memory.resident
505       endpoint_vdbe_node_1:
506       - vdbe_node_1
507       - endpoint
508       network.outgoing.packets.rate_vdbe_untr_1_port:
509       - vdbe_untr_1_port
510       - network.outgoing.packets.rate
511       os_vdbe_node_1:
512       - vdbe_node_1
513       - os
514       network.outpoing.packets_vdbe_untr_1_port:
515       - vdbe_untr_1_port
516       - network.outpoing.packets
517       disk.read.bytes.rate_vdbe_node_1:
518       - vdbe_node_1
519       - disk.read.bytes.rate
520       disk.device.write.bytes.rate_vdbe_node_1:
521       - vdbe_node_1
522       - disk.device.write.bytes.rate
523       attachment_control_int_net:
524       - control_int_net
525       - attachment
526       cpu_vdbe_node_1:
527       - vdbe_node_1
528       - cpu
529       disk.device.write.requests.rate_vdbe_node_1:
530       - vdbe_node_1
531       - disk.device.write.requests.rate
532       disk.read.requests_vdbe_node_1:
533       - vdbe_node_1
534       - disk.read.requests
535       disk.write.bytes.rate_vdbe_node_1:
536       - vdbe_node_1
537       - disk.write.bytes.rate
538       feature_vdbe_untr_1_port:
539       - vdbe_untr_1_port
540       - feature
541       memory.usage_vdbe_node_1:
542       - vdbe_node_1
543       - memory.usage
544     requirements:
545       dependency_vdbe_untr_x_subport_vdbe_untr_1_subports:
546       - vdbe_untr_1_subports
547       - dependency_vdbe_untr_x_subport
548       dependency_vdbe_node_1:
549       - vdbe_node_1
550       - dependency
551       local_storage_vdbe_node_1:
552       - vdbe_node_1
553       - local_storage
554       dependency_vdbe_untr_1_port:
555       - vdbe_untr_1_port
556       - dependency
557       dependency_control_int_net:
558       - control_int_net
559       - dependency
560       dependency_vdbe_untr_1_subports:
561       - vdbe_untr_1_subports
562       - dependency