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 / updNodesGetAttrInFromInnerNodes / noConsolidation / 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_mac_address:
15       type: string
16       required: true
17     port_FSB1_Internal_ip_requirements:
18       type: list
19       required: true
20       entry_schema:
21         type: org.openecomp.datatypes.network.IpRequirements
22     port_FSB2_Internal_related_networks:
23       type: list
24       required: true
25       entry_schema:
26         type: org.openecomp.datatypes.network.RelatedNetworksAssignments
27     port_FSB1_Internal_subnetpoolid:
28       type: string
29       required: true
30     port_FSB1_OAM_subnetpoolid:
31       type: string
32       required: true
33     port_FSB2_Internal_vlan_requirements:
34       type: list
35       required: true
36       entry_schema:
37         type: org.openecomp.datatypes.network.VlanRequirements
38     port_FSB2_Internal_order:
39       type: integer
40       required: true
41     port_FSB1_OAM_exCP_naming:
42       type: org.openecomp.datatypes.Naming
43       required: true
44     port_FSB1_OAM_ip_requirements:
45       type: list
46       required: true
47       entry_schema:
48         type: org.openecomp.datatypes.network.IpRequirements
49     port_FSB2_Internal_ip_requirements:
50       type: list
51       required: true
52       entry_schema:
53         type: org.openecomp.datatypes.network.IpRequirements
54     vm_flavor_name:
55       type: string
56       required: true
57     port_FSB2_Internal_network_role:
58       type: string
59       required: true
60     port_FSB1_Internal_related_networks:
61       type: list
62       required: true
63       entry_schema:
64         type: org.openecomp.datatypes.network.RelatedNetworksAssignments
65     port_FSB1_Internal_network_role_tag:
66       type: string
67       required: true
68     port_FSB1_OAM_vlan_requirements:
69       type: list
70       required: true
71       entry_schema:
72         type: org.openecomp.datatypes.network.VlanRequirements
73     port_FSB1_Internal_vlan_requirements:
74       type: list
75       required: true
76       entry_schema:
77         type: org.openecomp.datatypes.network.VlanRequirements
78     port_FSB2_Internal_subnetpoolid:
79       type: string
80       required: true
81     port_FSB1_Internal_exCP_naming:
82       type: org.openecomp.datatypes.Naming
83       required: true
84     port_FSB1_Internal_network_role:
85       type: string
86       required: true
87     port_FSB1_OAM_mac_requirements:
88       type: org.openecomp.datatypes.network.MacRequirements
89       required: true
90     port_FSB1_Internal_network:
91       type: list
92       required: true
93       entry_schema:
94         type: string
95     index_value:
96       type: integer
97       description: Index value of this substitution service template runtime instance
98       required: false
99       default: 0
100       constraints:
101       - greater_or_equal: 0
102     port_FSB1_OAM_order:
103       type: integer
104       required: true
105     port_FSB2_Internal_mac_requirements:
106       type: org.openecomp.datatypes.network.MacRequirements
107       required: true
108     port_FSB2_Internal_mac_address:
109       type: string
110       required: true
111     port_FSB1_OAM_network:
112       type: list
113       required: true
114       entry_schema:
115         type: string
116     port_FSB2_Internal_exCP_naming:
117       type: org.openecomp.datatypes.Naming
118       required: true
119     port_FSB1_Internal_order:
120       type: integer
121       required: true
122     port_FSB1_OAM_network_role:
123       type: string
124       required: true
125     port_FSB2_Internal_network:
126       type: list
127       required: true
128       entry_schema:
129         type: string
130     port_FSB1_OAM_related_networks:
131       type: list
132       required: true
133       entry_schema:
134         type: org.openecomp.datatypes.network.RelatedNetworksAssignments
135     port_FSB1_OAM_network_role_tag:
136       type: string
137       required: true
138     port_FSB1_Internal_mac_requirements:
139       type: org.openecomp.datatypes.network.MacRequirements
140       required: true
141     port_FSB1_OAM_fixed_ips:
142       type: list
143       required: true
144       entry_schema:
145         type: org.openecomp.datatypes.heat.neutron.port.FixedIps
146     port_FSB2_Internal_network_role_tag:
147       type: string
148       required: true
149   node_templates:
150     FSB1_FSB1_Internal:
151       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
152       properties:
153         mac_requirements:
154           get_input: port_FSB1_Internal_mac_requirements
155         order:
156           get_input: port_FSB1_Internal_order
157         mac_address:
158           get_input: port_FSB1_Internal_mac_address
159         exCP_naming:
160           get_input: port_FSB1_Internal_exCP_naming
161         vlan_requirements:
162           get_input: port_FSB1_Internal_vlan_requirements
163         subinterface_indicator: false
164         ip_requirements:
165           get_input: port_FSB1_Internal_ip_requirements
166         related_networks:
167           get_input: port_FSB1_Internal_related_networks
168         network_role_tag:
169           get_input: port_FSB1_Internal_network_role_tag
170         network_role:
171           get_input: port_FSB1_Internal_network_role
172         subnetpoolid:
173           get_input: port_FSB1_Internal_subnetpoolid
174         network:
175           get_input:
176           - port_FSB1_Internal_network
177           - index_value
178       requirements:
179       - binding:
180           capability: tosca.capabilities.network.Bindable
181           node: FSB1
182           relationship: tosca.relationships.network.BindsTo
183     FSB1_FSB2_Internal:
184       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
185       properties:
186         mac_requirements:
187           get_input: port_FSB2_Internal_mac_requirements
188         order:
189           get_input: port_FSB2_Internal_order
190         mac_address:
191           get_input: port_FSB2_Internal_mac_address
192         exCP_naming:
193           get_input: port_FSB2_Internal_exCP_naming
194         vlan_requirements:
195           get_input: port_FSB2_Internal_vlan_requirements
196         subinterface_indicator: false
197         ip_requirements:
198           get_input: port_FSB2_Internal_ip_requirements
199         related_networks:
200           get_input: port_FSB2_Internal_related_networks
201         network_role_tag:
202           get_input: port_FSB2_Internal_network_role_tag
203         network_role:
204           get_input: port_FSB2_Internal_network_role
205         subnetpoolid:
206           get_input: port_FSB2_Internal_subnetpoolid
207         network:
208           get_input:
209           - port_FSB2_Internal_network
210           - index_value
211       requirements:
212       - binding:
213           capability: tosca.capabilities.network.Bindable
214           node: FSB1
215           relationship: tosca.relationships.network.BindsTo
216     FSB1_FSB1_OAM:
217       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
218       properties:
219         mac_requirements:
220           get_input: port_FSB1_OAM_mac_requirements
221         order:
222           get_input: port_FSB1_OAM_order
223         exCP_naming:
224           get_input: port_FSB1_OAM_exCP_naming
225         vlan_requirements:
226           get_input: port_FSB1_OAM_vlan_requirements
227         subinterface_indicator: false
228         ip_requirements:
229           get_input: port_FSB1_OAM_ip_requirements
230         related_networks:
231           get_input: port_FSB1_OAM_related_networks
232         network_role_tag:
233           get_input: port_FSB1_OAM_network_role_tag
234         network_role:
235           get_input: port_FSB1_OAM_network_role
236         fixed_ips:
237           get_input:
238           - port_FSB1_OAM_fixed_ips
239           - index_value
240         subnetpoolid:
241           get_input: port_FSB1_OAM_subnetpoolid
242         network:
243           get_input:
244           - port_FSB1_OAM_network
245           - index_value
246       requirements:
247       - binding:
248           capability: tosca.capabilities.network.Bindable
249           node: FSB1
250           relationship: tosca.relationships.network.BindsTo
251     FSB1:
252       type: org.openecomp.resource.vfc.nodes.heat.FSB1
253       properties:
254         availability_zone:
255           get_attribute:
256           - FSB1_FSB1_Internal
257           - myAttr
258           - get_attribute:
259             - FSB1_FSB1_Internal
260             - index
261         flavor:
262           get_input: vm_flavor_name
263       artifacts:
264         nimbus-ethernet-gw:
265           type: tosca.artifacts.Deployment
266           file: ../Artifacts/nimbus-ethernet-gw
267         nimbus-ethernet:
268           type: tosca.artifacts.Deployment
269           file: ../Artifacts/nimbus-ethernet
270   outputs:
271     FSB1_FSB2_Internal_tenant_id:
272       type: string
273       value:
274         get_attribute:
275         - FSB1_FSB2_Internal
276         - tenant_id
277     FSB1_FSB1_Internal_network_id:
278       type: string
279       value:
280         get_attribute:
281         - FSB1_FSB1_Internal
282         - network_id
283     FSB1_accessIPv6:
284       type: string
285       value:
286         get_attribute:
287         - FSB1
288         - accessIPv6
289     FSB1_FSB1_OAM_status:
290       type: string
291       value:
292         get_attribute:
293         - FSB1_FSB1_OAM
294         - status
295     FSB1_addresses:
296       type: map
297       value:
298         get_attribute:
299         - FSB1
300         - addresses
301       entry_schema:
302         type: org.openecomp.datatypes.heat.novaServer.network.AddressInfo
303     FSB1_FSB2_Internal_network_id:
304       type: string
305       value:
306         get_attribute:
307         - FSB1_FSB2_Internal
308         - network_id
309     FSB1_FSB1_Internal_device_owner:
310       type: string
311       value:
312         get_attribute:
313         - FSB1_FSB1_Internal
314         - device_owner
315   substitution_mappings:
316     node_type: org.openecomp.resource.abstract.nodes.FSB1
317     capabilities:
318       network.incoming.bytes.rate_FSB1_FSB1_OAM:
319       - FSB1_FSB1_OAM
320       - network.incoming.bytes.rate
321       network.outgoing.bytes_FSB1_FSB1_OAM:
322       - FSB1_FSB1_OAM
323       - network.outgoing.bytes
324       binding_FSB1_FSB2_Internal:
325       - FSB1_FSB2_Internal
326       - binding
327       disk.capacity_FSB1:
328       - FSB1
329       - disk.capacity
330       disk.read.bytes.rate_FSB1:
331       - FSB1
332       - disk.read.bytes.rate
333       disk.device.latency_FSB1:
334       - FSB1
335       - disk.device.latency
336       disk.allocation_FSB1:
337       - FSB1
338       - disk.allocation
339       disk.read.bytes_FSB1:
340       - FSB1
341       - disk.read.bytes
342       disk.device.capacity_FSB1:
343       - FSB1
344       - disk.device.capacity
345       cpu_util_FSB1:
346       - FSB1
347       - cpu_util
348       disk.device.write.requests.rate_FSB1:
349       - FSB1
350       - disk.device.write.requests.rate
351       network.outgoing.bytes.rate_FSB1_FSB1_OAM:
352       - FSB1_FSB1_OAM
353       - network.outgoing.bytes.rate
354       disk.root.size_FSB1:
355       - FSB1
356       - disk.root.size
357       forwarder_FSB1_FSB2_Internal:
358       - FSB1_FSB2_Internal
359       - forwarder
360       feature_FSB1:
361       - FSB1
362       - feature
363       network.incoming.packets.rate_FSB1_FSB1_Internal:
364       - FSB1_FSB1_Internal
365       - network.incoming.packets.rate
366       network.outgoing.bytes_FSB1_FSB1_Internal:
367       - FSB1_FSB1_Internal
368       - network.outgoing.bytes
369       feature_FSB1_FSB2_Internal:
370       - FSB1_FSB2_Internal
371       - feature
372       attachment_FSB1_FSB2_Internal:
373       - FSB1_FSB2_Internal
374       - attachment
375       network.incoming.packets_FSB1_FSB2_Internal:
376       - FSB1_FSB2_Internal
377       - network.incoming.packets
378       forwarder_FSB1_FSB1_OAM:
379       - FSB1_FSB1_OAM
380       - forwarder
381       memory.resident_FSB1:
382       - FSB1
383       - memory.resident
384       network.incoming.packets.rate_FSB1_FSB1_OAM:
385       - FSB1_FSB1_OAM
386       - network.incoming.packets.rate
387       forwarder_FSB1_FSB1_Internal:
388       - FSB1_FSB1_Internal
389       - forwarder
390       network.incoming.packets.rate_FSB1_FSB2_Internal:
391       - FSB1_FSB2_Internal
392       - network.incoming.packets.rate
393       cpu_FSB1:
394       - FSB1
395       - cpu
396       disk.write.requests.rate_FSB1:
397       - FSB1
398       - disk.write.requests.rate
399       feature_FSB1_FSB1_OAM:
400       - FSB1_FSB1_OAM
401       - feature
402       instance_FSB1:
403       - FSB1
404       - instance
405       disk.device.read.bytes.rate_FSB1:
406       - FSB1
407       - disk.device.read.bytes.rate
408       cpu.delta_FSB1:
409       - FSB1
410       - cpu.delta
411       disk.write.bytes_FSB1:
412       - FSB1
413       - disk.write.bytes
414       binding_FSB1_FSB1_Internal:
415       - FSB1_FSB1_Internal
416       - binding
417       disk.device.read.requests.rate_FSB1:
418       - FSB1
419       - disk.device.read.requests.rate
420       feature_FSB1_FSB1_Internal:
421       - FSB1_FSB1_Internal
422       - feature
423       disk.device.read.requests_FSB1:
424       - FSB1
425       - disk.device.read.requests
426       disk.ephemeral.size_FSB1:
427       - FSB1
428       - disk.ephemeral.size
429       binding_FSB1:
430       - FSB1
431       - binding
432       disk.device.write.bytes_FSB1:
433       - FSB1
434       - disk.device.write.bytes
435       network.outgoing.packets.rate_FSB1_FSB1_OAM:
436       - FSB1_FSB1_OAM
437       - network.outgoing.packets.rate
438       binding_FSB1_FSB1_OAM:
439       - FSB1_FSB1_OAM
440       - binding
441       attachment_FSB1_FSB1_OAM:
442       - FSB1_FSB1_OAM
443       - attachment
444       network.incoming.packets_FSB1_FSB1_Internal:
445       - FSB1_FSB1_Internal
446       - network.incoming.packets
447       attachment_FSB1_FSB1_Internal:
448       - FSB1_FSB1_Internal
449       - attachment
450       network.incoming.bytes_FSB1_FSB1_OAM:
451       - FSB1_FSB1_OAM
452       - network.incoming.bytes
453       memory_FSB1:
454       - FSB1
455       - memory
456       network.incoming.packets_FSB1_FSB1_OAM:
457       - FSB1_FSB1_OAM
458       - network.incoming.packets
459       network.outpoing.packets_FSB1_FSB1_Internal:
460       - FSB1_FSB1_Internal
461       - network.outpoing.packets
462       network.outgoing.bytes.rate_FSB1_FSB2_Internal:
463       - FSB1_FSB2_Internal
464       - network.outgoing.bytes.rate
465       disk.device.read.bytes_FSB1:
466       - FSB1
467       - disk.device.read.bytes
468       disk.device.usage_FSB1:
469       - FSB1
470       - disk.device.usage
471       disk.write.bytes.rate_FSB1:
472       - FSB1
473       - disk.write.bytes.rate
474       scalable_FSB1:
475       - FSB1
476       - scalable
477       disk.usage_FSB1:
478       - FSB1
479       - disk.usage
480       network.outpoing.packets_FSB1_FSB1_OAM:
481       - FSB1_FSB1_OAM
482       - network.outpoing.packets
483       host_FSB1:
484       - FSB1
485       - host
486       disk.device.allocation_FSB1:
487       - FSB1
488       - disk.device.allocation
489       os_FSB1:
490       - FSB1
491       - os
492       vcpus_FSB1:
493       - FSB1
494       - vcpus
495       disk.write.requests_FSB1:
496       - FSB1
497       - disk.write.requests
498       network.outgoing.bytes_FSB1_FSB2_Internal:
499       - FSB1_FSB2_Internal
500       - network.outgoing.bytes
501       network.incoming.bytes_FSB1_FSB1_Internal:
502       - FSB1_FSB1_Internal
503       - network.incoming.bytes
504       network.outpoing.packets_FSB1_FSB2_Internal:
505       - FSB1_FSB2_Internal
506       - network.outpoing.packets
507       disk.device.write.bytes.rate_FSB1:
508       - FSB1
509       - disk.device.write.bytes.rate
510       network.outgoing.bytes.rate_FSB1_FSB1_Internal:
511       - FSB1_FSB1_Internal
512       - network.outgoing.bytes.rate
513       endpoint_FSB1:
514       - FSB1
515       - endpoint
516       network.outgoing.packets.rate_FSB1_FSB1_Internal:
517       - FSB1_FSB1_Internal
518       - network.outgoing.packets.rate
519       network.incoming.bytes.rate_FSB1_FSB1_Internal:
520       - FSB1_FSB1_Internal
521       - network.incoming.bytes.rate
522       disk.latency_FSB1:
523       - FSB1
524       - disk.latency
525       memory.usage_FSB1:
526       - FSB1
527       - memory.usage
528       disk.read.requests_FSB1:
529       - FSB1
530       - disk.read.requests
531       disk.device.write.requests_FSB1:
532       - FSB1
533       - disk.device.write.requests
534       network.incoming.bytes.rate_FSB1_FSB2_Internal:
535       - FSB1_FSB2_Internal
536       - network.incoming.bytes.rate
537       network.incoming.bytes_FSB1_FSB2_Internal:
538       - FSB1_FSB2_Internal
539       - network.incoming.bytes
540       disk.iops_FSB1:
541       - FSB1
542       - disk.iops
543       network.outgoing.packets.rate_FSB1_FSB2_Internal:
544       - FSB1_FSB2_Internal
545       - network.outgoing.packets.rate
546       disk.device.iops_FSB1:
547       - FSB1
548       - disk.device.iops
549     requirements:
550       link_FSB1_FSB1_OAM:
551       - FSB1_FSB1_OAM
552       - link
553       dependency_FSB1_FSB1_OAM:
554       - FSB1_FSB1_OAM
555       - dependency
556       dependency_FSB1:
557       - FSB1
558       - dependency
559       link_FSB1_FSB2_Internal:
560       - FSB1_FSB2_Internal
561       - link
562       dependency_FSB1_FSB1_Internal:
563       - FSB1_FSB1_Internal
564       - dependency
565       link_FSB1_FSB1_Internal:
566       - FSB1_FSB1_Internal
567       - link
568       local_storage_FSB1:
569       - FSB1
570       - local_storage
571       dependency_FSB1_FSB2_Internal:
572       - FSB1_FSB2_Internal
573       - dependency