related-networks property support as input
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / fulltest / subinterface / vlantagging / pattern4 / multipleVlanDiffFile / 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     port_vdbe_untr_1_port_related_networks:
35       type: list
36       required: true
37       entry_schema:
38         type: org.openecomp.datatypes.network.RelatedNetworksAssignments
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 instance
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     untrusted_vlan_tags:
155       hidden: false
156       immutable: false
157       type: list
158       description: List of subinterface vlan tags
159       entry_schema:
160         type: string
161     vdbe_flavor_name:
162       hidden: false
163       immutable: false
164       type: string
165       description: Flavor to use for vDBE
166     port_vdbe_untr_1_port_exCP_naming:
167       type: org.openecomp.datatypes.Naming
168       required: true
169     counter:
170       hidden: false
171       immutable: false
172       type: float
173       description: Counter.
174     port_vdbe_untr_1_port_subnetpoolid:
175       type: string
176       required: true
177     vdbe_hw_untr_mac_1:
178       hidden: false
179       immutable: false
180       type: string
181       description: Secondary MAC address of the secondary vDBE VM on the VAN untrusted network
182     untrusted_net_name:
183       hidden: false
184       immutable: false
185       type: string
186       description: Name of public untrusted network into which this vDBE HA cluster is deployed
187     port_vdbe_untr_1_port_network_role_tag:
188       type: string
189       required: true
190     vdbe_device_name:
191       hidden: false
192       immutable: false
193       type: string
194       description: VDBE device Name for this vdbe VNF
195     port_vdbe_untr_1_port_vlan_requirements:
196       type: list
197       required: true
198       entry_schema:
199         type: org.openecomp.datatypes.network.VlanRequirements
200     vdbe_aap_untrusted_ip_prefix:
201       hidden: false
202       immutable: false
203       type: string
204       description: ip prefix for primary vDBE VM on the VAN untrusted network
205   node_templates:
206     vdbe_untr_2_subports:
207       type: org.openecomp.resource.abstract.nodes.heat.subinterface.vlan2
208       directives:
209       - substitutable
210       properties:
211         aap_untrusted_ip_prefix:
212           get_input: vdbe_aap_untrusted_ip_prefix
213         aap_sec_untrusted_ip_prefix:
214           get_input: vdbe_aap_sec_untrusted_ip_prefix
215         ip_v6_address:
216           get_input: vdbe_untrusted_v6_ip_1
217         counter:
218           get_input: counter
219         ip_address:
220           get_input: vdbe_untrusted_ip_1
221         subinterfaces_name_prefix:
222           str_replace:
223             template: VM_NAMEDBE001p1n004
224             params:
225               DBE:
226                 get_input: vdbe_device_name
227               VM_NAME:
228                 get_input: vdbe_name_1
229         aap_address_mode:
230           get_input: aap_address_mode
231         service_template_filter:
232           substitute_service_template: vlan2ServiceTemplate.yaml
233           count: 5
234           mandatory: true
235         aap_untrusted_v6_ip_prefix:
236           get_input: vdbe_aap_untrusted_v6_ip_prefix
237         parent_interface: vdbe_untr_1_port
238         vn_network_list:
239           get_input: untrusted_vn_networks
240         mac_address:
241           get_input: vdbe_hw_untr_mac_1
242         vlan_tag_list:
243           get_input: untrusted_vlan_tags
244         aap_sec_untrusted_ip_prefix_len:
245           get_input: vdbe_aap_sec_untrusted_ip_prefix_len
246         vmac_address:
247           get_input: vdbe_untrusted_vmac_address
248         aap_untrusted_v6_ip_prefix_len:
249           get_input: vdbe_aap_untrusted_v6_ip_prefix_len
250         aap_untrusted_ip_prefix_len:
251           get_input: vdbe_aap_untrusted_ip_prefix_len
252       requirements:
253       - binding_vdbe_untr_x_subport_another:
254           capability: tosca.capabilities.network.Bindable
255           node: vdbe_untr_1_port
256           relationship: tosca.relationships.network.BindsTo
257     vdbe_node_1:
258       type: org.openecomp.resource.vfc.compute.nodes.heat.vdbe
259       properties:
260         flavor:
261           get_input: vdbe_flavor_name
262         availability_zone:
263           get_input: availability_zone_1
264         image:
265           get_input: vdbe_image_name
266         metadata:
267           vf_module_id:
268             get_input: vf_module_id
269           vnf_id:
270             get_input: vnf_id
271           vnf_name:
272             get_input: vnf_name
273         name:
274           get_input: vdbe_name_1
275     vdbe_untr_1_port:
276       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
277       properties:
278         subnetpoolid:
279           get_input: port_vdbe_untr_1_port_subnetpoolid
280         related_networks:
281           get_input: port_vdbe_untr_1_port_related_networks
282         ip_requirements:
283           get_input: port_vdbe_untr_1_port_ip_requirements
284         network_role:
285           get_input: port_vdbe_untr_1_port_network_role
286         mac_requirements:
287           get_input: port_vdbe_untr_1_port_mac_requirements
288         subinterface_indicator: true
289         name:
290           str_replace:
291             template: VM_NAMEDBE001p1n004
292             params:
293               DBE:
294                 get_input: vdbe_device_name
295               VM_NAME:
296                 get_input: vdbe_name_1
297         exCP_naming:
298           get_input: port_vdbe_untr_1_port_exCP_naming
299         virtual_network_refs:
300         - control_int_net
301         vlan_requirements:
302           get_input: port_vdbe_untr_1_port_vlan_requirements
303         virtual_machine_interface_allowed_address_pairs:
304           allowed_address_pair:
305           - address_mode:
306               get_input: aap_address_mode
307             ip:
308               ip_prefix:
309                 get_input: vdbe_aap_untrusted_ip_prefix
310               ip_prefix_len:
311                 get_input: vdbe_aap_untrusted_ip_prefix_len
312             mac:
313               get_input: vdbe_untrusted_vmac_address
314           - address_mode:
315               get_input: aap_address_mode
316             ip:
317               ip_prefix:
318                 get_input: vdbe_aap_sec_untrusted_ip_prefix
319               ip_prefix_len:
320                 get_input: vdbe_aap_sec_untrusted_ip_prefix_len
321             mac:
322               get_input: vdbe_hw_untr_mac_1
323           - address_mode:
324               get_input: aap_address_mode
325             ip:
326               ip_prefix:
327                 get_input: vdbe_aap_untrusted_v6_ip_prefix
328               ip_prefix_len:
329                 get_input: vdbe_aap_untrusted_v6_ip_prefix_len
330             mac:
331               get_input: vdbe_untrusted_vmac_address
332         network_role_tag:
333           get_input: port_vdbe_untr_1_port_network_role_tag
334         virtual_machine_interface_mac_addresses:
335         - get_input: vdbe_hw_untr_mac_1
336         order:
337           get_input: port_vdbe_untr_1_port_order
338       requirements:
339       - link:
340           capability: tosca.capabilities.network.Linkable
341           node: control_int_net
342           relationship: tosca.relationships.network.LinksTo
343       - binding:
344           capability: tosca.capabilities.network.Bindable
345           node: vdbe_node_1
346           relationship: tosca.relationships.network.BindsTo
347     vdbe_untr_1_subports:
348       type: org.openecomp.resource.abstract.nodes.heat.subinterface.vlan1
349       directives:
350       - substitutable
351       properties:
352         aap_untrusted_ip_prefix:
353           get_input: vdbe_aap_untrusted_ip_prefix
354         aap_sec_untrusted_ip_prefix:
355           get_input: vdbe_aap_sec_untrusted_ip_prefix
356         ip_v6_address:
357           get_input: vdbe_untrusted_v6_ip_1
358         counter:
359           get_input: counter
360         ip_address:
361           get_input: vdbe_untrusted_ip_1
362         subinterfaces_name_prefix:
363           str_replace:
364             template: VM_NAMEDBE001p1n004
365             params:
366               DBE:
367                 get_input: vdbe_device_name
368               VM_NAME:
369                 get_input: vdbe_name_1
370         aap_address_mode:
371           get_input: aap_address_mode
372         service_template_filter:
373           substitute_service_template: vlan1ServiceTemplate.yaml
374           count:
375             get_input: untrusted_num_vn
376           mandatory: false
377         aap_untrusted_v6_ip_prefix:
378           get_input: vdbe_aap_untrusted_v6_ip_prefix
379         parent_interface: vdbe_untr_1_port
380         vn_network_list:
381           get_input: untrusted_vn_networks
382         mac_address:
383           get_input: vdbe_hw_untr_mac_1
384         vlan_tag_list:
385           get_input: untrusted_vlan_tags
386         aap_sec_untrusted_ip_prefix_len:
387           get_input: vdbe_aap_sec_untrusted_ip_prefix_len
388         vmac_address:
389           get_input: vdbe_untrusted_vmac_address
390         aap_untrusted_v6_ip_prefix_len:
391           get_input: vdbe_aap_untrusted_v6_ip_prefix_len
392         aap_untrusted_ip_prefix_len:
393           get_input: vdbe_aap_untrusted_ip_prefix_len
394       requirements:
395       - binding_vdbe_untr_x_subport:
396           capability: tosca.capabilities.network.Bindable
397           node: vdbe_untr_1_port
398           relationship: tosca.relationships.network.BindsTo
399     control_int_net:
400       type: org.openecomp.resource.vl.nodes.heat.network.contrailV2.VirtualNetwork
401       properties:
402         network_name:
403           str_replace:
404             template: VNF_NAME_control_net
405             params:
406               VNF_NAME:
407                 get_input: vnf_name
408   groups:
409     nested_pattern4_group:
410       type: org.openecomp.groups.heat.HeatStack
411       properties:
412         heat_file: ../Artifacts/nested_pattern4.yml
413         description: |
414           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
415       members:
416       - vdbe_untr_2_subports
417       - vdbe_node_1
418       - vdbe_untr_1_port
419       - vdbe_untr_1_subports
420       - control_int_net
421   substitution_mappings:
422     node_type: org.openecomp.resource.abstract.nodes.heat.vdbe
423     capabilities:
424       disk.latency_vdbe_node_1:
425       - vdbe_node_1
426       - disk.latency
427       feature_vdbe_untr_x_subport_another_vdbe_untr_2_subports:
428       - vdbe_untr_2_subports
429       - feature_vdbe_untr_x_subport_another
430       binding_vdbe_node_1:
431       - vdbe_node_1
432       - binding
433       network.outgoing.bytes.rate_vdbe_untr_1_port:
434       - vdbe_untr_1_port
435       - network.outgoing.bytes.rate
436       instance_vdbe_node_1:
437       - vdbe_node_1
438       - instance
439       forwarder_vdbe_untr_1_port:
440       - vdbe_untr_1_port
441       - forwarder
442       disk.device.read.requests_vdbe_node_1:
443       - vdbe_node_1
444       - disk.device.read.requests
445       disk.device.usage_vdbe_node_1:
446       - vdbe_node_1
447       - disk.device.usage
448       disk.write.bytes_vdbe_node_1:
449       - vdbe_node_1
450       - disk.write.bytes
451       disk.device.write.bytes_vdbe_node_1:
452       - vdbe_node_1
453       - disk.device.write.bytes
454       disk.allocation_vdbe_node_1:
455       - vdbe_node_1
456       - disk.allocation
457       memory_vdbe_node_1:
458       - vdbe_node_1
459       - memory
460       cpu_util_vdbe_node_1:
461       - vdbe_node_1
462       - cpu_util
463       network.incoming.packets.rate_vdbe_untr_1_port:
464       - vdbe_untr_1_port
465       - network.incoming.packets.rate
466       disk.device.read.bytes_vdbe_node_1:
467       - vdbe_node_1
468       - disk.device.read.bytes
469       feature_vdbe_untr_2_subports:
470       - vdbe_untr_2_subports
471       - feature
472       disk.device.read.bytes.rate_vdbe_node_1:
473       - vdbe_node_1
474       - disk.device.read.bytes.rate
475       disk.device.allocation_vdbe_node_1:
476       - vdbe_node_1
477       - disk.device.allocation
478       disk.write.requests.rate_vdbe_node_1:
479       - vdbe_node_1
480       - disk.write.requests.rate
481       disk.root.size_vdbe_node_1:
482       - vdbe_node_1
483       - disk.root.size
484       disk.device.iops_vdbe_node_1:
485       - vdbe_node_1
486       - disk.device.iops
487       disk.device.write.requests_vdbe_node_1:
488       - vdbe_node_1
489       - disk.device.write.requests
490       disk.write.requests_vdbe_node_1:
491       - vdbe_node_1
492       - disk.write.requests
493       network.incoming.bytes.rate_vdbe_untr_1_port:
494       - vdbe_untr_1_port
495       - network.incoming.bytes.rate
496       vcpus_vdbe_node_1:
497       - vdbe_node_1
498       - vcpus
499       binding_vdbe_untr_1_port:
500       - vdbe_untr_1_port
501       - binding
502       disk.ephemeral.size_vdbe_node_1:
503       - vdbe_node_1
504       - disk.ephemeral.size
505       network.outgoing.bytes_vdbe_untr_1_port:
506       - vdbe_untr_1_port
507       - network.outgoing.bytes
508       feature_vdbe_untr_1_subports:
509       - vdbe_untr_1_subports
510       - feature
511       disk.device.latency_vdbe_node_1:
512       - vdbe_node_1
513       - disk.device.latency
514       disk.capacity_vdbe_node_1:
515       - vdbe_node_1
516       - disk.capacity
517       disk.device.capacity_vdbe_node_1:
518       - vdbe_node_1
519       - disk.device.capacity
520       link_control_int_net:
521       - control_int_net
522       - link
523       network.incoming.bytes_vdbe_untr_1_port:
524       - vdbe_untr_1_port
525       - network.incoming.bytes
526       end_point_control_int_net:
527       - control_int_net
528       - end_point
529       disk.usage_vdbe_node_1:
530       - vdbe_node_1
531       - disk.usage
532       disk.read.bytes_vdbe_node_1:
533       - vdbe_node_1
534       - disk.read.bytes
535       feature_vdbe_untr_x_subport_vdbe_untr_1_subports:
536       - vdbe_untr_1_subports
537       - feature_vdbe_untr_x_subport
538       disk.device.read.requests.rate_vdbe_node_1:
539       - vdbe_node_1
540       - disk.device.read.requests.rate
541       host_vdbe_node_1:
542       - vdbe_node_1
543       - host
544       feature_control_int_net:
545       - control_int_net
546       - feature
547       cpu.delta_vdbe_node_1:
548       - vdbe_node_1
549       - cpu.delta
550       network.incoming.packets_vdbe_untr_1_port:
551       - vdbe_untr_1_port
552       - network.incoming.packets
553       scalable_vdbe_node_1:
554       - vdbe_node_1
555       - scalable
556       disk.iops_vdbe_node_1:
557       - vdbe_node_1
558       - disk.iops
559       feature_vdbe_node_1:
560       - vdbe_node_1
561       - feature
562       memory.resident_vdbe_node_1:
563       - vdbe_node_1
564       - memory.resident
565       endpoint_vdbe_node_1:
566       - vdbe_node_1
567       - endpoint
568       network.outgoing.packets.rate_vdbe_untr_1_port:
569       - vdbe_untr_1_port
570       - network.outgoing.packets.rate
571       os_vdbe_node_1:
572       - vdbe_node_1
573       - os
574       network.outpoing.packets_vdbe_untr_1_port:
575       - vdbe_untr_1_port
576       - network.outpoing.packets
577       disk.read.bytes.rate_vdbe_node_1:
578       - vdbe_node_1
579       - disk.read.bytes.rate
580       disk.device.write.bytes.rate_vdbe_node_1:
581       - vdbe_node_1
582       - disk.device.write.bytes.rate
583       attachment_control_int_net:
584       - control_int_net
585       - attachment
586       cpu_vdbe_node_1:
587       - vdbe_node_1
588       - cpu
589       disk.device.write.requests.rate_vdbe_node_1:
590       - vdbe_node_1
591       - disk.device.write.requests.rate
592       disk.read.requests_vdbe_node_1:
593       - vdbe_node_1
594       - disk.read.requests
595       disk.write.bytes.rate_vdbe_node_1:
596       - vdbe_node_1
597       - disk.write.bytes.rate
598       feature_vdbe_untr_1_port:
599       - vdbe_untr_1_port
600       - feature
601       memory.usage_vdbe_node_1:
602       - vdbe_node_1
603       - memory.usage
604     requirements:
605       dependency_vdbe_untr_2_subports:
606       - vdbe_untr_2_subports
607       - dependency
608       dependency_vdbe_untr_x_subport_vdbe_untr_1_subports:
609       - vdbe_untr_1_subports
610       - dependency_vdbe_untr_x_subport
611       dependency_vdbe_node_1:
612       - vdbe_node_1
613       - dependency
614       subinterface_link_vdbe_untr_x_subport_another_vdbe_untr_2_subports:
615       - vdbe_untr_2_subports
616       - subinterface_link_vdbe_untr_x_subport_another
617       local_storage_vdbe_node_1:
618       - vdbe_node_1
619       - local_storage
620       dependency_vdbe_untr_1_port:
621       - vdbe_untr_1_port
622       - dependency
623       dependency_control_int_net:
624       - control_int_net
625       - dependency
626       dependency_vdbe_untr_x_subport_another_vdbe_untr_2_subports:
627       - vdbe_untr_2_subports
628       - dependency_vdbe_untr_x_subport_another
629       subinterface_link_vdbe_untr_x_subport_vdbe_untr_1_subports:
630       - vdbe_untr_1_subports
631       - subinterface_link_vdbe_untr_x_subport
632       dependency_vdbe_untr_1_subports:
633       - vdbe_untr_1_subports
634       - dependency