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