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 / unifiedComposition / creSubstitutionServiceTemplate / NoOutParamDuplicatePortType / out / SubstitutionServiceTemplate.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: Nested_FSB1
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.nodes.heat.FSB1:
11     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
12 topology_template:
13   inputs:
14     port_FSB1_Internal_ip_requirements:
15       type: list
16       required: true
17       entry_schema:
18         type: org.openecomp.datatypes.network.IpRequirements
19     port_FSB1_Internal_subnetpoolid:
20       type: string
21       required: true
22     port_FSB2_Internal_2_subnetpoolid:
23       type: string
24       required: true
25     compute_FSB1_metadata:
26       type: list
27       required: true
28       entry_schema:
29         type: json
30     port_FSB2_Internal_2_order:
31       type: integer
32       required: true
33     vm_flavor_name:
34       type: string
35       required: true
36     port_FSB1_Internal_related_networks:
37       type: list
38       required: true
39       entry_schema:
40         type: org.openecomp.datatypes.network.RelatedNetworksAssignments
41     port_FSB1_OAM_vlan_requirements:
42       type: list
43       required: true
44       entry_schema:
45         type: org.openecomp.datatypes.network.VlanRequirements
46     port_FSB1_Internal_vlan_requirements:
47       type: list
48       required: true
49       entry_schema:
50         type: org.openecomp.datatypes.network.VlanRequirements
51     port_FSB1_Internal_network:
52       type: list
53       required: true
54       entry_schema:
55         type: string
56     port_FSB2_Internal_1_order:
57       type: integer
58       required: true
59     port_FSB2_Internal_2_ip_requirements:
60       type: list
61       required: true
62       entry_schema:
63         type: org.openecomp.datatypes.network.IpRequirements
64     port_FSB1_OAM_network:
65       type: list
66       required: true
67       entry_schema:
68         type: string
69     port_FSB2_Internal_2_related_networks:
70       type: list
71       required: true
72       entry_schema:
73         type: org.openecomp.datatypes.network.RelatedNetworksAssignments
74     port_FSB2_Internal_1_network:
75       type: list
76       required: true
77       entry_schema:
78         type: string
79     port_FSB2_Internal_2_network_role:
80       type: string
81       required: true
82     port_FSB1_OAM_network_role:
83       type: string
84       required: true
85     port_FSB2_Internal_1_network_role:
86       type: string
87       required: true
88     port_FSB2_Internal_2_network_role_tag:
89       type: string
90       required: true
91     port_FSB2_Internal_1_subnetpoolid:
92       type: string
93       required: true
94     port_FSB1_Internal_mac_address:
95       type: string
96       required: true
97     port_FSB2_Internal_2_mac_requirements:
98       type: org.openecomp.datatypes.network.MacRequirements
99       required: true
100     port_FSB1_OAM_subnetpoolid:
101       type: string
102       required: true
103     port_FSB2_Internal_1_exCP_naming:
104       type: org.openecomp.datatypes.Naming
105       required: true
106     port_FSB1_OAM_exCP_naming:
107       type: org.openecomp.datatypes.Naming
108       required: true
109     port_FSB1_OAM_ip_requirements:
110       type: list
111       required: true
112       entry_schema:
113         type: org.openecomp.datatypes.network.IpRequirements
114     port_FSB2_Internal_1_mac_address:
115       type: string
116       required: true
117     port_FSB2_Internal_2_mac_address:
118       type: string
119       required: true
120     port_FSB2_Internal_1_ip_requirements:
121       type: list
122       required: true
123       entry_schema:
124         type: org.openecomp.datatypes.network.IpRequirements
125     port_FSB2_Internal_2_vlan_requirements:
126       type: list
127       required: true
128       entry_schema:
129         type: org.openecomp.datatypes.network.VlanRequirements
130     port_FSB1_Internal_network_role_tag:
131       type: string
132       required: true
133     port_FSB1_Internal_exCP_naming:
134       type: org.openecomp.datatypes.Naming
135       required: true
136     port_FSB2_Internal_1_mac_requirements:
137       type: org.openecomp.datatypes.network.MacRequirements
138       required: true
139     port_FSB1_Internal_network_role:
140       type: string
141       required: true
142     port_FSB1_OAM_mac_requirements:
143       type: org.openecomp.datatypes.network.MacRequirements
144       required: true
145     compute_FSB1_availability_zone:
146       type: list
147       required: true
148       entry_schema:
149         type: string
150     index_value:
151       type: integer
152       description: Index value of this substitution service template runtime instance
153       required: false
154       default: 0
155       constraints:
156       - greater_or_equal: 0
157     port_FSB1_OAM_order:
158       type: integer
159       required: true
160     port_FSB2_Internal_1_vlan_requirements:
161       type: list
162       required: true
163       entry_schema:
164         type: org.openecomp.datatypes.network.VlanRequirements
165     port_FSB2_Internal_2_network:
166       type: list
167       required: true
168       entry_schema:
169         type: string
170     port_FSB2_Internal_1_network_role_tag:
171       type: string
172       required: true
173     port_FSB1_Internal_order:
174       type: integer
175       required: true
176     port_FSB2_Internal_1_related_networks:
177       type: list
178       required: true
179       entry_schema:
180         type: org.openecomp.datatypes.network.RelatedNetworksAssignments
181     port_FSB1_OAM_related_networks:
182       type: list
183       required: true
184       entry_schema:
185         type: org.openecomp.datatypes.network.RelatedNetworksAssignments
186     port_FSB1_OAM_network_role_tag:
187       type: string
188       required: true
189     port_FSB1_Internal_mac_requirements:
190       type: org.openecomp.datatypes.network.MacRequirements
191       required: true
192     compute_FSB1_name:
193       type: list
194       required: true
195       entry_schema:
196         type: string
197     port_FSB1_OAM_fixed_ips:
198       type: list
199       required: true
200       entry_schema:
201         type: org.openecomp.datatypes.heat.neutron.port.FixedIps
202     port_FSB2_Internal_2_exCP_naming:
203       type: org.openecomp.datatypes.Naming
204       required: true
205   node_templates:
206     FSB1_FSB1_Internal:
207       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
208       properties:
209         mac_requirements:
210           get_input: port_FSB1_Internal_mac_requirements
211         order:
212           get_input: port_FSB1_Internal_order
213         mac_address:
214           get_input: port_FSB1_Internal_mac_address
215         exCP_naming:
216           get_input: port_FSB1_Internal_exCP_naming
217         vlan_requirements:
218           get_input: port_FSB1_Internal_vlan_requirements
219         subinterface_indicator: false
220         ip_requirements:
221           get_input: port_FSB1_Internal_ip_requirements
222         related_networks:
223           get_input: port_FSB1_Internal_related_networks
224         network_role_tag:
225           get_input: port_FSB1_Internal_network_role_tag
226         network_role:
227           get_input: port_FSB1_Internal_network_role
228         subnetpoolid:
229           get_input: port_FSB1_Internal_subnetpoolid
230         network:
231           get_input:
232           - port_FSB1_Internal_network
233           - index_value
234       requirements:
235       - binding:
236           capability: tosca.capabilities.network.Bindable
237           node: FSB1
238           relationship: tosca.relationships.network.BindsTo
239     FSB1_FSB2_Internal_1:
240       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
241       properties:
242         mac_requirements:
243           get_input: port_FSB2_Internal_1_mac_requirements
244         order:
245           get_input: port_FSB2_Internal_1_order
246         mac_address:
247           get_input: port_FSB2_Internal_1_mac_address
248         exCP_naming:
249           get_input: port_FSB2_Internal_1_exCP_naming
250         vlan_requirements:
251           get_input: port_FSB2_Internal_1_vlan_requirements
252         subinterface_indicator: false
253         ip_requirements:
254           get_input: port_FSB2_Internal_1_ip_requirements
255         related_networks:
256           get_input: port_FSB2_Internal_1_related_networks
257         network_role_tag:
258           get_input: port_FSB2_Internal_1_network_role_tag
259         network_role:
260           get_input: port_FSB2_Internal_1_network_role
261         subnetpoolid:
262           get_input: port_FSB2_Internal_1_subnetpoolid
263         network:
264           get_input:
265           - port_FSB2_Internal_1_network
266           - index_value
267       requirements:
268       - binding:
269           capability: tosca.capabilities.network.Bindable
270           node: FSB1
271           relationship: tosca.relationships.network.BindsTo
272     FSB1_FSB2_Internal_2:
273       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
274       properties:
275         mac_requirements:
276           get_input: port_FSB2_Internal_2_mac_requirements
277         order:
278           get_input: port_FSB2_Internal_2_order
279         mac_address:
280           get_input: port_FSB2_Internal_2_mac_address
281         exCP_naming:
282           get_input: port_FSB2_Internal_2_exCP_naming
283         vlan_requirements:
284           get_input: port_FSB2_Internal_2_vlan_requirements
285         subinterface_indicator: false
286         ip_requirements:
287           get_input: port_FSB2_Internal_2_ip_requirements
288         related_networks:
289           get_input: port_FSB2_Internal_2_related_networks
290         network_role_tag:
291           get_input: port_FSB2_Internal_2_network_role_tag
292         network_role:
293           get_input: port_FSB2_Internal_2_network_role
294         subnetpoolid:
295           get_input: port_FSB2_Internal_2_subnetpoolid
296         network:
297           get_input:
298           - port_FSB2_Internal_2_network
299           - index_value
300       requirements:
301       - binding:
302           capability: tosca.capabilities.network.Bindable
303           node: FSB1
304           relationship: tosca.relationships.network.BindsTo
305     FSB1_FSB1_OAM:
306       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
307       properties:
308         mac_requirements:
309           get_input: port_FSB1_OAM_mac_requirements
310         order:
311           get_input: port_FSB1_OAM_order
312         exCP_naming:
313           get_input: port_FSB1_OAM_exCP_naming
314         vlan_requirements:
315           get_input: port_FSB1_OAM_vlan_requirements
316         subinterface_indicator: false
317         ip_requirements:
318           get_input: port_FSB1_OAM_ip_requirements
319         related_networks:
320           get_input: port_FSB1_OAM_related_networks
321         network_role_tag:
322           get_input: port_FSB1_OAM_network_role_tag
323         network_role:
324           get_input: port_FSB1_OAM_network_role
325         fixed_ips:
326           get_input:
327           - port_FSB1_OAM_fixed_ips
328           - index_value
329         subnetpoolid:
330           get_input: port_FSB1_OAM_subnetpoolid
331         network:
332           get_input:
333           - port_FSB1_OAM_network
334           - index_value
335       requirements:
336       - binding:
337           capability: tosca.capabilities.network.Bindable
338           node: FSB1
339           relationship: tosca.relationships.network.BindsTo
340     FSB1:
341       type: org.openecomp.resource.vfc.nodes.heat.FSB1
342       properties:
343         availability_zone:
344           get_input:
345           - compute_FSB1_availability_zone
346           - index_value
347         flavor:
348           get_input: vm_flavor_name
349         metadata:
350           get_input:
351           - compute_FSB1_metadata
352           - index_value
353         name:
354           get_input:
355           - compute_FSB1_name
356           - index_value
357       artifacts:
358         nimbus-ethernet-gw:
359           type: tosca.artifacts.Deployment
360           file: ../Artifacts/nimbus-ethernet-gw
361         nimbus-ethernet:
362           type: tosca.artifacts.Deployment
363           file: ../Artifacts/nimbus-ethernet
364   substitution_mappings:
365     node_type: org.openecomp.resource.abstract.nodes.FSB1
366     capabilities:
367       network.incoming.bytes.rate_FSB1_FSB1_OAM:
368       - FSB1_FSB1_OAM
369       - network.incoming.bytes.rate
370       network.outgoing.bytes_FSB1_FSB1_OAM:
371       - FSB1_FSB1_OAM
372       - network.outgoing.bytes
373       disk.capacity_FSB1:
374       - FSB1
375       - disk.capacity
376       disk.read.bytes.rate_FSB1:
377       - FSB1
378       - disk.read.bytes.rate
379       disk.device.latency_FSB1:
380       - FSB1
381       - disk.device.latency
382       binding_FSB1_FSB2_Internal_2:
383       - FSB1_FSB2_Internal_2
384       - binding
385       binding_FSB1_FSB2_Internal_1:
386       - FSB1_FSB2_Internal_1
387       - binding
388       disk.allocation_FSB1:
389       - FSB1
390       - disk.allocation
391       disk.read.bytes_FSB1:
392       - FSB1
393       - disk.read.bytes
394       disk.device.capacity_FSB1:
395       - FSB1
396       - disk.device.capacity
397       cpu_util_FSB1:
398       - FSB1
399       - cpu_util
400       disk.device.write.requests.rate_FSB1:
401       - FSB1
402       - disk.device.write.requests.rate
403       network.outgoing.bytes.rate_FSB1_FSB1_OAM:
404       - FSB1_FSB1_OAM
405       - network.outgoing.bytes.rate
406       disk.root.size_FSB1:
407       - FSB1
408       - disk.root.size
409       network.incoming.packets.rate_FSB1_FSB2_Internal_2:
410       - FSB1_FSB2_Internal_2
411       - network.incoming.packets.rate
412       network.incoming.packets.rate_FSB1_FSB2_Internal_1:
413       - FSB1_FSB2_Internal_1
414       - network.incoming.packets.rate
415       feature_FSB1:
416       - FSB1
417       - feature
418       network.incoming.packets.rate_FSB1_FSB1_Internal:
419       - FSB1_FSB1_Internal
420       - network.incoming.packets.rate
421       network.outgoing.bytes_FSB1_FSB1_Internal:
422       - FSB1_FSB1_Internal
423       - network.outgoing.bytes
424       network.incoming.packets_FSB1_FSB2_Internal_1:
425       - FSB1_FSB2_Internal_1
426       - network.incoming.packets
427       network.incoming.packets_FSB1_FSB2_Internal_2:
428       - FSB1_FSB2_Internal_2
429       - network.incoming.packets
430       forwarder_FSB1_FSB1_OAM:
431       - FSB1_FSB1_OAM
432       - forwarder
433       memory.resident_FSB1:
434       - FSB1
435       - memory.resident
436       network.incoming.packets.rate_FSB1_FSB1_OAM:
437       - FSB1_FSB1_OAM
438       - network.incoming.packets.rate
439       forwarder_FSB1_FSB1_Internal:
440       - FSB1_FSB1_Internal
441       - forwarder
442       cpu_FSB1:
443       - FSB1
444       - cpu
445       disk.write.requests.rate_FSB1:
446       - FSB1
447       - disk.write.requests.rate
448       feature_FSB1_FSB1_OAM:
449       - FSB1_FSB1_OAM
450       - feature
451       instance_FSB1:
452       - FSB1
453       - instance
454       disk.device.read.bytes.rate_FSB1:
455       - FSB1
456       - disk.device.read.bytes.rate
457       network.outpoing.packets_FSB1_FSB2_Internal_2:
458       - FSB1_FSB2_Internal_2
459       - network.outpoing.packets
460       network.outgoing.bytes.rate_FSB1_FSB2_Internal_1:
461       - FSB1_FSB2_Internal_1
462       - network.outgoing.bytes.rate
463       network.outgoing.bytes.rate_FSB1_FSB2_Internal_2:
464       - FSB1_FSB2_Internal_2
465       - network.outgoing.bytes.rate
466       network.outgoing.bytes_FSB1_FSB2_Internal_1:
467       - FSB1_FSB2_Internal_1
468       - network.outgoing.bytes
469       network.outgoing.bytes_FSB1_FSB2_Internal_2:
470       - FSB1_FSB2_Internal_2
471       - network.outgoing.bytes
472       cpu.delta_FSB1:
473       - FSB1
474       - cpu.delta
475       network.outpoing.packets_FSB1_FSB2_Internal_1:
476       - FSB1_FSB2_Internal_1
477       - network.outpoing.packets
478       disk.write.bytes_FSB1:
479       - FSB1
480       - disk.write.bytes
481       binding_FSB1_FSB1_Internal:
482       - FSB1_FSB1_Internal
483       - binding
484       disk.device.read.requests.rate_FSB1:
485       - FSB1
486       - disk.device.read.requests.rate
487       feature_FSB1_FSB1_Internal:
488       - FSB1_FSB1_Internal
489       - feature
490       disk.device.read.requests_FSB1:
491       - FSB1
492       - disk.device.read.requests
493       disk.ephemeral.size_FSB1:
494       - FSB1
495       - disk.ephemeral.size
496       binding_FSB1:
497       - FSB1
498       - binding
499       disk.device.write.bytes_FSB1:
500       - FSB1
501       - disk.device.write.bytes
502       network.outgoing.packets.rate_FSB1_FSB2_Internal_1:
503       - FSB1_FSB2_Internal_1
504       - network.outgoing.packets.rate
505       network.outgoing.packets.rate_FSB1_FSB2_Internal_2:
506       - FSB1_FSB2_Internal_2
507       - network.outgoing.packets.rate
508       network.outgoing.packets.rate_FSB1_FSB1_OAM:
509       - FSB1_FSB1_OAM
510       - network.outgoing.packets.rate
511       binding_FSB1_FSB1_OAM:
512       - FSB1_FSB1_OAM
513       - binding
514       attachment_FSB1_FSB1_OAM:
515       - FSB1_FSB1_OAM
516       - attachment
517       network.incoming.packets_FSB1_FSB1_Internal:
518       - FSB1_FSB1_Internal
519       - network.incoming.packets
520       attachment_FSB1_FSB1_Internal:
521       - FSB1_FSB1_Internal
522       - attachment
523       network.incoming.bytes_FSB1_FSB1_OAM:
524       - FSB1_FSB1_OAM
525       - network.incoming.bytes
526       memory_FSB1:
527       - FSB1
528       - memory
529       network.incoming.packets_FSB1_FSB1_OAM:
530       - FSB1_FSB1_OAM
531       - network.incoming.packets
532       network.outpoing.packets_FSB1_FSB1_Internal:
533       - FSB1_FSB1_Internal
534       - network.outpoing.packets
535       disk.device.read.bytes_FSB1:
536       - FSB1
537       - disk.device.read.bytes
538       disk.device.usage_FSB1:
539       - FSB1
540       - disk.device.usage
541       disk.write.bytes.rate_FSB1:
542       - FSB1
543       - disk.write.bytes.rate
544       scalable_FSB1:
545       - FSB1
546       - scalable
547       disk.usage_FSB1:
548       - FSB1
549       - disk.usage
550       network.outpoing.packets_FSB1_FSB1_OAM:
551       - FSB1_FSB1_OAM
552       - network.outpoing.packets
553       network.incoming.bytes_FSB1_FSB2_Internal_1:
554       - FSB1_FSB2_Internal_1
555       - network.incoming.bytes
556       network.incoming.bytes_FSB1_FSB2_Internal_2:
557       - FSB1_FSB2_Internal_2
558       - network.incoming.bytes
559       host_FSB1:
560       - FSB1
561       - host
562       disk.device.allocation_FSB1:
563       - FSB1
564       - disk.device.allocation
565       os_FSB1:
566       - FSB1
567       - os
568       vcpus_FSB1:
569       - FSB1
570       - vcpus
571       disk.write.requests_FSB1:
572       - FSB1
573       - disk.write.requests
574       network.incoming.bytes_FSB1_FSB1_Internal:
575       - FSB1_FSB1_Internal
576       - network.incoming.bytes
577       disk.device.write.bytes.rate_FSB1:
578       - FSB1
579       - disk.device.write.bytes.rate
580       network.outgoing.bytes.rate_FSB1_FSB1_Internal:
581       - FSB1_FSB1_Internal
582       - network.outgoing.bytes.rate
583       endpoint_FSB1:
584       - FSB1
585       - endpoint
586       network.outgoing.packets.rate_FSB1_FSB1_Internal:
587       - FSB1_FSB1_Internal
588       - network.outgoing.packets.rate
589       network.incoming.bytes.rate_FSB1_FSB2_Internal_2:
590       - FSB1_FSB2_Internal_2
591       - network.incoming.bytes.rate
592       network.incoming.bytes.rate_FSB1_FSB2_Internal_1:
593       - FSB1_FSB2_Internal_1
594       - network.incoming.bytes.rate
595       network.incoming.bytes.rate_FSB1_FSB1_Internal:
596       - FSB1_FSB1_Internal
597       - network.incoming.bytes.rate
598       disk.latency_FSB1:
599       - FSB1
600       - disk.latency
601       memory.usage_FSB1:
602       - FSB1
603       - memory.usage
604       feature_FSB1_FSB2_Internal_2:
605       - FSB1_FSB2_Internal_2
606       - feature
607       disk.read.requests_FSB1:
608       - FSB1
609       - disk.read.requests
610       disk.device.write.requests_FSB1:
611       - FSB1
612       - disk.device.write.requests
613       attachment_FSB1_FSB2_Internal_1:
614       - FSB1_FSB2_Internal_1
615       - attachment
616       forwarder_FSB1_FSB2_Internal_2:
617       - FSB1_FSB2_Internal_2
618       - forwarder
619       feature_FSB1_FSB2_Internal_1:
620       - FSB1_FSB2_Internal_1
621       - feature
622       attachment_FSB1_FSB2_Internal_2:
623       - FSB1_FSB2_Internal_2
624       - attachment
625       disk.iops_FSB1:
626       - FSB1
627       - disk.iops
628       forwarder_FSB1_FSB2_Internal_1:
629       - FSB1_FSB2_Internal_1
630       - forwarder
631       disk.device.iops_FSB1:
632       - FSB1
633       - disk.device.iops
634     requirements:
635       link_FSB1_FSB2_Internal_2:
636       - FSB1_FSB2_Internal_2
637       - link
638       link_FSB1_FSB1_OAM:
639       - FSB1_FSB1_OAM
640       - link
641       dependency_FSB1_FSB1_OAM:
642       - FSB1_FSB1_OAM
643       - dependency
644       dependency_FSB1:
645       - FSB1
646       - dependency
647       link_FSB1_FSB2_Internal_1:
648       - FSB1_FSB2_Internal_1
649       - link
650       dependency_FSB1_FSB1_Internal:
651       - FSB1_FSB1_Internal
652       - dependency
653       link_FSB1_FSB1_Internal:
654       - FSB1_FSB1_Internal
655       - link
656       local_storage_FSB1:
657       - FSB1
658       - local_storage
659       dependency_FSB1_FSB2_Internal_2:
660       - FSB1_FSB2_Internal_2
661       - dependency
662       dependency_FSB1_FSB2_Internal_1:
663       - FSB1_FSB2_Internal_1
664       - dependency