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 / subInterfaceNodesConnectedOut / 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 inst
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     port_vdbe_untr_1_port_subnetpoolid:
170       type: string
171       required: true
172     vdbe_hw_untr_mac_1:
173       hidden: false
174       immutable: false
175       type: string
176       description: Secondary MAC address of the secondary vDBE VM on the VAN untrusted network
177     untrusted_net_name:
178       hidden: false
179       immutable: false
180       type: string
181       description: Name of public untrusted network into which this vDBE HA cluster is deployed
182     port_vdbe_untr_1_port_network_role_tag:
183       type: string
184       required: true
185     vdbe_device_name:
186       hidden: false
187       immutable: false
188       type: string
189       description: VDBE device Name for this vdbe VNF
190     port_vdbe_untr_1_port_vlan_requirements:
191       type: list
192       required: true
193       entry_schema:
194         type: org.openecomp.datatypes.network.VlanRequirements
195     vdbe_aap_untrusted_ip_prefix:
196       hidden: false
197       immutable: false
198       type: string
199       description: ip prefix for primary vDBE VM on the VAN untrusted network
200   node_templates:
201     vdbe_node_1:
202       type: org.openecomp.resource.vfc.compute.nodes.heat.vdbe
203       properties:
204         flavor:
205           get_input: vdbe_flavor_name
206         availability_zone:
207           get_input: availability_zone_1
208         image:
209           get_input: vdbe_image_name
210         metadata:
211           vf_module_id:
212             get_input: vf_module_id
213           vnf_id:
214             get_input: vnf_id
215           vnf_name:
216             get_input: vnf_name
217         name:
218           get_input: vdbe_name_1
219     vdbe_untr_1_port:
220       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
221       properties:
222         subnetpoolid:
223           get_input: port_vdbe_untr_1_port_subnetpoolid
224         related_networks:
225           get_input: port_vdbe_untr_1_port_related_networks
226         ip_requirements:
227           get_input: port_vdbe_untr_1_port_ip_requirements
228         network_role:
229           get_input: port_vdbe_untr_1_port_network_role
230         mac_requirements:
231           get_input: port_vdbe_untr_1_port_mac_requirements
232         subinterface_indicator: true
233         name:
234           str_replace:
235             template: VM_NAMEDBE001p1n004
236             params:
237               DBE:
238                 get_input: vdbe_device_name
239               VM_NAME:
240                 get_input: vdbe_name_1
241         exCP_naming:
242           get_input: port_vdbe_untr_1_port_exCP_naming
243         virtual_network_refs:
244         - control_int_net
245         vlan_requirements:
246           get_input: port_vdbe_untr_1_port_vlan_requirements
247         virtual_machine_interface_allowed_address_pairs:
248           allowed_address_pair:
249           - address_mode:
250               get_input: aap_address_mode
251             ip:
252               ip_prefix:
253                 get_input: vdbe_aap_untrusted_ip_prefix
254               ip_prefix_len:
255                 get_input: vdbe_aap_untrusted_ip_prefix_len
256             mac:
257               get_input: vdbe_untrusted_vmac_address
258           - address_mode:
259               get_input: aap_address_mode
260             ip:
261               ip_prefix:
262                 get_input: vdbe_aap_sec_untrusted_ip_prefix
263               ip_prefix_len:
264                 get_input: vdbe_aap_sec_untrusted_ip_prefix_len
265             mac:
266               get_input: vdbe_hw_untr_mac_1
267           - address_mode:
268               get_input: aap_address_mode
269             ip:
270               ip_prefix:
271                 get_input: vdbe_aap_untrusted_v6_ip_prefix
272               ip_prefix_len:
273                 get_input: vdbe_aap_untrusted_v6_ip_prefix_len
274             mac:
275               get_input: vdbe_untrusted_vmac_address
276         network_role_tag:
277           get_input: port_vdbe_untr_1_port_network_role_tag
278         virtual_machine_interface_mac_addresses:
279         - get_input: vdbe_hw_untr_mac_1
280         order:
281           get_input: port_vdbe_untr_1_port_order
282       requirements:
283       - link:
284           capability: tosca.capabilities.network.Linkable
285           node: control_int_net
286           relationship: tosca.relationships.network.LinksTo
287       - binding:
288           capability: tosca.capabilities.network.Bindable
289           node: vdbe_node_1
290           relationship: tosca.relationships.network.BindsTo
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_untr_1_port
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_untr_x_subport:
342           capability: tosca.capabilities.network.Linkable
343           node: control_int_net
344           relationship: tosca.relationships.network.LinksTo
345       - binding_vdbe_untr_x_subport:
346           capability: tosca.capabilities.network.Bindable
347           node: vdbe_untr_1_port
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_node_1
367       - vdbe_untr_1_port
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       network.outgoing.bytes.rate_vdbe_untr_1_port:
380       - vdbe_untr_1_port
381       - network.outgoing.bytes.rate
382       instance_vdbe_node_1:
383       - vdbe_node_1
384       - instance
385       forwarder_vdbe_untr_1_port:
386       - vdbe_untr_1_port
387       - forwarder
388       disk.device.read.requests_vdbe_node_1:
389       - vdbe_node_1
390       - disk.device.read.requests
391       disk.device.usage_vdbe_node_1:
392       - vdbe_node_1
393       - disk.device.usage
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       network.incoming.packets.rate_vdbe_untr_1_port:
410       - vdbe_untr_1_port
411       - network.incoming.packets.rate
412       disk.device.read.bytes_vdbe_node_1:
413       - vdbe_node_1
414       - disk.device.read.bytes
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       network.incoming.bytes.rate_vdbe_untr_1_port:
437       - vdbe_untr_1_port
438       - network.incoming.bytes.rate
439       vcpus_vdbe_node_1:
440       - vdbe_node_1
441       - vcpus
442       binding_vdbe_untr_1_port:
443       - vdbe_untr_1_port
444       - binding
445       disk.ephemeral.size_vdbe_node_1:
446       - vdbe_node_1
447       - disk.ephemeral.size
448       network.outgoing.bytes_vdbe_untr_1_port:
449       - vdbe_untr_1_port
450       - network.outgoing.bytes
451       feature_vdbe_untr_1_subports:
452       - vdbe_untr_1_subports
453       - feature
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       link_control_int_net:
464       - control_int_net
465       - link
466       network.incoming.bytes_vdbe_untr_1_port:
467       - vdbe_untr_1_port
468       - network.incoming.bytes
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       feature_vdbe_untr_x_subport_vdbe_untr_1_subports:
479       - vdbe_untr_1_subports
480       - feature_vdbe_untr_x_subport
481       disk.device.read.requests.rate_vdbe_node_1:
482       - vdbe_node_1
483       - disk.device.read.requests.rate
484       host_vdbe_node_1:
485       - vdbe_node_1
486       - host
487       feature_control_int_net:
488       - control_int_net
489       - feature
490       cpu.delta_vdbe_node_1:
491       - vdbe_node_1
492       - cpu.delta
493       network.incoming.packets_vdbe_untr_1_port:
494       - vdbe_untr_1_port
495       - network.incoming.packets
496       scalable_vdbe_node_1:
497       - vdbe_node_1
498       - scalable
499       disk.iops_vdbe_node_1:
500       - vdbe_node_1
501       - disk.iops
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.packets.rate_vdbe_untr_1_port:
512       - vdbe_untr_1_port
513       - network.outgoing.packets.rate
514       os_vdbe_node_1:
515       - vdbe_node_1
516       - os
517       network.outpoing.packets_vdbe_untr_1_port:
518       - vdbe_untr_1_port
519       - network.outpoing.packets
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       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       feature_vdbe_untr_1_port:
542       - vdbe_untr_1_port
543       - feature
544       memory.usage_vdbe_node_1:
545       - vdbe_node_1
546       - memory.usage
547     requirements:
548       dependency_vdbe_untr_x_subport_vdbe_untr_1_subports:
549       - vdbe_untr_1_subports
550       - dependency_vdbe_untr_x_subport
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_untr_1_port:
558       - vdbe_untr_1_port
559       - dependency
560       dependency_control_int_net:
561       - control_int_net
562       - dependency
563       dependency_vdbe_untr_1_subports:
564       - vdbe_untr_1_subports
565       - dependency