[sdc] docker file fix for cassandra
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / contrail2serviceinstance / diffServiceTemplate / expectedoutputfiles / service_instance_1ServiceTemplate.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: service_instance_1
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 topology_template:
34   inputs:
35     availability_zone:
36       hidden: false
37       immutable: false
38       type: string
39       description: Availability zone to create servers in
40       required: false
41       status: SUPPORTED
42     static_routes_list:
43       hidden: false
44       immutable: false
45       type: list
46       description: Static routes enabled
47       required: false
48       status: SUPPORTED
49       entry_schema:
50         type: boolean
51     availability_zone_enable:
52       hidden: false
53       immutable: false
54       type: boolean
55       description: Indicates availability zone is enabled
56       required: false
57       default: false
58       status: SUPPORTED
59     service_template_name:
60       hidden: false
61       immutable: false
62       type: string
63       description: Service template name
64       required: false
65       status: SUPPORTED
66     ordered_interfaces:
67       hidden: false
68       immutable: false
69       type: boolean
70       description: Indicates if service interface are ordered
71       required: false
72       default: false
73       status: SUPPORTED
74     flavor:
75       hidden: false
76       immutable: false
77       type: string
78       description: flavor
79       required: false
80       status: SUPPORTED
81     image_name:
82       hidden: false
83       immutable: false
84       type: string
85       description: Image name
86       required: true
87       status: SUPPORTED
88     service_type:
89       hidden: false
90       immutable: false
91       type: string
92       description: Service type
93       required: true
94       status: SUPPORTED
95       constraints:
96       - valid_values:
97         - firewall
98         - analyzer
99         - source-nat
100         - loadbalancer
101     service_interface_type_list:
102       hidden: false
103       immutable: false
104       type: list
105       description: List of interface types
106       required: true
107       status: SUPPORTED
108       entry_schema:
109         type: string
110         constraints:
111         - valid_values:
112           - management
113           - left
114           - right
115           - other
116     service_instance_name:
117       hidden: false
118       immutable: false
119       type: string
120       description: Service instance name
121       required: true
122       status: SUPPORTED
123     interface_list:
124       hidden: false
125       immutable: false
126       type: list
127       description: List of interfaces
128       required: false
129       status: SUPPORTED
130       entry_schema:
131         type: org.openecomp.datatypes.heat.network.contrail.InterfaceData
132     service_mode:
133       hidden: false
134       immutable: false
135       type: string
136       description: Service mode
137       required: true
138       status: SUPPORTED
139       constraints:
140       - valid_values:
141         - transparent
142         - in-network
143         - in-network-nat
144     shared_ip_list:
145       hidden: false
146       immutable: false
147       type: list
148       description: Shared ips enabled
149       required: false
150       status: SUPPORTED
151       entry_schema:
152         type: boolean
153   node_templates:
154     service_instance_1:
155       type: org.openecomp.resource.vfc.nodes.heat.compute_service_template_1
156       properties:
157         flavor:
158           get_input: flavor
159         image_name:
160           get_input: image_name
161         availability_zone:
162           get_input: availability_zone
163         service_type:
164           get_input: service_type
165         availability_zone_enable:
166           get_input: availability_zone_enable
167         service_template_name:
168           get_input: service_template_name
169         service_instance_name:
170           get_input: service_instance_name
171         service_mode:
172           get_input: service_mode
173     port_0:
174       type: org.openecomp.resource.cp.nodes.heat.network.contrail.Port
175       properties:
176         static_routes:
177           get_input:
178           - interface_list
179           - 0
180           - static_routes
181         virtual_network:
182           get_input:
183           - interface_list
184           - 0
185           - virtual_network
186         static_route:
187           get_input:
188           - static_routes_list
189           - 0
190         allowed_address_pairs:
191           get_input:
192           - interface_list
193           - 0
194           - allowed_address_pairs
195         shared_ip:
196           get_input:
197           - shared_ip_list
198           - 0
199         ip_address:
200           get_input:
201           - interface_list
202           - 0
203           - ip_address
204         interface_type:
205           get_input:
206           - service_interface_type_list
207           - 0
208       requirements:
209       - binding:
210           capability: tosca.capabilities.network.Bindable
211           node: service_instance_1
212           relationship: tosca.relationships.network.BindsTo
213     port_1:
214       type: org.openecomp.resource.cp.nodes.heat.network.contrail.Port
215       properties:
216         static_routes:
217           get_input:
218           - interface_list
219           - 1
220           - static_routes
221         virtual_network:
222           get_input:
223           - interface_list
224           - 1
225           - virtual_network
226         static_route:
227           get_input:
228           - static_routes_list
229           - 1
230         allowed_address_pairs:
231           get_input:
232           - interface_list
233           - 1
234           - allowed_address_pairs
235         shared_ip:
236           get_input:
237           - shared_ip_list
238           - 1
239         ip_address:
240           get_input:
241           - interface_list
242           - 1
243           - ip_address
244         interface_type:
245           get_input:
246           - service_interface_type_list
247           - 1
248       requirements:
249       - binding:
250           capability: tosca.capabilities.network.Bindable
251           node: service_instance_1
252           relationship: tosca.relationships.network.BindsTo
253     port_2:
254       type: org.openecomp.resource.cp.nodes.heat.network.contrail.Port
255       properties:
256         static_routes:
257           get_input:
258           - interface_list
259           - 2
260           - static_routes
261         virtual_network:
262           get_input:
263           - interface_list
264           - 2
265           - virtual_network
266         static_route:
267           get_input:
268           - static_routes_list
269           - 2
270         allowed_address_pairs:
271           get_input:
272           - interface_list
273           - 2
274           - allowed_address_pairs
275         shared_ip:
276           get_input:
277           - shared_ip_list
278           - 2
279         ip_address:
280           get_input:
281           - interface_list
282           - 2
283           - ip_address
284         interface_type:
285           get_input:
286           - service_interface_type_list
287           - 2
288       requirements:
289       - binding:
290           capability: tosca.capabilities.network.Bindable
291           node: service_instance_1
292           relationship: tosca.relationships.network.BindsTo
293     port_3:
294       type: org.openecomp.resource.cp.nodes.heat.network.contrail.Port
295       properties:
296         static_routes:
297           get_input:
298           - interface_list
299           - 3
300           - static_routes
301         virtual_network:
302           get_input:
303           - interface_list
304           - 3
305           - virtual_network
306         static_route:
307           get_input:
308           - static_routes_list
309           - 3
310         allowed_address_pairs:
311           get_input:
312           - interface_list
313           - 3
314           - allowed_address_pairs
315         shared_ip:
316           get_input:
317           - shared_ip_list
318           - 3
319         ip_address:
320           get_input:
321           - interface_list
322           - 3
323           - ip_address
324         interface_type:
325           get_input:
326           - service_interface_type_list
327           - 3
328       requirements:
329       - binding:
330           capability: tosca.capabilities.network.Bindable
331           node: service_instance_1
332           relationship: tosca.relationships.network.BindsTo
333   groups:
334     service_instance_1:
335       type: org.openecomp.groups.heat.HeatStack
336       properties:
337         heat_file: ../Artifacts/OCS-fw.yml
338       members:
339       - service_instance_1
340       - port_0
341       - port_1
342       - port_2
343       - port_3
344   outputs:
345     tenant_id:
346       description: Tenant id of the Service Instance
347       value:
348         get_attribute:
349         - service_instance_1
350         - tenant_id
351     fq_name:
352       description: The FQ name of the service instance
353       value:
354         get_attribute:
355         - service_instance_1
356         - fq_name
357     service_template_name:
358       description: Service Template of the Service Instance
359       value:
360         get_attribute:
361         - service_instance_1
362         - service_template_name
363     show:
364       description: All attributes
365       value:
366         get_attribute:
367         - service_instance_1
368         - show
369     active_vms:
370       description: Number of service VMs active for this Service Instance
371       value:
372         get_attribute:
373         - service_instance_1
374         - active_vms
375     service_instance_name:
376       description: The name of the service instance
377       value:
378         get_attribute:
379         - service_instance_1
380         - service_instance_name
381     virtual_machines:
382       description: Service VMs for the Service Instance
383       value:
384         get_attribute:
385         - service_instance_1
386         - virtual_machines
387     status:
388       description: Status of the service instance
389       value:
390         get_attribute:
391         - service_instance_1
392         - status
393   substitution_mappings:
394     node_type: org.openecomp.resource.abstract.nodes.heat.service_template_1
395     requirements:
396       link_port_0:
397       - port_0
398       - link
399       link_port_1:
400       - port_1
401       - link
402       link_port_2:
403       - port_2
404       - link
405       link_port_3:
406       - port_3
407       - link