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