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 / 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     port_vdbe_untr_1_port_related_networks:
40       type: list
41       required: true
42       entry_schema:
43         type: org.openecomp.datatypes.network.RelatedNetworksAssignments
44     vdbe_untrusted_ip_1:
45       hidden: false
46       immutable: false
47       type: string
48       description: IPV4 address of the secondary vDBE VM on the VAN untrusted network
49     vdbe_aap_untrusted_ip_prefix_len:
50       hidden: false
51       immutable: false
52       type: string
53       description: ip prefix length for the primary vDBE VM on the VAN untrusted network
54     untrusted_num_vn:
55       hidden: false
56       immutable: false
57       type: float
58       description: Number of vDBE subinterface virtual Networks
59       constraints:
60       - in_range:
61         - 1
62         - 77
63     vf_module_name:
64       hidden: false
65       immutable: false
66       type: string
67       description: Unique name for this VF module inst
68     aap_address_mode:
69       hidden: false
70       immutable: false
71       type: string
72       description: Address mode for the vDBE cluster IP
73     control_int_net_shared:
74       hidden: false
75       immutable: false
76       type: boolean
77       description: control virtual network shared
78     vdbe_untrusted_v6_ip_1:
79       hidden: false
80       immutable: false
81       type: string
82       description: IPV6 address of the secondary vDBE VM on the VAN untrusted network
83     vdbe_untrusted_vmac_address:
84       hidden: false
85       immutable: false
86       type: string
87       description: Virtual MAC of the primary vDBE VM on the VAN untrusted network
88     control_int_net_flood_unknown_unicast:
89       hidden: false
90       immutable: false
91       type: boolean
92       description: forwarding mode of the control virtual network
93     port_vdbe_untr_1_port_network_role:
94       type: string
95       required: true
96     vdbe_aap_sec_untrusted_ip_prefix:
97       hidden: false
98       immutable: false
99       type: string
100       description: ip prefix for secondary vDBE VM aap on the VAN untrusted network
101     vnf_id:
102       hidden: false
103       immutable: false
104       type: string
105       description: Unique ID for this VF inst
106     vdbe_name_1:
107       hidden: false
108       immutable: false
109       type: string
110       description: VM Name for this vdbe node 1
111     port_vdbe_untr_1_port_ip_requirements:
112       type: list
113       required: true
114       entry_schema:
115         type: org.openecomp.datatypes.network.IpRequirements
116     availability_zone_1:
117       hidden: false
118       immutable: false
119       type: string
120       description: The availability zone of secondary node1 vDBE vm in the local HA pair.
121     untrusted_vn_networks:
122       hidden: false
123       immutable: false
124       type: list
125       description: List of subinterface virtual networks
126       entry_schema:
127         type: string
128     vdbe_image_name:
129       hidden: false
130       immutable: false
131       type: string
132       description: Image to use for vDBE
133     oam_net_name:
134       hidden: false
135       immutable: false
136       type: string
137       description: Name of NSDNet network from which the management IP addresses will be allocated
138     vdbe_aap_sec_untrusted_ip_prefix_len:
139       hidden: false
140       immutable: false
141       type: string
142       description: ip prefix length for the secondary DBE VM aap on the VAN untrusted network
143     port_vdbe_untr_1_port_mac_requirements:
144       type: org.openecomp.datatypes.network.MacRequirements
145       required: true
146     port_vdbe_untr_1_port_order:
147       type: integer
148       required: true
149     vdbe_aap_untrusted_v6_ip_prefix:
150       hidden: false
151       immutable: false
152       type: string
153       description: ipv6 prefix for the primary vDBE VM on the VAN untrusted network
154     vdbe_aap_untrusted_v6_ip_prefix_len:
155       hidden: false
156       immutable: false
157       type: string
158       description: ipv6 prefix length for the primary vDBE VM on the VAN untrusted network
159     fabric_int_net_flood_unknown_unicast:
160       hidden: false
161       immutable: false
162       type: boolean
163       description: forwarding mode of the fabric virtual network
164     untrusted_vlan_tags:
165       hidden: false
166       immutable: false
167       type: list
168       description: List of subinterface vlan tags
169       entry_schema:
170         type: string
171     vdbe_flavor_name:
172       hidden: false
173       immutable: false
174       type: string
175       description: Flavor to use for vDBE
176     port_vdbe_untr_1_port_exCP_naming:
177       type: org.openecomp.datatypes.Naming
178       required: true
179     counter:
180       hidden: false
181       immutable: false
182       type: float
183       description: Counter.
184     port_vdbe_untr_1_port_subnetpoolid:
185       type: string
186       required: true
187     fabric_int_net_forwarding_mode:
188       hidden: false
189       immutable: false
190       type: string
191       description: forwarding mode of the fabric virtual network
192     fabric_int_net_shared:
193       hidden: false
194       immutable: false
195       description: fabric virtual network shared
196     vdbe_hw_untr_mac_1:
197       hidden: false
198       immutable: false
199       type: string
200       description: Secondary MAC address of the secondary vDBE VM on the VAN untrusted network
201     untrusted_net_name:
202       hidden: false
203       immutable: false
204       type: string
205       description: Name of public untrusted network into which this vDBE HA cluster is deployed
206     port_vdbe_untr_1_port_network_role_tag:
207       type: string
208       required: true
209     vdbe_device_name:
210       hidden: false
211       immutable: false
212       type: string
213       description: VDBE device Name for this vdbe VNF
214     port_vdbe_untr_1_port_vlan_requirements:
215       type: list
216       required: true
217       entry_schema:
218         type: org.openecomp.datatypes.network.VlanRequirements
219     vdbe_aap_untrusted_ip_prefix:
220       hidden: false
221       immutable: false
222       type: string
223       description: ip prefix for primary vDBE VM on the VAN untrusted network
224   node_templates:
225     vdbe_node_1:
226       type: org.openecomp.resource.vfc.compute.nodes.heat.vdbe
227       properties:
228         flavor:
229           get_input: vdbe_flavor_name
230         availability_zone:
231           get_input: availability_zone_1
232         image:
233           get_input: vdbe_image_name
234         metadata:
235           vf_module_id:
236             get_input: vf_module_id
237           vnf_id:
238             get_input: vnf_id
239           vnf_name:
240             get_input: vnf_name
241         name:
242           get_input: vdbe_name_1
243     fabric_int_net:
244       type: org.openecomp.resource.vl.nodes.heat.network.contrailV2.VirtualNetwork
245       properties:
246         network_name:
247           str_replace:
248             template: VNF_NAME_fabric_net
249             params:
250               VNF_NAME:
251                 get_input: vnf_name
252     vdbe_untr_1_port:
253       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
254       properties:
255         subnetpoolid:
256           get_input: port_vdbe_untr_1_port_subnetpoolid
257         related_networks:
258           get_input: port_vdbe_untr_1_port_related_networks
259         ip_requirements:
260           get_input: port_vdbe_untr_1_port_ip_requirements
261         network_role:
262           get_input: port_vdbe_untr_1_port_network_role
263         mac_requirements:
264           get_input: port_vdbe_untr_1_port_mac_requirements
265         subinterface_indicator: true
266         name:
267           str_replace:
268             template: VM_NAMEDBE001p1n004
269             params:
270               DBE:
271                 get_input: vdbe_device_name
272               VM_NAME:
273                 get_input: vdbe_name_1
274         exCP_naming:
275           get_input: port_vdbe_untr_1_port_exCP_naming
276         virtual_network_refs:
277         - fabric_int_net
278         vlan_requirements:
279           get_input: port_vdbe_untr_1_port_vlan_requirements
280         virtual_machine_interface_allowed_address_pairs:
281           allowed_address_pair:
282           - address_mode:
283               get_input: aap_address_mode
284             ip:
285               ip_prefix:
286                 get_input: vdbe_aap_untrusted_ip_prefix
287               ip_prefix_len:
288                 get_input: vdbe_aap_untrusted_ip_prefix_len
289             mac:
290               get_input: vdbe_untrusted_vmac_address
291           - address_mode:
292               get_input: aap_address_mode
293             ip:
294               ip_prefix:
295                 get_input: vdbe_aap_sec_untrusted_ip_prefix
296               ip_prefix_len:
297                 get_input: vdbe_aap_sec_untrusted_ip_prefix_len
298             mac:
299               get_input: vdbe_hw_untr_mac_1
300           - address_mode:
301               get_input: aap_address_mode
302             ip:
303               ip_prefix:
304                 get_input: vdbe_aap_untrusted_v6_ip_prefix
305               ip_prefix_len:
306                 get_input: vdbe_aap_untrusted_v6_ip_prefix_len
307             mac:
308               get_input: vdbe_untrusted_vmac_address
309         network_role_tag:
310           get_input: port_vdbe_untr_1_port_network_role_tag
311         virtual_machine_interface_mac_addresses:
312         - get_input: vdbe_hw_untr_mac_1
313         order:
314           get_input: port_vdbe_untr_1_port_order
315       requirements:
316       - link:
317           capability: tosca.capabilities.network.Linkable
318           node: fabric_int_net
319           relationship: tosca.relationships.network.LinksTo
320       - binding:
321           capability: tosca.capabilities.network.Bindable
322           node: vdbe_node_1
323           relationship: tosca.relationships.network.BindsTo
324     vdbe_untr_1_subports:
325       type: org.openecomp.resource.abstract.nodes.heat.subinterface.nested_vlan
326       directives:
327       - substitutable
328       properties:
329         aap_untrusted_ip_prefix:
330           get_input: vdbe_aap_untrusted_ip_prefix
331         aap_sec_untrusted_ip_prefix:
332           get_input: vdbe_aap_sec_untrusted_ip_prefix
333         vdbe_subport_network: control_int_net
334         ip_v6_address:
335           get_input: vdbe_untrusted_v6_ip_1
336         counter:
337           get_input: counter
338         ip_address:
339           get_input: vdbe_untrusted_ip_1
340         subinterfaces_name_prefix:
341           str_replace:
342             template: VM_NAMEDBE001p1n004
343             params:
344               DBE:
345                 get_input: vdbe_device_name
346               VM_NAME:
347                 get_input: vdbe_name_1
348         aap_address_mode:
349           get_input: aap_address_mode
350         service_template_filter:
351           substitute_service_template: nested_vlanServiceTemplate.yaml
352           count:
353             get_input: untrusted_num_vn
354           mandatory: false
355         aap_untrusted_v6_ip_prefix:
356           get_input: vdbe_aap_untrusted_v6_ip_prefix
357         parent_interface: vdbe_untr_1_port
358         mac_address:
359           get_input: vdbe_hw_untr_mac_1
360         vlan_tag_list:
361           get_input: untrusted_vlan_tags
362         aap_sec_untrusted_ip_prefix_len:
363           get_input: vdbe_aap_sec_untrusted_ip_prefix_len
364         vmac_address:
365           get_input: vdbe_untrusted_vmac_address
366         aap_untrusted_v6_ip_prefix_len:
367           get_input: vdbe_aap_untrusted_v6_ip_prefix_len
368         aap_untrusted_ip_prefix_len:
369           get_input: vdbe_aap_untrusted_ip_prefix_len
370       requirements:
371       - subinterface_link_vdbe_untr_x_subport:
372           capability: tosca.capabilities.network.Linkable
373           node: control_int_net
374           relationship: tosca.relationships.network.LinksTo
375       - binding_vdbe_untr_x_subport:
376           capability: tosca.capabilities.network.Bindable
377           node: vdbe_untr_1_port
378           relationship: tosca.relationships.network.BindsTo
379     control_int_net:
380       type: org.openecomp.resource.vl.nodes.heat.network.contrailV2.VirtualNetwork
381       properties:
382         network_name:
383           str_replace:
384             template: VNF_NAME_control_net
385             params:
386               VNF_NAME:
387                 get_input: vnf_name
388   groups:
389     nested_pattern4_group:
390       type: org.openecomp.groups.heat.HeatStack
391       properties:
392         heat_file: ../Artifacts/nested_pattern4.yml
393         description: |
394           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
395       members:
396       - vdbe_node_1
397       - fabric_int_net
398       - vdbe_untr_1_port
399       - vdbe_untr_1_subports
400       - control_int_net
401   substitution_mappings:
402     node_type: org.openecomp.resource.abstract.nodes.heat.vdbe
403     capabilities:
404       disk.latency_vdbe_node_1:
405       - vdbe_node_1
406       - disk.latency
407       binding_vdbe_node_1:
408       - vdbe_node_1
409       - binding
410       network.outgoing.bytes.rate_vdbe_untr_1_port:
411       - vdbe_untr_1_port
412       - network.outgoing.bytes.rate
413       instance_vdbe_node_1:
414       - vdbe_node_1
415       - instance
416       forwarder_vdbe_untr_1_port:
417       - vdbe_untr_1_port
418       - forwarder
419       disk.device.read.requests_vdbe_node_1:
420       - vdbe_node_1
421       - disk.device.read.requests
422       end_point_fabric_int_net:
423       - fabric_int_net
424       - end_point
425       disk.device.usage_vdbe_node_1:
426       - vdbe_node_1
427       - disk.device.usage
428       attachment_fabric_int_net:
429       - fabric_int_net
430       - attachment
431       disk.write.bytes_vdbe_node_1:
432       - vdbe_node_1
433       - disk.write.bytes
434       disk.device.write.bytes_vdbe_node_1:
435       - vdbe_node_1
436       - disk.device.write.bytes
437       disk.allocation_vdbe_node_1:
438       - vdbe_node_1
439       - disk.allocation
440       memory_vdbe_node_1:
441       - vdbe_node_1
442       - memory
443       cpu_util_vdbe_node_1:
444       - vdbe_node_1
445       - cpu_util
446       network.incoming.packets.rate_vdbe_untr_1_port:
447       - vdbe_untr_1_port
448       - network.incoming.packets.rate
449       disk.device.read.bytes_vdbe_node_1:
450       - vdbe_node_1
451       - disk.device.read.bytes
452       disk.device.read.bytes.rate_vdbe_node_1:
453       - vdbe_node_1
454       - disk.device.read.bytes.rate
455       disk.device.allocation_vdbe_node_1:
456       - vdbe_node_1
457       - disk.device.allocation
458       disk.write.requests.rate_vdbe_node_1:
459       - vdbe_node_1
460       - disk.write.requests.rate
461       disk.root.size_vdbe_node_1:
462       - vdbe_node_1
463       - disk.root.size
464       disk.device.iops_vdbe_node_1:
465       - vdbe_node_1
466       - disk.device.iops
467       disk.device.write.requests_vdbe_node_1:
468       - vdbe_node_1
469       - disk.device.write.requests
470       disk.write.requests_vdbe_node_1:
471       - vdbe_node_1
472       - disk.write.requests
473       network.incoming.bytes.rate_vdbe_untr_1_port:
474       - vdbe_untr_1_port
475       - network.incoming.bytes.rate
476       vcpus_vdbe_node_1:
477       - vdbe_node_1
478       - vcpus
479       binding_vdbe_untr_1_port:
480       - vdbe_untr_1_port
481       - binding
482       disk.ephemeral.size_vdbe_node_1:
483       - vdbe_node_1
484       - disk.ephemeral.size
485       network.outgoing.bytes_vdbe_untr_1_port:
486       - vdbe_untr_1_port
487       - network.outgoing.bytes
488       feature_vdbe_untr_1_subports:
489       - vdbe_untr_1_subports
490       - feature
491       disk.device.latency_vdbe_node_1:
492       - vdbe_node_1
493       - disk.device.latency
494       disk.capacity_vdbe_node_1:
495       - vdbe_node_1
496       - disk.capacity
497       disk.device.capacity_vdbe_node_1:
498       - vdbe_node_1
499       - disk.device.capacity
500       feature_fabric_int_net:
501       - fabric_int_net
502       - feature
503       link_control_int_net:
504       - control_int_net
505       - link
506       network.incoming.bytes_vdbe_untr_1_port:
507       - vdbe_untr_1_port
508       - network.incoming.bytes
509       end_point_control_int_net:
510       - control_int_net
511       - end_point
512       disk.usage_vdbe_node_1:
513       - vdbe_node_1
514       - disk.usage
515       disk.read.bytes_vdbe_node_1:
516       - vdbe_node_1
517       - disk.read.bytes
518       feature_vdbe_untr_x_subport_vdbe_untr_1_subports:
519       - vdbe_untr_1_subports
520       - feature_vdbe_untr_x_subport
521       disk.device.read.requests.rate_vdbe_node_1:
522       - vdbe_node_1
523       - disk.device.read.requests.rate
524       host_vdbe_node_1:
525       - vdbe_node_1
526       - host
527       feature_control_int_net:
528       - control_int_net
529       - feature
530       cpu.delta_vdbe_node_1:
531       - vdbe_node_1
532       - cpu.delta
533       network.incoming.packets_vdbe_untr_1_port:
534       - vdbe_untr_1_port
535       - network.incoming.packets
536       scalable_vdbe_node_1:
537       - vdbe_node_1
538       - scalable
539       link_fabric_int_net:
540       - fabric_int_net
541       - link
542       disk.iops_vdbe_node_1:
543       - vdbe_node_1
544       - disk.iops
545       feature_vdbe_node_1:
546       - vdbe_node_1
547       - feature
548       memory.resident_vdbe_node_1:
549       - vdbe_node_1
550       - memory.resident
551       endpoint_vdbe_node_1:
552       - vdbe_node_1
553       - endpoint
554       network.outgoing.packets.rate_vdbe_untr_1_port:
555       - vdbe_untr_1_port
556       - network.outgoing.packets.rate
557       os_vdbe_node_1:
558       - vdbe_node_1
559       - os
560       network.outpoing.packets_vdbe_untr_1_port:
561       - vdbe_untr_1_port
562       - network.outpoing.packets
563       disk.read.bytes.rate_vdbe_node_1:
564       - vdbe_node_1
565       - disk.read.bytes.rate
566       disk.device.write.bytes.rate_vdbe_node_1:
567       - vdbe_node_1
568       - disk.device.write.bytes.rate
569       attachment_control_int_net:
570       - control_int_net
571       - attachment
572       cpu_vdbe_node_1:
573       - vdbe_node_1
574       - cpu
575       disk.device.write.requests.rate_vdbe_node_1:
576       - vdbe_node_1
577       - disk.device.write.requests.rate
578       disk.read.requests_vdbe_node_1:
579       - vdbe_node_1
580       - disk.read.requests
581       disk.write.bytes.rate_vdbe_node_1:
582       - vdbe_node_1
583       - disk.write.bytes.rate
584       feature_vdbe_untr_1_port:
585       - vdbe_untr_1_port
586       - feature
587       memory.usage_vdbe_node_1:
588       - vdbe_node_1
589       - memory.usage
590     requirements:
591       dependency_vdbe_untr_x_subport_vdbe_untr_1_subports:
592       - vdbe_untr_1_subports
593       - dependency_vdbe_untr_x_subport
594       dependency_vdbe_node_1:
595       - vdbe_node_1
596       - dependency
597       local_storage_vdbe_node_1:
598       - vdbe_node_1
599       - local_storage
600       dependency_vdbe_untr_1_port:
601       - vdbe_untr_1_port
602       - dependency
603       dependency_control_int_net:
604       - control_int_net
605       - dependency
606       dependency_fabric_int_net:
607       - fabric_int_net
608       - dependency
609       dependency_vdbe_untr_1_subports:
610       - vdbe_untr_1_subports
611       - dependency