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 / 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_related_networks:
20       type: list
21       required: true
22       entry_schema:
23         type: org.openecomp.datatypes.network.RelatedNetworksAssignments
24     port_vdbe_0_untr_vmi_1_network_role_tag:
25       type: string
26       required: true
27     control_int_net_rpf:
28       hidden: false
29       immutable: false
30       type: string
31       description: Reverse Path Filtering enable or disable for the control virtual network
32     control_int_net_forwarding_mode:
33       hidden: false
34       immutable: false
35       type: string
36       description: forwarding mode of the control virtual network
37     vnf_name:
38       hidden: false
39       immutable: false
40       type: string
41       description: Unique name for this VF instance
42     vdbe_untrusted_ip_1:
43       hidden: false
44       immutable: false
45       type: string
46       description: IPV4 address of the secondary vDBE VM on the VAN untrusted network
47     vdbe_aap_untrusted_ip_prefix_len:
48       hidden: false
49       immutable: false
50       type: string
51       description: ip prefix length for the primary vDBE VM on the VAN untrusted network
52     port_vdbe_0_untr_vmi_1_vlan_requirements:
53       type: list
54       required: true
55       entry_schema:
56         type: org.openecomp.datatypes.network.VlanRequirements
57     untrusted_num_vn:
58       hidden: false
59       immutable: false
60       type: float
61       description: Number of vDBE subinterface virtual Networks
62       constraints:
63       - in_range:
64         - 1
65         - 77
66     vf_module_name:
67       hidden: false
68       immutable: false
69       type: string
70       description: Unique name for this VF module inst
71     aap_address_mode:
72       hidden: false
73       immutable: false
74       type: string
75       description: Address mode for the vDBE cluster IP
76     control_int_net_shared:
77       hidden: false
78       immutable: false
79       type: boolean
80       description: control virtual network shared
81     vdbe_untrusted_v6_ip_1:
82       hidden: false
83       immutable: false
84       type: string
85       description: IPV6 address of the secondary vDBE VM on the VAN untrusted network
86     vdbe_untrusted_vmac_address:
87       hidden: false
88       immutable: false
89       type: string
90       description: Virtual MAC of the primary vDBE VM on the VAN untrusted network
91     control_int_net_flood_unknown_unicast:
92       hidden: false
93       immutable: false
94       type: boolean
95       description: forwarding mode of the control virtual network
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     port_vdbe_0_untr_vmi_1_order:
107       type: integer
108       required: true
109     vdbe_name_1:
110       hidden: false
111       immutable: false
112       type: string
113       description: VM Name for this vdbe node 1
114     availability_zone_1:
115       hidden: false
116       immutable: false
117       type: string
118       description: The availability zone of secondary node1 vDBE vm in the local HA pair.
119     port_vdbe_0_untr_vmi_1_mac_requirements:
120       type: org.openecomp.datatypes.network.MacRequirements
121       required: true
122     untrusted_vn_networks:
123       hidden: false
124       immutable: false
125       type: list
126       description: List of subinterface virtual networks
127       entry_schema:
128         type: string
129     vdbe_image_name:
130       hidden: false
131       immutable: false
132       type: string
133       description: Image to use for vDBE
134     oam_net_name:
135       hidden: false
136       immutable: false
137       type: string
138       description: Name of NSDNet network from which the management IP addresses will be allocated
139     vdbe_aap_sec_untrusted_ip_prefix_len:
140       hidden: false
141       immutable: false
142       type: string
143       description: ip prefix length for the secondary DBE VM aap on the VAN untrusted network
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     port_vdbe_0_untr_vmi_1_subnetpoolid:
162       type: string
163       required: true
164     vdbe_flavor_name:
165       hidden: false
166       immutable: false
167       type: string
168       description: Flavor to use for vDBE
169     port_vdbe_0_untr_vmi_1_ip_requirements:
170       type: list
171       required: true
172       entry_schema:
173         type: org.openecomp.datatypes.network.IpRequirements
174     vdbe_hw_untr_mac_1:
175       hidden: false
176       immutable: false
177       type: string
178       description: Secondary MAC address of the secondary vDBE VM on the VAN untrusted network
179     untrusted_net_name:
180       hidden: false
181       immutable: false
182       type: string
183       description: Name of public untrusted network into which this vDBE HA cluster is deployed
184     vdbe_device_name:
185       hidden: false
186       immutable: false
187       type: string
188       description: VDBE device Name for this vdbe VNF
189     port_vdbe_0_untr_vmi_1_network_role:
190       type: string
191       required: true
192     vdbe_aap_untrusted_ip_prefix:
193       hidden: false
194       immutable: false
195       type: string
196       description: ip prefix for primary vDBE VM on the VAN untrusted network
197     port_vdbe_0_untr_vmi_1_exCP_naming:
198       type: org.openecomp.datatypes.Naming
199       required: true
200   node_templates:
201     vdbe_0_untr_vmi_1:
202       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
203       properties:
204         subnetpoolid:
205           get_input: port_vdbe_0_untr_vmi_1_subnetpoolid
206         related_networks:
207           get_input: port_vdbe_0_untr_vmi_1_related_networks
208         ip_requirements:
209           get_input: port_vdbe_0_untr_vmi_1_ip_requirements
210         network_role:
211           get_input: port_vdbe_0_untr_vmi_1_network_role
212         mac_requirements:
213           get_input: port_vdbe_0_untr_vmi_1_mac_requirements
214         subinterface_indicator: true
215         name:
216           str_replace:
217             template: VM_NAMEDBE001p1n004
218             params:
219               DBE:
220                 get_input: vdbe_device_name
221               VM_NAME:
222                 get_input: vdbe_name_1
223         exCP_naming:
224           get_input: port_vdbe_0_untr_vmi_1_exCP_naming
225         virtual_network_refs:
226         - control_int_net
227         vlan_requirements:
228           get_input: port_vdbe_0_untr_vmi_1_vlan_requirements
229         virtual_machine_interface_allowed_address_pairs:
230           allowed_address_pair:
231           - address_mode:
232               get_input: aap_address_mode
233             ip:
234               ip_prefix:
235                 get_input: vdbe_aap_untrusted_ip_prefix
236               ip_prefix_len:
237                 get_input: vdbe_aap_untrusted_ip_prefix_len
238             mac:
239               get_input: vdbe_untrusted_vmac_address
240           - address_mode:
241               get_input: aap_address_mode
242             ip:
243               ip_prefix:
244                 get_input: vdbe_aap_sec_untrusted_ip_prefix
245               ip_prefix_len:
246                 get_input: vdbe_aap_sec_untrusted_ip_prefix_len
247             mac:
248               get_input: vdbe_hw_untr_mac_1
249           - address_mode:
250               get_input: aap_address_mode
251             ip:
252               ip_prefix:
253                 get_input: vdbe_aap_untrusted_v6_ip_prefix
254               ip_prefix_len:
255                 get_input: vdbe_aap_untrusted_v6_ip_prefix_len
256             mac:
257               get_input: vdbe_untrusted_vmac_address
258         network_role_tag:
259           get_input: port_vdbe_0_untr_vmi_1_network_role_tag
260         virtual_machine_interface_mac_addresses:
261         - get_input: vdbe_hw_untr_mac_1
262         order:
263           get_input: port_vdbe_0_untr_vmi_1_order
264       requirements:
265       - link:
266           capability: tosca.capabilities.network.Linkable
267           node: control_int_net
268           relationship: tosca.relationships.network.LinksTo
269       - binding:
270           capability: tosca.capabilities.network.Bindable
271           node: vdbe_node_1
272           relationship: tosca.relationships.network.BindsTo
273     vdbe_node_1:
274       type: org.openecomp.resource.vfc.compute.nodes.heat.vdbe
275       properties:
276         flavor:
277           get_input: vdbe_flavor_name
278         availability_zone:
279           get_input: availability_zone_1
280         image:
281           get_input: vdbe_image_name
282         metadata:
283           vf_module_id:
284             get_input: vf_module_id
285           vnf_id:
286             get_input: vnf_id
287           vnf_name:
288             get_input: vnf_name
289         name:
290           get_input: vdbe_name_1
291     vdbe_untr_1_subports:
292       type: org.openecomp.resource.abstract.nodes.heat.subinterface.nested_vlan
293       directives:
294       - substitutable
295       properties:
296         aap_untrusted_ip_prefix:
297           get_input: vdbe_aap_untrusted_ip_prefix
298         aap_sec_untrusted_ip_prefix:
299           get_input: vdbe_aap_sec_untrusted_ip_prefix
300         vdbe_subport_network: control_int_net
301         ip_v6_address:
302           get_input: vdbe_untrusted_v6_ip_1
303         counter:
304           get_property:
305           - SELF
306           - service_template_filter
307           - index_value
308         ip_address:
309           get_input: vdbe_untrusted_ip_1
310         subinterfaces_name_prefix:
311           str_replace:
312             template: VM_NAMEDBE001p1n004
313             params:
314               DBE:
315                 get_input: vdbe_device_name
316               VM_NAME:
317                 get_input: vdbe_name_1
318         aap_address_mode:
319           get_input: aap_address_mode
320         service_template_filter:
321           substitute_service_template: nested_vlanServiceTemplate.yaml
322           count:
323             get_input: untrusted_num_vn
324           mandatory: false
325         aap_untrusted_v6_ip_prefix:
326           get_input: vdbe_aap_untrusted_v6_ip_prefix
327         parent_interface: vdbe_0_untr_vmi_1
328         mac_address:
329           get_input: vdbe_hw_untr_mac_1
330         vlan_tag_list:
331           get_input: untrusted_vlan_tags
332         aap_sec_untrusted_ip_prefix_len:
333           get_input: vdbe_aap_sec_untrusted_ip_prefix_len
334         vmac_address:
335           get_input: vdbe_untrusted_vmac_address
336         aap_untrusted_v6_ip_prefix_len:
337           get_input: vdbe_aap_untrusted_v6_ip_prefix_len
338         aap_untrusted_ip_prefix_len:
339           get_input: vdbe_aap_untrusted_ip_prefix_len
340       requirements:
341       - subinterface_link_vdbe_0_subint_untr_vmi_1:
342           capability: tosca.capabilities.network.Linkable
343           node: control_int_net
344           relationship: tosca.relationships.network.LinksTo
345       - binding_vdbe_0_subint_untr_vmi_1:
346           capability: tosca.capabilities.network.Bindable
347           node: vdbe_0_untr_vmi_1
348           relationship: tosca.relationships.network.BindsTo
349     control_int_net:
350       type: org.openecomp.resource.vl.nodes.heat.network.contrailV2.VirtualNetwork
351       properties:
352         network_name:
353           str_replace:
354             template: VNF_NAME_control_net
355             params:
356               VNF_NAME:
357                 get_input: vnf_name
358   groups:
359     nested_pattern4_group:
360       type: org.openecomp.groups.heat.HeatStack
361       properties:
362         heat_file: ../Artifacts/nested_pattern4.yml
363         description: |
364           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
365       members:
366       - vdbe_0_untr_vmi_1
367       - vdbe_node_1
368       - vdbe_untr_1_subports
369       - control_int_net
370   substitution_mappings:
371     node_type: org.openecomp.resource.abstract.nodes.heat.vdbe
372     capabilities:
373       disk.latency_vdbe_node_1:
374       - vdbe_node_1
375       - disk.latency
376       binding_vdbe_node_1:
377       - vdbe_node_1
378       - binding
379       instance_vdbe_node_1:
380       - vdbe_node_1
381       - instance
382       network.outgoing.bytes_vdbe_0_untr_vmi_1:
383       - vdbe_0_untr_vmi_1
384       - network.outgoing.bytes
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       binding_vdbe_0_untr_vmi_1:
392       - vdbe_0_untr_vmi_1
393       - binding
394       forwarder_vdbe_0_untr_vmi_1:
395       - vdbe_0_untr_vmi_1
396       - forwarder
397       disk.write.bytes_vdbe_node_1:
398       - vdbe_node_1
399       - disk.write.bytes
400       disk.device.write.bytes_vdbe_node_1:
401       - vdbe_node_1
402       - disk.device.write.bytes
403       disk.allocation_vdbe_node_1:
404       - vdbe_node_1
405       - disk.allocation
406       memory_vdbe_node_1:
407       - vdbe_node_1
408       - memory
409       cpu_util_vdbe_node_1:
410       - vdbe_node_1
411       - cpu_util
412       disk.device.read.bytes_vdbe_node_1:
413       - vdbe_node_1
414       - disk.device.read.bytes
415       network.incoming.bytes.rate_vdbe_0_untr_vmi_1:
416       - vdbe_0_untr_vmi_1
417       - network.incoming.bytes.rate
418       disk.device.read.bytes.rate_vdbe_node_1:
419       - vdbe_node_1
420       - disk.device.read.bytes.rate
421       disk.device.allocation_vdbe_node_1:
422       - vdbe_node_1
423       - disk.device.allocation
424       disk.write.requests.rate_vdbe_node_1:
425       - vdbe_node_1
426       - disk.write.requests.rate
427       disk.root.size_vdbe_node_1:
428       - vdbe_node_1
429       - disk.root.size
430       disk.device.iops_vdbe_node_1:
431       - vdbe_node_1
432       - disk.device.iops
433       disk.device.write.requests_vdbe_node_1:
434       - vdbe_node_1
435       - disk.device.write.requests
436       disk.write.requests_vdbe_node_1:
437       - vdbe_node_1
438       - disk.write.requests
439       vcpus_vdbe_node_1:
440       - vdbe_node_1
441       - vcpus
442       disk.ephemeral.size_vdbe_node_1:
443       - vdbe_node_1
444       - disk.ephemeral.size
445       feature_vdbe_0_untr_vmi_1:
446       - vdbe_0_untr_vmi_1
447       - feature
448       feature_vdbe_untr_1_subports:
449       - vdbe_untr_1_subports
450       - feature
451       network.incoming.packets_vdbe_0_untr_vmi_1:
452       - vdbe_0_untr_vmi_1
453       - network.incoming.packets
454       disk.device.latency_vdbe_node_1:
455       - vdbe_node_1
456       - disk.device.latency
457       disk.capacity_vdbe_node_1:
458       - vdbe_node_1
459       - disk.capacity
460       disk.device.capacity_vdbe_node_1:
461       - vdbe_node_1
462       - disk.device.capacity
463       network.outgoing.packets.rate_vdbe_0_untr_vmi_1:
464       - vdbe_0_untr_vmi_1
465       - network.outgoing.packets.rate
466       link_control_int_net:
467       - control_int_net
468       - link
469       end_point_control_int_net:
470       - control_int_net
471       - end_point
472       disk.usage_vdbe_node_1:
473       - vdbe_node_1
474       - disk.usage
475       disk.read.bytes_vdbe_node_1:
476       - vdbe_node_1
477       - disk.read.bytes
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       network.incoming.bytes_vdbe_0_untr_vmi_1:
488       - vdbe_0_untr_vmi_1
489       - network.incoming.bytes
490       cpu.delta_vdbe_node_1:
491       - vdbe_node_1
492       - cpu.delta
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       network.incoming.packets.rate_vdbe_0_untr_vmi_1:
500       - vdbe_0_untr_vmi_1
501       - network.incoming.packets.rate
502       feature_vdbe_node_1:
503       - vdbe_node_1
504       - feature
505       memory.resident_vdbe_node_1:
506       - vdbe_node_1
507       - memory.resident
508       endpoint_vdbe_node_1:
509       - vdbe_node_1
510       - endpoint
511       network.outgoing.bytes.rate_vdbe_0_untr_vmi_1:
512       - vdbe_0_untr_vmi_1
513       - network.outgoing.bytes.rate
514       os_vdbe_node_1:
515       - vdbe_node_1
516       - os
517       feature_vdbe_0_subint_untr_vmi_1_vdbe_untr_1_subports:
518       - vdbe_untr_1_subports
519       - feature_vdbe_0_subint_untr_vmi_1
520       disk.read.bytes.rate_vdbe_node_1:
521       - vdbe_node_1
522       - disk.read.bytes.rate
523       disk.device.write.bytes.rate_vdbe_node_1:
524       - vdbe_node_1
525       - disk.device.write.bytes.rate
526       network.outpoing.packets_vdbe_0_untr_vmi_1:
527       - vdbe_0_untr_vmi_1
528       - network.outpoing.packets
529       attachment_control_int_net:
530       - control_int_net
531       - attachment
532       cpu_vdbe_node_1:
533       - vdbe_node_1
534       - cpu
535       disk.device.write.requests.rate_vdbe_node_1:
536       - vdbe_node_1
537       - disk.device.write.requests.rate
538       disk.read.requests_vdbe_node_1:
539       - vdbe_node_1
540       - disk.read.requests
541       disk.write.bytes.rate_vdbe_node_1:
542       - vdbe_node_1
543       - disk.write.bytes.rate
544       memory.usage_vdbe_node_1:
545       - vdbe_node_1
546       - memory.usage
547     requirements:
548       dependency_vdbe_0_untr_vmi_1:
549       - vdbe_0_untr_vmi_1
550       - dependency
551       dependency_vdbe_node_1:
552       - vdbe_node_1
553       - dependency
554       local_storage_vdbe_node_1:
555       - vdbe_node_1
556       - local_storage
557       dependency_vdbe_0_subint_untr_vmi_1_vdbe_untr_1_subports:
558       - vdbe_untr_1_subports
559       - dependency_vdbe_0_subint_untr_vmi_1
560       dependency_control_int_net:
561       - control_int_net
562       - dependency
563       dependency_vdbe_untr_1_subports:
564       - vdbe_untr_1_subports
565       - dependency