[SDC-29] Amdocs OnBoard 1707 initial commit.
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / heat / nested / resourceGroupMDNS / expectedoutputfiles / dns_nested_01ServiceTemplate.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: dns_nested_01
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.dns:
11     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
12 topology_template:
13   inputs:
14     vf_module_id:
15       hidden: false
16       immutable: false
17       type: string
18       description: Unique ID for this VF module instance
19     name_with_index:
20       hidden: false
21       immutable: false
22       type: string
23       description: name parameter which will include the index value
24     dns_int_bearer_ips:
25       hidden: false
26       immutable: false
27       type: list
28       description: DNS Bearer IP list
29       entry_schema:
30         type: string
31     vnf_name:
32       hidden: false
33       immutable: false
34       type: string
35       description: Unique name for this VF instance
36     index:
37       hidden: false
38       immutable: false
39       type: float
40       description: index parameter
41     security_group:
42       hidden: false
43       immutable: false
44       type: string
45       description: security group
46     oam_protected_net_name:
47       hidden: false
48       immutable: false
49       type: string
50       description: OAM network where instaces will connect
51     dns_oam_protected_ips:
52       hidden: false
53       immutable: false
54       type: list
55       description: DNS OAM IP list
56       entry_schema:
57         type: string
58     dns_key:
59       hidden: false
60       immutable: false
61       type: string
62       description: server key
63     int_bearer_net_name:
64       hidden: false
65       immutable: false
66       type: string
67       description: Bearer network where instaces will connect
68     route_eth0:
69       hidden: false
70       immutable: false
71       type: string
72       description: OAM network routes
73     dns_names:
74       hidden: false
75       immutable: false
76       type: list
77       description: server name
78       entry_schema:
79         type: string
80     vnf_id:
81       hidden: false
82       immutable: false
83       type: string
84       description: Unique ID for this VF instance
85     availability_zone_0:
86       hidden: false
87       immutable: false
88       type: string
89       description: availability zone ID or Name
90     dns_image_name:
91       hidden: false
92       immutable: false
93       type: string
94       description: server image
95     dns_int_bearer_ipv6_ips:
96       hidden: false
97       immutable: false
98       type: list
99       description: fixed IPv6 assignment for VM's on the Bearer network
100       entry_schema:
101         type: string
102     dns_flavor_name:
103       hidden: false
104       immutable: false
105       type: string
106       description: server flavor
107   node_templates:
108     dns_oam_protected_0_port:
109       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
110       properties:
111         ip_requirements:
112         - ip_version: 4
113           ip_count_required:
114             is_required: true
115           floating_ip_count_required:
116             is_required: false
117         security_groups:
118         - get_input: security_group
119         fixed_ips:
120         - ip_address:
121             get_input:
122             - dns_oam_protected_ips
123             - get_input: index
124         mac_requirements:
125           mac_count_required:
126             is_required: false
127         name:
128           str_replace:
129             template: VNF_NAME_dns_oam_port
130             params:
131               VNF_NAME:
132                 get_input: vnf_name
133         network_role_tag: oam_protected
134         network:
135           get_input: oam_protected_net_name
136       requirements:
137       - binding:
138           capability: tosca.capabilities.network.Bindable
139           node: dns_servers
140           relationship: tosca.relationships.network.BindsTo
141     dns_int_bearer_0_port:
142       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
143       properties:
144         ip_requirements:
145         - ip_version: 4
146           ip_count_required:
147             is_required: true
148           floating_ip_count_required:
149             is_required: false
150         security_groups:
151         - get_input: security_group
152         fixed_ips:
153         - ip_address:
154             get_input:
155             - dns_int_bearer_ips
156             - get_input: index
157         - ip_address:
158             get_input:
159             - dns_int_bearer_ipv6_ips
160             - get_input: index
161         mac_requirements:
162           mac_count_required:
163             is_required: false
164         name:
165           str_replace:
166             template: VNF_NAME_dns_bearer_port
167             params:
168               VNF_NAME:
169                 get_input: vnf_name
170         network_role_tag: int_bearer
171         network:
172           get_input: int_bearer_net_name
173       requirements:
174       - binding:
175           capability: tosca.capabilities.network.Bindable
176           node: dns_servers
177           relationship: tosca.relationships.network.BindsTo
178     dns_servers:
179       type: org.openecomp.resource.vfc.nodes.heat.dns
180       properties:
181         flavor:
182           get_input: dns_flavor_name
183         key_name:
184           get_input: dns_key
185         availability_zone:
186           get_input: availability_zone_0
187         image:
188           get_input: dns_image_name
189         metadata:
190           vf_module_id:
191             get_input: vf_module_id
192           vnf_name  {get_param: vnf_name }
193           vnf_id:
194             get_input: vnf_id
195         user_data_format: RAW
196         name:
197           get_input:
198           - dns_names
199           - get_input: index
200   groups:
201     dns_nested_01_group:
202       type: org.openecomp.groups.heat.HeatStack
203       properties:
204         heat_file: ../Artifacts/dns_nested_01.yaml
205         description: |
206           nested DNS template for a single VM
207           all parameters are passed from calling heat template of resourcegroup
208       members:
209       - dns_oam_protected_0_port
210       - dns_int_bearer_0_port
211       - dns_servers
212   substitution_mappings:
213     node_type: org.openecomp.resource.abstract.nodes.heat.dns_nested_01
214     capabilities:
215       disk.read.bytes.rate_dns_servers:
216       - dns_servers
217       - disk.read.bytes.rate
218       attachment_dns_oam_protected_0_port:
219       - dns_oam_protected_0_port
220       - attachment
221       network.outpoing.packets_dns_int_bearer_0_port:
222       - dns_int_bearer_0_port
223       - network.outpoing.packets
224       memory.resident_dns_servers:
225       - dns_servers
226       - memory.resident
227       disk.device.write.requests.rate_dns_servers:
228       - dns_servers
229       - disk.device.write.requests.rate
230       disk.root.size_dns_servers:
231       - dns_servers
232       - disk.root.size
233       disk.write.requests.rate_dns_servers:
234       - dns_servers
235       - disk.write.requests.rate
236       disk.device.write.requests_dns_servers:
237       - dns_servers
238       - disk.device.write.requests
239       network.incoming.bytes_dns_oam_protected_0_port:
240       - dns_oam_protected_0_port
241       - network.incoming.bytes
242       network.incoming.packets.rate_dns_int_bearer_0_port:
243       - dns_int_bearer_0_port
244       - network.incoming.packets.rate
245       network.incoming.bytes.rate_dns_int_bearer_0_port:
246       - dns_int_bearer_0_port
247       - network.incoming.bytes.rate
248       disk.read.bytes_dns_servers:
249       - dns_servers
250       - disk.read.bytes
251       disk.capacity_dns_servers:
252       - dns_servers
253       - disk.capacity
254       network.outgoing.packets.rate_dns_int_bearer_0_port:
255       - dns_int_bearer_0_port
256       - network.outgoing.packets.rate
257       binding_dns_oam_protected_0_port:
258       - dns_oam_protected_0_port
259       - binding
260       disk.device.iops_dns_servers:
261       - dns_servers
262       - disk.device.iops
263       disk.read.requests_dns_servers:
264       - dns_servers
265       - disk.read.requests
266       network.outpoing.packets_dns_oam_protected_0_port:
267       - dns_oam_protected_0_port
268       - network.outpoing.packets
269       disk.device.capacity_dns_servers:
270       - dns_servers
271       - disk.device.capacity
272       host_dns_servers:
273       - dns_servers
274       - host
275       cpu.delta_dns_servers:
276       - dns_servers
277       - cpu.delta
278       network.incoming.bytes.rate_dns_oam_protected_0_port:
279       - dns_oam_protected_0_port
280       - network.incoming.bytes.rate
281       binding_dns_servers:
282       - dns_servers
283       - binding
284       instance_dns_servers:
285       - dns_servers
286       - instance
287       disk.device.read.requests.rate_dns_servers:
288       - dns_servers
289       - disk.device.read.requests.rate
290       disk.allocation_dns_servers:
291       - dns_servers
292       - disk.allocation
293       disk.ephemeral.size_dns_servers:
294       - dns_servers
295       - disk.ephemeral.size
296       disk.device.read.bytes_dns_servers:
297       - dns_servers
298       - disk.device.read.bytes
299       vcpus_dns_servers:
300       - dns_servers
301       - vcpus
302       feature_dns_servers:
303       - dns_servers
304       - feature
305       network.outgoing.bytes.rate_dns_int_bearer_0_port:
306       - dns_int_bearer_0_port
307       - network.outgoing.bytes.rate
308       network.outgoing.bytes.rate_dns_oam_protected_0_port:
309       - dns_oam_protected_0_port
310       - network.outgoing.bytes.rate
311       disk.write.bytes_dns_servers:
312       - dns_servers
313       - disk.write.bytes
314       network.outgoing.packets.rate_dns_oam_protected_0_port:
315       - dns_oam_protected_0_port
316       - network.outgoing.packets.rate
317       network.incoming.packets_dns_oam_protected_0_port:
318       - dns_oam_protected_0_port
319       - network.incoming.packets
320       disk.write.requests_dns_servers:
321       - dns_servers
322       - disk.write.requests
323       cpu_dns_servers:
324       - dns_servers
325       - cpu
326       memory.usage_dns_servers:
327       - dns_servers
328       - memory.usage
329       network.incoming.packets_dns_int_bearer_0_port:
330       - dns_int_bearer_0_port
331       - network.incoming.packets
332       network.incoming.packets.rate_dns_oam_protected_0_port:
333       - dns_oam_protected_0_port
334       - network.incoming.packets.rate
335       memory_dns_servers:
336       - dns_servers
337       - memory
338       disk.device.write.bytes.rate_dns_servers:
339       - dns_servers
340       - disk.device.write.bytes.rate
341       attachment_dns_int_bearer_0_port:
342       - dns_int_bearer_0_port
343       - attachment
344       disk.device.latency_dns_servers:
345       - dns_servers
346       - disk.device.latency
347       binding_dns_int_bearer_0_port:
348       - dns_int_bearer_0_port
349       - binding
350       disk.device.read.bytes.rate_dns_servers:
351       - dns_servers
352       - disk.device.read.bytes.rate
353       disk.write.bytes.rate_dns_servers:
354       - dns_servers
355       - disk.write.bytes.rate
356       network.outgoing.bytes_dns_oam_protected_0_port:
357       - dns_oam_protected_0_port
358       - network.outgoing.bytes
359       disk.device.read.requests_dns_servers:
360       - dns_servers
361       - disk.device.read.requests
362       disk.iops_dns_servers:
363       - dns_servers
364       - disk.iops
365       network.outgoing.bytes_dns_int_bearer_0_port:
366       - dns_int_bearer_0_port
367       - network.outgoing.bytes
368       network.incoming.bytes_dns_int_bearer_0_port:
369       - dns_int_bearer_0_port
370       - network.incoming.bytes
371       os_dns_servers:
372       - dns_servers
373       - os
374       feature_dns_oam_protected_0_port:
375       - dns_oam_protected_0_port
376       - feature
377       feature_dns_int_bearer_0_port:
378       - dns_int_bearer_0_port
379       - feature
380       endpoint_dns_servers:
381       - dns_servers
382       - endpoint
383       cpu_util_dns_servers:
384       - dns_servers
385       - cpu_util
386       disk.device.allocation_dns_servers:
387       - dns_servers
388       - disk.device.allocation
389       disk.latency_dns_servers:
390       - dns_servers
391       - disk.latency
392       disk.device.usage_dns_servers:
393       - dns_servers
394       - disk.device.usage
395       disk.usage_dns_servers:
396       - dns_servers
397       - disk.usage
398       disk.device.write.bytes_dns_servers:
399       - dns_servers
400       - disk.device.write.bytes
401       scalable_dns_servers:
402       - dns_servers
403       - scalable
404     requirements:
405       local_storage_dns_servers:
406       - dns_servers
407       - local_storage
408       dependency_dns_oam_protected_0_port:
409       - dns_oam_protected_0_port
410       - dependency
411       link_dns_oam_protected_0_port:
412       - dns_oam_protected_0_port
413       - link
414       dependency_dns_servers:
415       - dns_servers
416       - dependency
417       link_dns_int_bearer_0_port:
418       - dns_int_bearer_0_port
419       - link
420       dependency_dns_int_bearer_0_port:
421       - dns_int_bearer_0_port
422       - dependency