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