push addional code
[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   ContrailComputeGlobalTypes:
6     file: ContrailComputeGlobalTypesServiceTemplate.yaml
7   CinderVolumeGlobalTypes:
8     file: CinderVolumeGlobalTypesServiceTemplate.yaml
9   ContrailVirtualNetworkGlobalType:
10     file: ContrailVirtualNetworkGlobalTypeServiceTemplate.yaml
11   AbstractSubstituteGlobalTypes:
12     file: AbstractSubstituteGlobalTypesServiceTemplate.yaml
13   ContrailPortGlobalTypes:
14     file: ContrailPortGlobalTypesServiceTemplate.yaml
15   GlobalSubstitutionTypes:
16     file: GlobalSubstitutionTypesServiceTemplate.yaml
17   NeutronPortGlobalTypes:
18     file: NeutronPortGlobalTypesServiceTemplate.yaml
19   NeutronNetGlobalTypes:
20     file: NeutronNetGlobalTypesServiceTemplate.yaml
21   CommonGlobalTypes:
22     file: CommonGlobalTypesServiceTemplate.yaml
23   ContrailAbstractSubstituteGlobalTypes:
24     file: ContrailAbstractSubstituteGlobalTypesServiceTemplate.yaml
25   ContrailNetworkRuleGlobalType:
26     file: ContrailNetworkRuleGlobalTypeServiceTemplate.yaml
27   NeutronSecurityRulesGlobalTypes:
28     file: NeutronSecurityRulesGlobalTypesServiceTemplate.yaml
29   NovaServerGlobalTypes:
30     file: NovaServerGlobalTypesServiceTemplate.yaml
31   ContrailV2VirtualMachineInterfaceGlobalType:
32     file: ContrailV2VirtualMachineInterfaceGlobalTypeServiceTemplate.yaml
33 node_types:
34   org.openecomp.resource.vfc.nodes.heat.dns:
35     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
36 topology_template:
37   inputs:
38     vf_module_id:
39       hidden: false
40       immutable: false
41       type: string
42       description: Unique ID for this VF module instance
43     name_with_index:
44       hidden: false
45       immutable: false
46       type: string
47       description: name parameter which will include the index value
48     dns_int_bearer_ips:
49       hidden: false
50       immutable: false
51       type: list
52       description: DNS Bearer IP list
53       entry_schema:
54         type: string
55     vnf_name:
56       hidden: false
57       immutable: false
58       type: string
59       description: Unique name for this VF instance
60     index:
61       hidden: false
62       immutable: false
63       type: float
64       description: index parameter
65     security_group:
66       hidden: false
67       immutable: false
68       type: string
69       description: security group
70     oam_protected_net_name:
71       hidden: false
72       immutable: false
73       type: string
74       description: OAM network where instaces will connect
75     dns_oam_protected_ips:
76       hidden: false
77       immutable: false
78       type: list
79       description: DNS OAM IP list
80       entry_schema:
81         type: string
82     dns_key:
83       hidden: false
84       immutable: false
85       type: string
86       description: server key
87     int_bearer_net_name:
88       hidden: false
89       immutable: false
90       type: string
91       description: Bearer network where instaces will connect
92     route_eth0:
93       hidden: false
94       immutable: false
95       type: string
96       description: OAM network routes
97     dns_names:
98       hidden: false
99       immutable: false
100       type: list
101       description: server name
102       entry_schema:
103         type: string
104     vnf_id:
105       hidden: false
106       immutable: false
107       type: string
108       description: Unique ID for this VF instance
109     availability_zone_0:
110       hidden: false
111       immutable: false
112       type: string
113       description: availability zone ID or Name
114     dns_image_name:
115       hidden: false
116       immutable: false
117       type: string
118       description: server image
119     dns_int_bearer_ipv6_ips:
120       hidden: false
121       immutable: false
122       type: list
123       description: fixed IPv6 assignment for VM's on the Bearer network
124       entry_schema:
125         type: string
126     dns_flavor_name:
127       hidden: false
128       immutable: false
129       type: string
130       description: server flavor
131   node_templates:
132     dns_oam_protected_0_port:
133       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
134       properties:
135         security_groups:
136         - get_input: security_group
137         fixed_ips:
138         - ip_address:
139             get_input:
140             - dns_oam_protected_ips
141             - get_input: index
142         name:
143           str_replace:
144             template: VNF_NAME_dns_oam_port
145             params:
146               VNF_NAME:
147                 get_input: vnf_name
148         network:
149           get_input: oam_protected_net_name
150       requirements:
151       - binding:
152           capability: tosca.capabilities.network.Bindable
153           node: dns_servers
154           relationship: tosca.relationships.network.BindsTo
155     dns_int_bearer_0_port:
156       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
157       properties:
158         security_groups:
159         - get_input: security_group
160         fixed_ips:
161         - ip_address:
162             get_input:
163             - dns_int_bearer_ips
164             - get_input: index
165         - ip_address:
166             get_input:
167             - dns_int_bearer_ipv6_ips
168             - get_input: index
169         name:
170           str_replace:
171             template: VNF_NAME_dns_bearer_port
172             params:
173               VNF_NAME:
174                 get_input: vnf_name
175         network:
176           get_input: int_bearer_net_name
177       requirements:
178       - binding:
179           capability: tosca.capabilities.network.Bindable
180           node: dns_servers
181           relationship: tosca.relationships.network.BindsTo
182     dns_servers:
183       type: org.openecomp.resource.vfc.nodes.heat.dns
184       properties:
185         flavor:
186           get_input: dns_flavor_name
187         key_name:
188           get_input: dns_key
189         availability_zone:
190           get_input: availability_zone_0
191         image:
192           get_input: dns_image_name
193         metadata:
194           vf_module_id:
195             get_input: vf_module_id
196           vnf_name  {get_param: vnf_name }
197           vnf_id:
198             get_input: vnf_id
199         user_data_format: RAW
200         name:
201           get_input:
202           - dns_names
203           - get_input: index
204   groups:
205     dns_nested_01:
206       type: org.openecomp.groups.heat.HeatStack
207       properties:
208         heat_file: ../Artifacts/dns_nested_01.yaml
209         description: |
210           nested DNS template for a single VM
211           all parameters are passed from calling heat template of resourcegroup
212       members:
213       - dns_oam_protected_0_port
214       - dns_int_bearer_0_port
215       - dns_servers
216   substitution_mappings:
217     node_type: org.openecomp.resource.abstract.nodes.heat.dns_nested_01
218     capabilities:
219       host_dns_servers:
220       - dns_servers
221       - host
222       attachment_dns_int_bearer_0_port:
223       - dns_int_bearer_0_port
224       - attachment
225       attachment_dns_oam_protected_0_port:
226       - dns_oam_protected_0_port
227       - attachment
228       os_dns_servers:
229       - dns_servers
230       - os
231       endpoint_dns_servers:
232       - dns_servers
233       - endpoint
234       binding_dns_servers:
235       - dns_servers
236       - binding
237       scalable_dns_servers:
238       - dns_servers
239       - scalable
240     requirements:
241       local_storage_dns_servers:
242       - dns_servers
243       - local_storage
244       link_dns_oam_protected_0_port:
245       - dns_oam_protected_0_port
246       - link
247       link_dns_int_bearer_0_port:
248       - dns_int_bearer_0_port
249       - link