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