[sdc] update code of sdc
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / fulltest / singleSubstitution / generalVf / out / Nested_NCB2ServiceTemplate.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: Nested_NCB2
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.NCB2:
11     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
12 topology_template:
13   inputs:
14     compute_NCB2_availability_zone:
15       type: list
16       required: true
17       entry_schema:
18         type: string
19     vm_flavor_name:
20       type: string
21       required: true
22     port_NCB2_Internal2_mac_requirements:
23       type: org.openecomp.datatypes.network.MacRequirements
24       required: true
25     port_NCB2_Internal1_mac_requirements:
26       type: org.openecomp.datatypes.network.MacRequirements
27       required: true
28     vm_image_name:
29       type: string
30       required: true
31     port_NCB2_Internal1_exCP_naming:
32       type: list
33       required: true
34       entry_schema:
35         type: json
36     port_NCB2_Internal2_exCP_naming:
37       type: list
38       required: true
39       entry_schema:
40         type: json
41     port_NCB2_Internal1_order:
42       type: list
43       required: true
44       entry_schema:
45         type: integer
46     port_NCB2_Internal1_network_role:
47       type: list
48       required: true
49       entry_schema:
50         type: string
51     port_NCB2_Internal2_network_role:
52       type: list
53       required: true
54       entry_schema:
55         type: string
56     index_value:
57       type: integer
58       description: Index value of this substitution service template runtime instance
59       required: false
60       default: 0
61       constraints:
62       - greater_or_equal: 0
63     port_NCB2_Internal1_network:
64       type: list
65       required: true
66       entry_schema:
67         type: string
68     port_NCB2_Internal2_ip_requirements:
69       type: list
70       required: true
71       entry_schema:
72         type: org.openecomp.datatypes.network.IpRequirements
73     port_NCB2_Internal2_network_role_tag:
74       type: list
75       required: true
76       entry_schema:
77         type: string
78     port_NCB2_Internal2_network:
79       type: list
80       required: true
81       entry_schema:
82         type: string
83     port_NCB2_Internal2_vlan_requirements:
84       type: list
85       required: true
86       entry_schema:
87         type: json
88     port_NCB2_Internal1_mac_address:
89       type: string
90       required: true
91     port_NCB2_Internal2_mac_address:
92       type: string
93       required: true
94     port_NCB2_Internal1_subnetpoolid:
95       type: list
96       required: true
97       entry_schema:
98         type: string
99     port_NCB2_Internal1_network_role_tag:
100       type: list
101       required: true
102       entry_schema:
103         type: string
104     port_NCB2_Internal2_order:
105       type: list
106       required: true
107       entry_schema:
108         type: integer
109     compute_NCB2_name:
110       type: list
111       required: true
112       entry_schema:
113         type: string
114     port_NCB2_Internal1_vlan_requirements:
115       type: list
116       required: true
117       entry_schema:
118         type: json
119     port_NCB2_Internal2_subnetpoolid:
120       type: list
121       required: true
122       entry_schema:
123         type: string
124     port_NCB2_Internal1_ip_requirements:
125       type: list
126       required: true
127       entry_schema:
128         type: org.openecomp.datatypes.network.IpRequirements
129   node_templates:
130     NCB2:
131       type: org.openecomp.resource.vfc.nodes.heat.NCB2
132       properties:
133         availability_zone:
134           get_input:
135           - compute_NCB2_availability_zone
136           - index_value
137         flavor:
138           get_input: vm_flavor_name
139         image:
140           get_input: vm_image_name
141         name:
142           get_input:
143           - compute_NCB2_name
144           - index_value
145     NCB2_NCB2_Internal1:
146       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
147       properties:
148         exCP_naming:
149           get_input:
150           - port_NCB2_Internal1_exCP_naming
151           - index_value
152         vlan_requirements:
153           get_input:
154           - port_NCB2_Internal1_vlan_requirements
155           - index_value
156         ip_requirements:
157           get_input: port_NCB2_Internal1_ip_requirements
158         network_role_tag:
159           get_input:
160           - port_NCB2_Internal1_network_role_tag
161           - index_value
162         mac_requirements:
163           get_input: port_NCB2_Internal1_mac_requirements
164         order:
165           get_input:
166           - port_NCB2_Internal1_order
167           - index_value
168         network_role:
169           get_input:
170           - port_NCB2_Internal1_network_role
171           - index_value
172         subnetpoolid:
173           get_input:
174           - port_NCB2_Internal1_subnetpoolid
175           - index_value
176         network:
177           get_input:
178           - port_NCB2_Internal1_network
179           - index_value
180         mac_address:
181           get_input: port_NCB2_Internal1_mac_address
182       requirements:
183       - binding:
184           capability: tosca.capabilities.network.Bindable
185           node: NCB2
186           relationship: tosca.relationships.network.BindsTo
187     NCB2_NCB2_Internal2:
188       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
189       properties:
190         exCP_naming:
191           get_input:
192           - port_NCB2_Internal2_exCP_naming
193           - index_value
194         vlan_requirements:
195           get_input:
196           - port_NCB2_Internal2_vlan_requirements
197           - index_value
198         ip_requirements:
199           get_input: port_NCB2_Internal2_ip_requirements
200         network_role_tag:
201           get_input:
202           - port_NCB2_Internal2_network_role_tag
203           - index_value
204         mac_requirements:
205           get_input: port_NCB2_Internal2_mac_requirements
206         order:
207           get_input:
208           - port_NCB2_Internal2_order
209           - index_value
210         network_role:
211           get_input:
212           - port_NCB2_Internal2_network_role
213           - index_value
214         subnetpoolid:
215           get_input:
216           - port_NCB2_Internal2_subnetpoolid
217           - index_value
218         network:
219           get_input:
220           - port_NCB2_Internal2_network
221           - index_value
222         mac_address:
223           get_input: port_NCB2_Internal2_mac_address
224       requirements:
225       - binding:
226           capability: tosca.capabilities.network.Bindable
227           node: NCB2
228           relationship: tosca.relationships.network.BindsTo
229   substitution_mappings:
230     node_type: org.openecomp.resource.abstract.nodes.NCB2
231     capabilities:
232       disk.device.write.bytes.rate_NCB2:
233       - NCB2
234       - disk.device.write.bytes.rate
235       memory.resident_NCB2:
236       - NCB2
237       - memory.resident
238       network.outgoing.packets.rate_NCB2_NCB2_Internal2:
239       - NCB2_NCB2_Internal2
240       - network.outgoing.packets.rate
241       network.outgoing.packets.rate_NCB2_NCB2_Internal1:
242       - NCB2_NCB2_Internal1
243       - network.outgoing.packets.rate
244       disk.root.size_NCB2:
245       - NCB2
246       - disk.root.size
247       instance_NCB2:
248       - NCB2
249       - instance
250       cpu_NCB2:
251       - NCB2
252       - cpu
253       attachment_NCB2_NCB2_Internal2:
254       - NCB2_NCB2_Internal2
255       - attachment
256       disk.write.requests.rate_NCB2:
257       - NCB2
258       - disk.write.requests.rate
259       attachment_NCB2_NCB2_Internal1:
260       - NCB2_NCB2_Internal1
261       - attachment
262       feature_NCB2_NCB2_Internal1:
263       - NCB2_NCB2_Internal1
264       - feature
265       disk.device.read.bytes.rate_NCB2:
266       - NCB2
267       - disk.device.read.bytes.rate
268       cpu.delta_NCB2:
269       - NCB2
270       - cpu.delta
271       network.outpoing.packets_NCB2_NCB2_Internal2:
272       - NCB2_NCB2_Internal2
273       - network.outpoing.packets
274       disk.device.capacity_NCB2:
275       - NCB2
276       - disk.device.capacity
277       feature_NCB2_NCB2_Internal2:
278       - NCB2_NCB2_Internal2
279       - feature
280       network.outgoing.bytes.rate_NCB2_NCB2_Internal2:
281       - NCB2_NCB2_Internal2
282       - network.outgoing.bytes.rate
283       network.outgoing.bytes.rate_NCB2_NCB2_Internal1:
284       - NCB2_NCB2_Internal1
285       - network.outgoing.bytes.rate
286       network.incoming.bytes_NCB2_NCB2_Internal1:
287       - NCB2_NCB2_Internal1
288       - network.incoming.bytes
289       network.incoming.bytes_NCB2_NCB2_Internal2:
290       - NCB2_NCB2_Internal2
291       - network.incoming.bytes
292       network.outpoing.packets_NCB2_NCB2_Internal1:
293       - NCB2_NCB2_Internal1
294       - network.outpoing.packets
295       binding_NCB2:
296       - NCB2
297       - binding
298       network.incoming.packets.rate_NCB2_NCB2_Internal1:
299       - NCB2_NCB2_Internal1
300       - network.incoming.packets.rate
301       network.incoming.packets.rate_NCB2_NCB2_Internal2:
302       - NCB2_NCB2_Internal2
303       - network.incoming.packets.rate
304       disk.read.bytes_NCB2:
305       - NCB2
306       - disk.read.bytes
307       disk.device.read.bytes_NCB2:
308       - NCB2
309       - disk.device.read.bytes
310       disk.usage_NCB2:
311       - NCB2
312       - disk.usage
313       disk.device.allocation_NCB2:
314       - NCB2
315       - disk.device.allocation
316       disk.ephemeral.size_NCB2:
317       - NCB2
318       - disk.ephemeral.size
319       network.outgoing.bytes_NCB2_NCB2_Internal1:
320       - NCB2_NCB2_Internal1
321       - network.outgoing.bytes
322       network.outgoing.bytes_NCB2_NCB2_Internal2:
323       - NCB2_NCB2_Internal2
324       - network.outgoing.bytes
325       disk.allocation_NCB2:
326       - NCB2
327       - disk.allocation
328       disk.write.bytes_NCB2:
329       - NCB2
330       - disk.write.bytes
331       disk.device.latency_NCB2:
332       - NCB2
333       - disk.device.latency
334       binding_NCB2_NCB2_Internal1:
335       - NCB2_NCB2_Internal1
336       - binding
337       binding_NCB2_NCB2_Internal2:
338       - NCB2_NCB2_Internal2
339       - binding
340       network.incoming.bytes.rate_NCB2_NCB2_Internal1:
341       - NCB2_NCB2_Internal1
342       - network.incoming.bytes.rate
343       vcpus_NCB2:
344       - NCB2
345       - vcpus
346       memory.usage_NCB2:
347       - NCB2
348       - memory.usage
349       network.incoming.bytes.rate_NCB2_NCB2_Internal2:
350       - NCB2_NCB2_Internal2
351       - network.incoming.bytes.rate
352       endpoint_NCB2:
353       - NCB2
354       - endpoint
355       disk.device.iops_NCB2:
356       - NCB2
357       - disk.device.iops
358       disk.write.requests_NCB2:
359       - NCB2
360       - disk.write.requests
361       feature_NCB2:
362       - NCB2
363       - feature
364       os_NCB2:
365       - NCB2
366       - os
367       disk.read.requests_NCB2:
368       - NCB2
369       - disk.read.requests
370       disk.device.write.requests_NCB2:
371       - NCB2
372       - disk.device.write.requests
373       network.incoming.packets_NCB2_NCB2_Internal1:
374       - NCB2_NCB2_Internal1
375       - network.incoming.packets
376       network.incoming.packets_NCB2_NCB2_Internal2:
377       - NCB2_NCB2_Internal2
378       - network.incoming.packets
379       disk.device.read.requests_NCB2:
380       - NCB2
381       - disk.device.read.requests
382       disk.write.bytes.rate_NCB2:
383       - NCB2
384       - disk.write.bytes.rate
385       memory_NCB2:
386       - NCB2
387       - memory
388       disk.device.write.bytes_NCB2:
389       - NCB2
390       - disk.device.write.bytes
391       disk.device.read.requests.rate_NCB2:
392       - NCB2
393       - disk.device.read.requests.rate
394       scalable_NCB2:
395       - NCB2
396       - scalable
397       disk.capacity_NCB2:
398       - NCB2
399       - disk.capacity
400       disk.read.bytes.rate_NCB2:
401       - NCB2
402       - disk.read.bytes.rate
403       disk.iops_NCB2:
404       - NCB2
405       - disk.iops
406       host_NCB2:
407       - NCB2
408       - host
409       disk.latency_NCB2:
410       - NCB2
411       - disk.latency
412       cpu_util_NCB2:
413       - NCB2
414       - cpu_util
415       disk.device.usage_NCB2:
416       - NCB2
417       - disk.device.usage
418       disk.device.write.requests.rate_NCB2:
419       - NCB2
420       - disk.device.write.requests.rate
421     requirements:
422       link_NCB2_NCB2_Internal2:
423       - NCB2_NCB2_Internal2
424       - link
425       dependency_NCB2_NCB2_Internal1:
426       - NCB2_NCB2_Internal1
427       - dependency
428       dependency_NCB2_NCB2_Internal2:
429       - NCB2_NCB2_Internal2
430       - dependency
431       local_storage_NCB2:
432       - NCB2
433       - local_storage
434       link_NCB2_NCB2_Internal1:
435       - NCB2_NCB2_Internal1
436       - link
437       dependency_NCB2:
438       - NCB2
439       - dependency