17a2d851093ddf8742455c0e4964036f3310be26
[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       - 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_0_untr_vmi_1
364       - vdbe_node_1
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       instance_vdbe_node_1:
377       - vdbe_node_1
378       - instance
379       network.outgoing.bytes_vdbe_0_untr_vmi_1:
380       - vdbe_0_untr_vmi_1
381       - network.outgoing.bytes
382       disk.device.read.requests_vdbe_node_1:
383       - vdbe_node_1
384       - disk.device.read.requests
385       disk.device.usage_vdbe_node_1:
386       - vdbe_node_1
387       - disk.device.usage
388       binding_vdbe_0_untr_vmi_1:
389       - vdbe_0_untr_vmi_1
390       - binding
391       forwarder_vdbe_0_untr_vmi_1:
392       - vdbe_0_untr_vmi_1
393       - forwarder
394       disk.write.bytes_vdbe_node_1:
395       - vdbe_node_1
396       - disk.write.bytes
397       disk.device.write.bytes_vdbe_node_1:
398       - vdbe_node_1
399       - disk.device.write.bytes
400       disk.allocation_vdbe_node_1:
401       - vdbe_node_1
402       - disk.allocation
403       memory_vdbe_node_1:
404       - vdbe_node_1
405       - memory
406       cpu_util_vdbe_node_1:
407       - vdbe_node_1
408       - cpu_util
409       disk.device.read.bytes_vdbe_node_1:
410       - vdbe_node_1
411       - disk.device.read.bytes
412       network.incoming.bytes.rate_vdbe_0_untr_vmi_1:
413       - vdbe_0_untr_vmi_1
414       - network.incoming.bytes.rate
415       disk.device.read.bytes.rate_vdbe_node_1:
416       - vdbe_node_1
417       - disk.device.read.bytes.rate
418       disk.device.allocation_vdbe_node_1:
419       - vdbe_node_1
420       - disk.device.allocation
421       disk.write.requests.rate_vdbe_node_1:
422       - vdbe_node_1
423       - disk.write.requests.rate
424       disk.root.size_vdbe_node_1:
425       - vdbe_node_1
426       - disk.root.size
427       disk.device.iops_vdbe_node_1:
428       - vdbe_node_1
429       - disk.device.iops
430       disk.device.write.requests_vdbe_node_1:
431       - vdbe_node_1
432       - disk.device.write.requests
433       disk.write.requests_vdbe_node_1:
434       - vdbe_node_1
435       - disk.write.requests
436       vcpus_vdbe_node_1:
437       - vdbe_node_1
438       - vcpus
439       disk.ephemeral.size_vdbe_node_1:
440       - vdbe_node_1
441       - disk.ephemeral.size
442       feature_vdbe_0_untr_vmi_1:
443       - vdbe_0_untr_vmi_1
444       - feature
445       feature_vdbe_untr_1_subports:
446       - vdbe_untr_1_subports
447       - feature
448       network.incoming.packets_vdbe_0_untr_vmi_1:
449       - vdbe_0_untr_vmi_1
450       - network.incoming.packets
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       network.outgoing.packets.rate_vdbe_0_untr_vmi_1:
461       - vdbe_0_untr_vmi_1
462       - network.outgoing.packets.rate
463       link_control_int_net:
464       - control_int_net
465       - link
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       disk.device.read.requests.rate_vdbe_node_1:
476       - vdbe_node_1
477       - disk.device.read.requests.rate
478       host_vdbe_node_1:
479       - vdbe_node_1
480       - host
481       feature_control_int_net:
482       - control_int_net
483       - feature
484       network.incoming.bytes_vdbe_0_untr_vmi_1:
485       - vdbe_0_untr_vmi_1
486       - network.incoming.bytes
487       cpu.delta_vdbe_node_1:
488       - vdbe_node_1
489       - cpu.delta
490       scalable_vdbe_node_1:
491       - vdbe_node_1
492       - scalable
493       disk.iops_vdbe_node_1:
494       - vdbe_node_1
495       - disk.iops
496       network.incoming.packets.rate_vdbe_0_untr_vmi_1:
497       - vdbe_0_untr_vmi_1
498       - network.incoming.packets.rate
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.bytes.rate_vdbe_0_untr_vmi_1:
509       - vdbe_0_untr_vmi_1
510       - network.outgoing.bytes.rate
511       os_vdbe_node_1:
512       - vdbe_node_1
513       - os
514       feature_vdbe_0_subint_untr_vmi_1_vdbe_untr_1_subports:
515       - vdbe_untr_1_subports
516       - feature_vdbe_0_subint_untr_vmi_1
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       network.outpoing.packets_vdbe_0_untr_vmi_1:
524       - vdbe_0_untr_vmi_1
525       - network.outpoing.packets
526       attachment_control_int_net:
527       - control_int_net
528       - attachment
529       cpu_vdbe_node_1:
530       - vdbe_node_1
531       - cpu
532       disk.device.write.requests.rate_vdbe_node_1:
533       - vdbe_node_1
534       - disk.device.write.requests.rate
535       disk.read.requests_vdbe_node_1:
536       - vdbe_node_1
537       - disk.read.requests
538       disk.write.bytes.rate_vdbe_node_1:
539       - vdbe_node_1
540       - disk.write.bytes.rate
541       memory.usage_vdbe_node_1:
542       - vdbe_node_1
543       - memory.usage
544     requirements:
545       dependency_vdbe_0_untr_vmi_1:
546       - vdbe_0_untr_vmi_1
547       - dependency
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_0_subint_untr_vmi_1_vdbe_untr_1_subports:
555       - vdbe_untr_1_subports
556       - dependency_vdbe_0_subint_untr_vmi_1
557       dependency_control_int_net:
558       - control_int_net
559       - dependency
560       dependency_vdbe_untr_1_subports:
561       - vdbe_untr_1_subports
562       - dependency