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 / fulltest / nestedOtherScenarios / multiLevel / twoNestedLevelsWithAllPatternsAndConnectivities / out / Nested_BE_1c1ServiceTemplate.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: Nested_BE_1c1
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.compute.nodes.heat.BE_1c1:
11     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
12 topology_template:
13   inputs:
14     port_BE_port_exCP_naming:
15       type: org.openecomp.datatypes.Naming
16       required: true
17     port_BE_port_network_role:
18       type: string
19       required: true
20     index_value:
21       type: integer
22       description: Index value of this substitution service template runtime instance
23       required: false
24       default: 0
25       constraints:
26       - greater_or_equal: 0
27     port_BE_port_order:
28       type: integer
29       required: true
30     port_BE_port_subnetpoolid:
31       type: string
32       required: true
33     vm_flavor_name:
34       type: string
35       required: true
36     port_BE_port_mac_requirements:
37       type: org.openecomp.datatypes.network.MacRequirements
38       required: true
39     port_BE_port_fixed_ips:
40       type: list
41       required: true
42       entry_schema:
43         type: org.openecomp.datatypes.heat.neutron.port.FixedIps
44     port_BE_port_vlan_requirements:
45       type: list
46       required: true
47       entry_schema:
48         type: org.openecomp.datatypes.network.VlanRequirements
49     compute_BE_1c1_availability_zone:
50       type: list
51       required: true
52       entry_schema:
53         type: string
54     port_BE_port_network:
55       type: list
56       required: true
57       entry_schema:
58         type: string
59     port_BE_port_ip_requirements:
60       type: list
61       required: true
62       entry_schema:
63         type: org.openecomp.datatypes.network.IpRequirements
64     port_BE_port_network_role_tag:
65       type: string
66       required: true
67     port_BE_port_related_networks:
68       type: list
69       required: true
70       entry_schema:
71         type: org.openecomp.datatypes.network.RelatedNetworksAssignments
72     vm_image_name:
73       type: string
74       required: true
75     compute_BE_1c1_name:
76       type: list
77       required: true
78       entry_schema:
79         type: string
80     port_BE_port_replacement_policy:
81       type: list
82       required: true
83       entry_schema:
84         type: string
85   node_templates:
86     BE_1c1_BE_port:
87       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
88       properties:
89         replacement_policy:
90           get_input:
91           - port_BE_port_replacement_policy
92           - index_value
93         mac_requirements:
94           get_input: port_BE_port_mac_requirements
95         order:
96           get_input: port_BE_port_order
97         exCP_naming:
98           get_input: port_BE_port_exCP_naming
99         vlan_requirements:
100           get_input: port_BE_port_vlan_requirements
101         subinterface_indicator: false
102         ip_requirements:
103           get_input: port_BE_port_ip_requirements
104         related_networks:
105           get_input: port_BE_port_related_networks
106         network_role_tag:
107           get_input: port_BE_port_network_role_tag
108         network_role:
109           get_input: port_BE_port_network_role
110         fixed_ips:
111           get_input:
112           - port_BE_port_fixed_ips
113           - index_value
114         subnetpoolid:
115           get_input: port_BE_port_subnetpoolid
116         network:
117           get_input:
118           - port_BE_port_network
119           - index_value
120       requirements:
121       - binding:
122           capability: tosca.capabilities.network.Bindable
123           node: BE_1c1
124           relationship: tosca.relationships.network.BindsTo
125     BE_1c1:
126       type: org.openecomp.resource.vfc.compute.nodes.heat.BE_1c1
127       properties:
128         availability_zone:
129           get_input:
130           - compute_BE_1c1_availability_zone
131           - index_value
132         flavor:
133           get_input: vm_flavor_name
134         image:
135           get_input: vm_image_name
136         name:
137           get_input:
138           - compute_BE_1c1_name
139           - index_value
140   outputs:
141     BE_1c1_accessIPv4:
142       type: string
143       value:
144         get_attribute:
145         - BE_1c1
146         - accessIPv4
147   substitution_mappings:
148     node_type: org.openecomp.resource.abstract.nodes.BE_1c1
149     capabilities:
150       disk.ephemeral.size_BE_1c1:
151       - BE_1c1
152       - disk.ephemeral.size
153       disk.device.write.bytes_BE_1c1:
154       - BE_1c1
155       - disk.device.write.bytes
156       os_BE_1c1:
157       - BE_1c1
158       - os
159       endpoint_BE_1c1:
160       - BE_1c1
161       - endpoint
162       network.outpoing.packets_BE_1c1_BE_port:
163       - BE_1c1_BE_port
164       - network.outpoing.packets
165       disk.device.write.requests_BE_1c1:
166       - BE_1c1
167       - disk.device.write.requests
168       disk.device.write.bytes.rate_BE_1c1:
169       - BE_1c1
170       - disk.device.write.bytes.rate
171       vcpus_BE_1c1:
172       - BE_1c1
173       - vcpus
174       network.incoming.packets.rate_BE_1c1_BE_port:
175       - BE_1c1_BE_port
176       - network.incoming.packets.rate
177       attachment_BE_1c1_BE_port:
178       - BE_1c1_BE_port
179       - attachment
180       network.incoming.bytes_BE_1c1_BE_port:
181       - BE_1c1_BE_port
182       - network.incoming.bytes
183       disk.capacity_BE_1c1:
184       - BE_1c1
185       - disk.capacity
186       disk.read.bytes_BE_1c1:
187       - BE_1c1
188       - disk.read.bytes
189       host_BE_1c1:
190       - BE_1c1
191       - host
192       disk.usage_BE_1c1:
193       - BE_1c1
194       - disk.usage
195       disk.write.bytes_BE_1c1:
196       - BE_1c1
197       - disk.write.bytes
198       network.outgoing.packets.rate_BE_1c1_BE_port:
199       - BE_1c1_BE_port
200       - network.outgoing.packets.rate
201       binding_BE_1c1_BE_port:
202       - BE_1c1_BE_port
203       - binding
204       disk.device.usage_BE_1c1:
205       - BE_1c1
206       - disk.device.usage
207       disk.device.read.requests.rate_BE_1c1:
208       - BE_1c1
209       - disk.device.read.requests.rate
210       network.outgoing.bytes.rate_BE_1c1_BE_port:
211       - BE_1c1_BE_port
212       - network.outgoing.bytes.rate
213       scalable_BE_1c1:
214       - BE_1c1
215       - scalable
216       disk.read.requests_BE_1c1:
217       - BE_1c1
218       - disk.read.requests
219       memory_BE_1c1:
220       - BE_1c1
221       - memory
222       disk.iops_BE_1c1:
223       - BE_1c1
224       - disk.iops
225       memory.usage_BE_1c1:
226       - BE_1c1
227       - memory.usage
228       network.incoming.packets_BE_1c1_BE_port:
229       - BE_1c1_BE_port
230       - network.incoming.packets
231       forwarder_BE_1c1_BE_port:
232       - BE_1c1_BE_port
233       - forwarder
234       disk.device.latency_BE_1c1:
235       - BE_1c1
236       - disk.device.latency
237       disk.device.read.requests_BE_1c1:
238       - BE_1c1
239       - disk.device.read.requests
240       memory.resident_BE_1c1:
241       - BE_1c1
242       - memory.resident
243       disk.allocation_BE_1c1:
244       - BE_1c1
245       - disk.allocation
246       disk.device.allocation_BE_1c1:
247       - BE_1c1
248       - disk.device.allocation
249       disk.device.write.requests.rate_BE_1c1:
250       - BE_1c1
251       - disk.device.write.requests.rate
252       instance_BE_1c1:
253       - BE_1c1
254       - instance
255       disk.read.bytes.rate_BE_1c1:
256       - BE_1c1
257       - disk.read.bytes.rate
258       disk.device.iops_BE_1c1:
259       - BE_1c1
260       - disk.device.iops
261       disk.root.size_BE_1c1:
262       - BE_1c1
263       - disk.root.size
264       network.incoming.bytes.rate_BE_1c1_BE_port:
265       - BE_1c1_BE_port
266       - network.incoming.bytes.rate
267       cpu_BE_1c1:
268       - BE_1c1
269       - cpu
270       cpu.delta_BE_1c1:
271       - BE_1c1
272       - cpu.delta
273       disk.write.requests.rate_BE_1c1:
274       - BE_1c1
275       - disk.write.requests.rate
276       binding_BE_1c1:
277       - BE_1c1
278       - binding
279       feature_BE_1c1:
280       - BE_1c1
281       - feature
282       disk.write.bytes.rate_BE_1c1:
283       - BE_1c1
284       - disk.write.bytes.rate
285       disk.write.requests_BE_1c1:
286       - BE_1c1
287       - disk.write.requests
288       disk.device.read.bytes_BE_1c1:
289       - BE_1c1
290       - disk.device.read.bytes
291       feature_BE_1c1_BE_port:
292       - BE_1c1_BE_port
293       - feature
294       disk.device.read.bytes.rate_BE_1c1:
295       - BE_1c1
296       - disk.device.read.bytes.rate
297       disk.device.capacity_BE_1c1:
298       - BE_1c1
299       - disk.device.capacity
300       network.outgoing.bytes_BE_1c1_BE_port:
301       - BE_1c1_BE_port
302       - network.outgoing.bytes
303       disk.latency_BE_1c1:
304       - BE_1c1
305       - disk.latency
306       cpu_util_BE_1c1:
307       - BE_1c1
308       - cpu_util
309     requirements:
310       link_BE_1c1_BE_port:
311       - BE_1c1_BE_port
312       - link
313       local_storage_BE_1c1:
314       - BE_1c1
315       - local_storage
316       dependency_BE_1c1_BE_port:
317       - BE_1c1_BE_port
318       - dependency
319       dependency_BE_1c1:
320       - BE_1c1
321       - dependency