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