c5aee4801532e3c41c6aa8fcc64cd09116dec16e
[sdc.git] /
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: Nested_oam
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.oam:
11     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
12 topology_template:
13   inputs:
14     port_oam02_port_network:
15       type: list
16       required: true
17       entry_schema:
18         type: string
19     port_oam02_port_ip_requirements:
20       type: list
21       required: true
22       entry_schema:
23         type: org.openecomp.datatypes.network.IpRequirements
24     port_oam02_port_network_role:
25       type: string
26       required: true
27     index_value:
28       type: integer
29       description: Index value of this substitution service template runtime instance
30       required: false
31       default: 0
32       constraints:
33       - greater_or_equal: 0
34     port_oam02_port_fixed_ips:
35       type: list
36       required: true
37       entry_schema:
38         type: org.openecomp.datatypes.heat.neutron.port.FixedIps
39     vm_flavor_name:
40       type: string
41       required: true
42     port_oam02_port_exCP_naming:
43       type: org.openecomp.datatypes.Naming
44       required: true
45     port_oam02_port_security_groups:
46       type: list
47       required: true
48       entry_schema:
49         type: json
50     port_oam02_port_subnetpoolid:
51       type: string
52       required: true
53     port_oam02_port_mac_requirements:
54       type: org.openecomp.datatypes.network.MacRequirements
55       required: true
56     port_oam02_port_order:
57       type: integer
58       required: true
59     vm_image_name:
60       type: string
61       required: true
62     port_oam02_port_network_role_tag:
63       type: string
64       required: true
65     port_oam02_port_replacement_policy:
66       type: list
67       required: true
68       entry_schema:
69         type: string
70     compute_oam_availability_zone:
71       type: list
72       required: true
73       entry_schema:
74         type: string
75     port_oam02_port_vlan_requirements:
76       type: list
77       required: true
78       entry_schema:
79         type: org.openecomp.datatypes.network.VlanRequirements
80     compute_oam_name:
81       type: list
82       required: true
83       entry_schema:
84         type: string
85     port_oam02_port_subinterface_indicator:
86       type: list
87       required: true
88       entry_schema:
89         type: boolean
90   node_templates:
91     oam_oam02_port:
92       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
93       properties:
94         replacement_policy:
95           get_input:
96           - port_oam02_port_replacement_policy
97           - index_value
98         mac_requirements:
99           get_input: port_oam02_port_mac_requirements
100         order:
101           get_input: port_oam02_port_order
102         security_groups:
103           get_input:
104           - port_oam02_port_security_groups
105           - index_value
106         exCP_naming:
107           get_input: port_oam02_port_exCP_naming
108         vlan_requirements:
109           get_input: port_oam02_port_vlan_requirements
110         subinterface_indicator:
111           get_input:
112           - port_oam02_port_subinterface_indicator
113           - index_value
114         ip_requirements:
115           get_input: port_oam02_port_ip_requirements
116         network_role_tag:
117           get_input: port_oam02_port_network_role_tag
118         network_role:
119           get_input: port_oam02_port_network_role
120         subnetpoolid:
121           get_input: port_oam02_port_subnetpoolid
122         fixed_ips:
123           get_input:
124           - port_oam02_port_fixed_ips
125           - index_value
126         network:
127           get_input:
128           - port_oam02_port_network
129           - index_value
130       requirements:
131       - binding:
132           capability: tosca.capabilities.network.Bindable
133           node: oam
134           relationship: tosca.relationships.network.BindsTo
135     oam:
136       type: org.openecomp.resource.vfc.compute.nodes.heat.oam
137       properties:
138         availability_zone:
139           get_input:
140           - compute_oam_availability_zone
141           - index_value
142         flavor:
143           get_input: vm_flavor_name
144         image:
145           get_input: vm_image_name
146         name:
147           get_input:
148           - compute_oam_name
149           - index_value
150   substitution_mappings:
151     node_type: org.openecomp.resource.abstract.nodes.oam
152     capabilities:
153       cpu_oam:
154       - oam
155       - cpu
156       network.incoming.bytes.rate_oam_oam02_port:
157       - oam_oam02_port
158       - network.incoming.bytes.rate
159       disk.usage_oam:
160       - oam
161       - disk.usage
162       memory.resident_oam:
163       - oam
164       - memory.resident
165       disk.device.write.bytes_oam:
166       - oam
167       - disk.device.write.bytes
168       network.incoming.packets_oam_oam02_port:
169       - oam_oam02_port
170       - network.incoming.packets
171       disk.read.bytes_oam:
172       - oam
173       - disk.read.bytes
174       network.outgoing.packets.rate_oam_oam02_port:
175       - oam_oam02_port
176       - network.outgoing.packets.rate
177       binding_oam_oam02_port:
178       - oam_oam02_port
179       - binding
180       scalable_oam:
181       - oam
182       - scalable
183       network.outgoing.bytes.rate_oam_oam02_port:
184       - oam_oam02_port
185       - network.outgoing.bytes.rate
186       feature_oam:
187       - oam
188       - feature
189       disk.allocation_oam:
190       - oam
191       - disk.allocation
192       disk.device.usage_oam:
193       - oam
194       - disk.device.usage
195       binding_oam:
196       - oam
197       - binding
198       disk.device.read.bytes.rate_oam:
199       - oam
200       - disk.device.read.bytes.rate
201       disk.write.bytes.rate_oam:
202       - oam
203       - disk.write.bytes.rate
204       disk.device.write.bytes.rate_oam:
205       - oam
206       - disk.device.write.bytes.rate
207       disk.device.allocation_oam:
208       - oam
209       - disk.device.allocation
210       disk.ephemeral.size_oam:
211       - oam
212       - disk.ephemeral.size
213       disk.write.requests_oam:
214       - oam
215       - disk.write.requests
216       forwarder_oam_oam02_port:
217       - oam_oam02_port
218       - forwarder
219       disk.capacity_oam:
220       - oam
221       - disk.capacity
222       instance_oam:
223       - oam
224       - instance
225       network.outgoing.bytes_oam_oam02_port:
226       - oam_oam02_port
227       - network.outgoing.bytes
228       disk.root.size_oam:
229       - oam
230       - disk.root.size
231       network.incoming.packets.rate_oam_oam02_port:
232       - oam_oam02_port
233       - network.incoming.packets.rate
234       memory_oam:
235       - oam
236       - memory
237       cpu.delta_oam:
238       - oam
239       - cpu.delta
240       disk.device.write.requests_oam:
241       - oam
242       - disk.device.write.requests
243       disk.device.read.requests.rate_oam:
244       - oam
245       - disk.device.read.requests.rate
246       disk.write.requests.rate_oam:
247       - oam
248       - disk.write.requests.rate
249       disk.device.latency_oam:
250       - oam
251       - disk.device.latency
252       disk.device.iops_oam:
253       - oam
254       - disk.device.iops
255       vcpus_oam:
256       - oam
257       - vcpus
258       disk.device.write.requests.rate_oam:
259       - oam
260       - disk.device.write.requests.rate
261       disk.device.read.bytes_oam:
262       - oam
263       - disk.device.read.bytes
264       host_oam:
265       - oam
266       - host
267       endpoint_oam:
268       - oam
269       - endpoint
270       disk.device.read.requests_oam:
271       - oam
272       - disk.device.read.requests
273       disk.iops_oam:
274       - oam
275       - disk.iops
276       disk.read.bytes.rate_oam:
277       - oam
278       - disk.read.bytes.rate
279       feature_oam_oam02_port:
280       - oam_oam02_port
281       - feature
282       cpu_util_oam:
283       - oam
284       - cpu_util
285       network.outpoing.packets_oam_oam02_port:
286       - oam_oam02_port
287       - network.outpoing.packets
288       os_oam:
289       - oam
290       - os
291       memory.usage_oam:
292       - oam
293       - memory.usage
294       disk.latency_oam:
295       - oam
296       - disk.latency
297       network.incoming.bytes_oam_oam02_port:
298       - oam_oam02_port
299       - network.incoming.bytes
300       attachment_oam_oam02_port:
301       - oam_oam02_port
302       - attachment
303       disk.write.bytes_oam:
304       - oam
305       - disk.write.bytes
306       disk.read.requests_oam:
307       - oam
308       - disk.read.requests
309       disk.device.capacity_oam:
310       - oam
311       - disk.device.capacity
312     requirements:
313       link_oam_oam02_port:
314       - oam_oam02_port
315       - link
316       local_storage_oam:
317       - oam
318       - local_storage
319       dependency_oam_oam02_port:
320       - oam_oam02_port
321       - dependency
322       dependency_oam:
323       - oam
324       - dependency