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 / subInterfaceGetAttrInOut / 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:
249               get_attribute:
250               - vdbe_untr_1_subports
251               - vlan_tag_list
252             params:
253               VNF_NAME:
254                 get_input: vnf_name
255     vdbe_untr_1_port:
256       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
257       properties:
258         subnetpoolid:
259           get_input: port_vdbe_untr_1_port_subnetpoolid
260         related_networks:
261           get_input: port_vdbe_untr_1_port_related_networks
262         ip_requirements:
263           get_input: port_vdbe_untr_1_port_ip_requirements
264         network_role:
265           get_input: port_vdbe_untr_1_port_network_role
266         mac_requirements:
267           get_input: port_vdbe_untr_1_port_mac_requirements
268         subinterface_indicator: true
269         name:
270           str_replace:
271             template: VM_NAMEDBE001p1n004
272             params:
273               DBE:
274                 get_input: vdbe_device_name
275               VM_NAME:
276                 get_input: vdbe_name_1
277         exCP_naming:
278           get_input: port_vdbe_untr_1_port_exCP_naming
279         virtual_network_refs:
280         - fabric_int_net
281         vlan_requirements:
282           get_input: port_vdbe_untr_1_port_vlan_requirements
283         virtual_machine_interface_allowed_address_pairs:
284           allowed_address_pair:
285           - address_mode:
286               get_input: aap_address_mode
287             ip:
288               ip_prefix:
289                 get_input: vdbe_aap_untrusted_ip_prefix
290               ip_prefix_len:
291                 get_input: vdbe_aap_untrusted_ip_prefix_len
292             mac:
293               get_input: vdbe_untrusted_vmac_address
294           - address_mode:
295               get_input: aap_address_mode
296             ip:
297               ip_prefix:
298                 get_input: vdbe_aap_sec_untrusted_ip_prefix
299               ip_prefix_len:
300                 get_input: vdbe_aap_sec_untrusted_ip_prefix_len
301             mac:
302               get_input: vdbe_hw_untr_mac_1
303           - address_mode:
304               get_input: aap_address_mode
305             ip:
306               ip_prefix:
307                 get_input: vdbe_aap_untrusted_v6_ip_prefix
308               ip_prefix_len:
309                 get_input: vdbe_aap_untrusted_v6_ip_prefix_len
310             mac:
311               get_input: vdbe_untrusted_vmac_address
312         network_role_tag:
313           get_input: port_vdbe_untr_1_port_network_role_tag
314         virtual_machine_interface_mac_addresses:
315         - get_input: vdbe_hw_untr_mac_1
316         order:
317           get_input: port_vdbe_untr_1_port_order
318       requirements:
319       - link:
320           capability: tosca.capabilities.network.Linkable
321           node: fabric_int_net
322           relationship: tosca.relationships.network.LinksTo
323       - binding:
324           capability: tosca.capabilities.network.Bindable
325           node: vdbe_node_1
326           relationship: tosca.relationships.network.BindsTo
327     vdbe_untr_1_subports:
328       type: org.openecomp.resource.abstract.nodes.heat.subinterface.nested_vlan
329       directives:
330       - substitutable
331       properties:
332         aap_untrusted_ip_prefix:
333           get_input: vdbe_aap_untrusted_ip_prefix
334         aap_sec_untrusted_ip_prefix:
335           get_input: vdbe_aap_sec_untrusted_ip_prefix
336         vdbe_subport_network: control_int_net
337         ip_v6_address:
338           get_input: vdbe_untrusted_v6_ip_1
339         counter:
340           get_input: counter
341         ip_address:
342           get_input: vdbe_untrusted_ip_1
343         subinterfaces_name_prefix:
344           str_replace:
345             template: VM_NAMEDBE001p1n004
346             params:
347               DBE:
348                 get_input: vdbe_device_name
349               VM_NAME:
350                 get_input: vdbe_name_1
351         aap_address_mode:
352           get_input: aap_address_mode
353         service_template_filter:
354           substitute_service_template: nested_vlanServiceTemplate.yaml
355           count:
356             get_input: untrusted_num_vn
357           mandatory: false
358         aap_untrusted_v6_ip_prefix:
359           get_input: vdbe_aap_untrusted_v6_ip_prefix
360         parent_interface: vdbe_untr_1_port
361         mac_address:
362           get_input: vdbe_hw_untr_mac_1
363         vlan_tag_list:
364           get_input: untrusted_vlan_tags
365         aap_sec_untrusted_ip_prefix_len:
366           get_input: vdbe_aap_sec_untrusted_ip_prefix_len
367         vmac_address:
368           get_attribute:
369           - control_int_net
370           - fq_name
371         aap_untrusted_v6_ip_prefix_len:
372           get_input: vdbe_aap_untrusted_v6_ip_prefix_len
373         aap_untrusted_ip_prefix_len:
374           get_input: vdbe_aap_untrusted_ip_prefix_len
375       requirements:
376       - subinterface_link_vdbe_untr_x_subport:
377           capability: tosca.capabilities.network.Linkable
378           node: control_int_net
379           relationship: tosca.relationships.network.LinksTo
380       - binding_vdbe_untr_x_subport:
381           capability: tosca.capabilities.network.Bindable
382           node: vdbe_untr_1_port
383           relationship: tosca.relationships.network.BindsTo
384     control_int_net:
385       type: org.openecomp.resource.vl.nodes.heat.network.contrailV2.VirtualNetwork
386       properties:
387         network_name:
388           str_replace:
389             template: VNF_NAME_control_net
390             params:
391               VNF_NAME:
392                 get_input: vnf_name
393   groups:
394     nested_pattern4_group:
395       type: org.openecomp.groups.heat.HeatStack
396       properties:
397         heat_file: ../Artifacts/nested_pattern4.yml
398         description: |
399           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
400       members:
401       - vdbe_node_1
402       - fabric_int_net
403       - vdbe_untr_1_port
404       - vdbe_untr_1_subports
405       - control_int_net
406   outputs:
407     out1:
408       description: output param connectivity
409       value:
410         get_attribute:
411         - vdbe_untr_1_subports
412         - aap_address_mode
413   substitution_mappings:
414     node_type: org.openecomp.resource.abstract.nodes.heat.vdbe
415     capabilities:
416       disk.latency_vdbe_node_1:
417       - vdbe_node_1
418       - disk.latency
419       binding_vdbe_node_1:
420       - vdbe_node_1
421       - binding
422       network.outgoing.bytes.rate_vdbe_untr_1_port:
423       - vdbe_untr_1_port
424       - network.outgoing.bytes.rate
425       instance_vdbe_node_1:
426       - vdbe_node_1
427       - instance
428       forwarder_vdbe_untr_1_port:
429       - vdbe_untr_1_port
430       - forwarder
431       disk.device.read.requests_vdbe_node_1:
432       - vdbe_node_1
433       - disk.device.read.requests
434       end_point_fabric_int_net:
435       - fabric_int_net
436       - end_point
437       disk.device.usage_vdbe_node_1:
438       - vdbe_node_1
439       - disk.device.usage
440       attachment_fabric_int_net:
441       - fabric_int_net
442       - attachment
443       disk.write.bytes_vdbe_node_1:
444       - vdbe_node_1
445       - disk.write.bytes
446       disk.device.write.bytes_vdbe_node_1:
447       - vdbe_node_1
448       - disk.device.write.bytes
449       disk.allocation_vdbe_node_1:
450       - vdbe_node_1
451       - disk.allocation
452       memory_vdbe_node_1:
453       - vdbe_node_1
454       - memory
455       cpu_util_vdbe_node_1:
456       - vdbe_node_1
457       - cpu_util
458       network.incoming.packets.rate_vdbe_untr_1_port:
459       - vdbe_untr_1_port
460       - network.incoming.packets.rate
461       disk.device.read.bytes_vdbe_node_1:
462       - vdbe_node_1
463       - disk.device.read.bytes
464       disk.device.read.bytes.rate_vdbe_node_1:
465       - vdbe_node_1
466       - disk.device.read.bytes.rate
467       disk.device.allocation_vdbe_node_1:
468       - vdbe_node_1
469       - disk.device.allocation
470       disk.write.requests.rate_vdbe_node_1:
471       - vdbe_node_1
472       - disk.write.requests.rate
473       disk.root.size_vdbe_node_1:
474       - vdbe_node_1
475       - disk.root.size
476       disk.device.iops_vdbe_node_1:
477       - vdbe_node_1
478       - disk.device.iops
479       disk.device.write.requests_vdbe_node_1:
480       - vdbe_node_1
481       - disk.device.write.requests
482       disk.write.requests_vdbe_node_1:
483       - vdbe_node_1
484       - disk.write.requests
485       network.incoming.bytes.rate_vdbe_untr_1_port:
486       - vdbe_untr_1_port
487       - network.incoming.bytes.rate
488       vcpus_vdbe_node_1:
489       - vdbe_node_1
490       - vcpus
491       binding_vdbe_untr_1_port:
492       - vdbe_untr_1_port
493       - binding
494       disk.ephemeral.size_vdbe_node_1:
495       - vdbe_node_1
496       - disk.ephemeral.size
497       network.outgoing.bytes_vdbe_untr_1_port:
498       - vdbe_untr_1_port
499       - network.outgoing.bytes
500       feature_vdbe_untr_1_subports:
501       - vdbe_untr_1_subports
502       - feature
503       disk.device.latency_vdbe_node_1:
504       - vdbe_node_1
505       - disk.device.latency
506       disk.capacity_vdbe_node_1:
507       - vdbe_node_1
508       - disk.capacity
509       disk.device.capacity_vdbe_node_1:
510       - vdbe_node_1
511       - disk.device.capacity
512       feature_fabric_int_net:
513       - fabric_int_net
514       - feature
515       link_control_int_net:
516       - control_int_net
517       - link
518       network.incoming.bytes_vdbe_untr_1_port:
519       - vdbe_untr_1_port
520       - network.incoming.bytes
521       end_point_control_int_net:
522       - control_int_net
523       - end_point
524       disk.usage_vdbe_node_1:
525       - vdbe_node_1
526       - disk.usage
527       disk.read.bytes_vdbe_node_1:
528       - vdbe_node_1
529       - disk.read.bytes
530       feature_vdbe_untr_x_subport_vdbe_untr_1_subports:
531       - vdbe_untr_1_subports
532       - feature_vdbe_untr_x_subport
533       disk.device.read.requests.rate_vdbe_node_1:
534       - vdbe_node_1
535       - disk.device.read.requests.rate
536       host_vdbe_node_1:
537       - vdbe_node_1
538       - host
539       feature_control_int_net:
540       - control_int_net
541       - feature
542       cpu.delta_vdbe_node_1:
543       - vdbe_node_1
544       - cpu.delta
545       network.incoming.packets_vdbe_untr_1_port:
546       - vdbe_untr_1_port
547       - network.incoming.packets
548       scalable_vdbe_node_1:
549       - vdbe_node_1
550       - scalable
551       link_fabric_int_net:
552       - fabric_int_net
553       - link
554       disk.iops_vdbe_node_1:
555       - vdbe_node_1
556       - disk.iops
557       feature_vdbe_node_1:
558       - vdbe_node_1
559       - feature
560       memory.resident_vdbe_node_1:
561       - vdbe_node_1
562       - memory.resident
563       endpoint_vdbe_node_1:
564       - vdbe_node_1
565       - endpoint
566       network.outgoing.packets.rate_vdbe_untr_1_port:
567       - vdbe_untr_1_port
568       - network.outgoing.packets.rate
569       os_vdbe_node_1:
570       - vdbe_node_1
571       - os
572       network.outpoing.packets_vdbe_untr_1_port:
573       - vdbe_untr_1_port
574       - network.outpoing.packets
575       disk.read.bytes.rate_vdbe_node_1:
576       - vdbe_node_1
577       - disk.read.bytes.rate
578       disk.device.write.bytes.rate_vdbe_node_1:
579       - vdbe_node_1
580       - disk.device.write.bytes.rate
581       attachment_control_int_net:
582       - control_int_net
583       - attachment
584       cpu_vdbe_node_1:
585       - vdbe_node_1
586       - cpu
587       disk.device.write.requests.rate_vdbe_node_1:
588       - vdbe_node_1
589       - disk.device.write.requests.rate
590       disk.read.requests_vdbe_node_1:
591       - vdbe_node_1
592       - disk.read.requests
593       disk.write.bytes.rate_vdbe_node_1:
594       - vdbe_node_1
595       - disk.write.bytes.rate
596       feature_vdbe_untr_1_port:
597       - vdbe_untr_1_port
598       - feature
599       memory.usage_vdbe_node_1:
600       - vdbe_node_1
601       - memory.usage
602     requirements:
603       dependency_vdbe_untr_x_subport_vdbe_untr_1_subports:
604       - vdbe_untr_1_subports
605       - dependency_vdbe_untr_x_subport
606       dependency_vdbe_node_1:
607       - vdbe_node_1
608       - dependency
609       local_storage_vdbe_node_1:
610       - vdbe_node_1
611       - local_storage
612       dependency_vdbe_untr_1_port:
613       - vdbe_untr_1_port
614       - dependency
615       dependency_control_int_net:
616       - control_int_net
617       - dependency
618       dependency_fabric_int_net:
619       - fabric_int_net
620       - dependency
621       dependency_vdbe_untr_1_subports:
622       - vdbe_untr_1_subports
623       - dependency