[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 / sharedNetworkMulti / expectedoutputfiles / service_instanceServiceTemplate.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: service_instance
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     port_0:
155       type: org.openecomp.resource.cp.nodes.heat.network.contrail.Port
156       properties:
157         static_routes:
158           get_input:
159           - interface_list
160           - 0
161           - static_routes
162         virtual_network:
163           get_input:
164           - interface_list
165           - 0
166           - virtual_network
167         static_route:
168           get_input:
169           - static_routes_list
170           - 0
171         allowed_address_pairs:
172           get_input:
173           - interface_list
174           - 0
175           - allowed_address_pairs
176         shared_ip:
177           get_input:
178           - shared_ip_list
179           - 0
180         ip_address:
181           get_input:
182           - interface_list
183           - 0
184           - ip_address
185         interface_type:
186           get_input:
187           - service_interface_type_list
188           - 0
189       requirements:
190       - binding:
191           capability: tosca.capabilities.network.Bindable
192           node: service_instance
193           relationship: tosca.relationships.network.BindsTo
194     port_1:
195       type: org.openecomp.resource.cp.nodes.heat.network.contrail.Port
196       properties:
197         static_routes:
198           get_input:
199           - interface_list
200           - 1
201           - static_routes
202         virtual_network:
203           get_input:
204           - interface_list
205           - 1
206           - virtual_network
207         static_route:
208           get_input:
209           - static_routes_list
210           - 1
211         allowed_address_pairs:
212           get_input:
213           - interface_list
214           - 1
215           - allowed_address_pairs
216         shared_ip:
217           get_input:
218           - shared_ip_list
219           - 1
220         ip_address:
221           get_input:
222           - interface_list
223           - 1
224           - ip_address
225         interface_type:
226           get_input:
227           - service_interface_type_list
228           - 1
229       requirements:
230       - binding:
231           capability: tosca.capabilities.network.Bindable
232           node: service_instance
233           relationship: tosca.relationships.network.BindsTo
234     port_2:
235       type: org.openecomp.resource.cp.nodes.heat.network.contrail.Port
236       properties:
237         static_routes:
238           get_input:
239           - interface_list
240           - 2
241           - static_routes
242         virtual_network:
243           get_input:
244           - interface_list
245           - 2
246           - virtual_network
247         static_route:
248           get_input:
249           - static_routes_list
250           - 2
251         allowed_address_pairs:
252           get_input:
253           - interface_list
254           - 2
255           - allowed_address_pairs
256         shared_ip:
257           get_input:
258           - shared_ip_list
259           - 2
260         ip_address:
261           get_input:
262           - interface_list
263           - 2
264           - ip_address
265         interface_type:
266           get_input:
267           - service_interface_type_list
268           - 2
269       requirements:
270       - binding:
271           capability: tosca.capabilities.network.Bindable
272           node: service_instance
273           relationship: tosca.relationships.network.BindsTo
274     port_3:
275       type: org.openecomp.resource.cp.nodes.heat.network.contrail.Port
276       properties:
277         static_routes:
278           get_input:
279           - interface_list
280           - 3
281           - static_routes
282         virtual_network:
283           get_input:
284           - interface_list
285           - 3
286           - virtual_network
287         static_route:
288           get_input:
289           - static_routes_list
290           - 3
291         allowed_address_pairs:
292           get_input:
293           - interface_list
294           - 3
295           - allowed_address_pairs
296         shared_ip:
297           get_input:
298           - shared_ip_list
299           - 3
300         ip_address:
301           get_input:
302           - interface_list
303           - 3
304           - ip_address
305         interface_type:
306           get_input:
307           - service_interface_type_list
308           - 3
309       requirements:
310       - binding:
311           capability: tosca.capabilities.network.Bindable
312           node: service_instance
313           relationship: tosca.relationships.network.BindsTo
314     port_4:
315       type: org.openecomp.resource.cp.nodes.heat.network.contrail.Port
316       properties:
317         static_routes:
318           get_input:
319           - interface_list
320           - 4
321           - static_routes
322         virtual_network:
323           get_input:
324           - interface_list
325           - 4
326           - virtual_network
327         static_route:
328           get_input:
329           - static_routes_list
330           - 4
331         allowed_address_pairs:
332           get_input:
333           - interface_list
334           - 4
335           - allowed_address_pairs
336         shared_ip:
337           get_input:
338           - shared_ip_list
339           - 4
340         ip_address:
341           get_input:
342           - interface_list
343           - 4
344           - ip_address
345         interface_type:
346           get_input:
347           - service_interface_type_list
348           - 4
349       requirements:
350       - binding:
351           capability: tosca.capabilities.network.Bindable
352           node: service_instance
353           relationship: tosca.relationships.network.BindsTo
354     service_instance:
355       type: org.openecomp.resource.vfc.nodes.heat.compute_service_template
356       properties:
357         flavor:
358           get_input: flavor
359         image_name:
360           get_input: image_name
361         availability_zone:
362           get_input: availability_zone
363         service_type:
364           get_input: service_type
365         availability_zone_enable:
366           get_input: availability_zone_enable
367         service_template_name:
368           get_input: service_template_name
369         service_instance_name:
370           get_input: service_instance_name
371         service_mode:
372           get_input: service_mode
373   groups:
374     service_instance:
375       type: org.openecomp.groups.heat.HeatStack
376       properties:
377         heat_file: ../Artifacts/OCS-fw.yml
378       members:
379       - service_instance
380       - port_0
381       - port_1
382       - port_2
383       - port_3
384       - port_4
385   outputs:
386     tenant_id:
387       description: Tenant id of the Service Instance
388       value:
389         get_attribute:
390         - service_instance
391         - tenant_id
392     fq_name:
393       description: The FQ name of the service instance
394       value:
395         get_attribute:
396         - service_instance
397         - fq_name
398     service_template_name:
399       description: Service Template of the Service Instance
400       value:
401         get_attribute:
402         - service_instance
403         - service_template_name
404     show:
405       description: All attributes
406       value:
407         get_attribute:
408         - service_instance
409         - show
410     active_vms:
411       description: Number of service VMs active for this Service Instance
412       value:
413         get_attribute:
414         - service_instance
415         - active_vms
416     service_instance_name:
417       description: The name of the service instance
418       value:
419         get_attribute:
420         - service_instance
421         - service_instance_name
422     virtual_machines:
423       description: Service VMs for the Service Instance
424       value:
425         get_attribute:
426         - service_instance
427         - virtual_machines
428     status:
429       description: Status of the service instance
430       value:
431         get_attribute:
432         - service_instance
433         - status
434   substitution_mappings:
435     node_type: org.openecomp.resource.abstract.nodes.heat.service_template
436     requirements:
437       link_port_0:
438       - port_0
439       - link
440       link_port_1:
441       - port_1
442       - link
443       link_port_2:
444       - port_2
445       - link
446       link_port_3:
447       - port_3
448       - link
449       link_port_4:
450       - port_4
451       - link