[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 / sameServiceTemplate / expectedoutputfiles / OCS-fw_service_instance_1ServiceTemplate.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: OCS-fw_service_instance_1
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     service_instance_1:
131       type: org.openecomp.resource.vfc.nodes.heat.compute_service_template
132       properties:
133         flavor:
134           get_input: flavor
135         image_name:
136           get_input: image_name
137         availability_zone:
138           get_input: availability_zone
139         service_type:
140           get_input: service_type
141         availability_zone_enable:
142           get_input: availability_zone_enable
143         service_template_name:
144           get_input: service_template_name
145         service_instance_name:
146           get_input: service_instance_name
147         service_mode:
148           get_input: service_mode
149     port_0:
150       type: org.openecomp.resource.cp.nodes.heat.network.contrail.Port
151       properties:
152         static_routes:
153           get_input:
154           - interface_list
155           - 0
156           - static_routes
157         virtual_network:
158           get_input:
159           - interface_list
160           - 0
161           - virtual_network
162         static_route:
163           get_input:
164           - static_routes_list
165           - 0
166         allowed_address_pairs:
167           get_input:
168           - interface_list
169           - 0
170           - allowed_address_pairs
171         shared_ip:
172           get_input:
173           - shared_ip_list
174           - 0
175         ip_address:
176           get_input:
177           - interface_list
178           - 0
179           - ip_address
180         interface_type:
181           get_input:
182           - service_interface_type_list
183           - 0
184       requirements:
185       - binding:
186           capability: tosca.capabilities.network.Bindable
187           node: service_instance_1
188           relationship: tosca.relationships.network.BindsTo
189     port_1:
190       type: org.openecomp.resource.cp.nodes.heat.network.contrail.Port
191       properties:
192         static_routes:
193           get_input:
194           - interface_list
195           - 1
196           - static_routes
197         virtual_network:
198           get_input:
199           - interface_list
200           - 1
201           - virtual_network
202         static_route:
203           get_input:
204           - static_routes_list
205           - 1
206         allowed_address_pairs:
207           get_input:
208           - interface_list
209           - 1
210           - allowed_address_pairs
211         shared_ip:
212           get_input:
213           - shared_ip_list
214           - 1
215         ip_address:
216           get_input:
217           - interface_list
218           - 1
219           - ip_address
220         interface_type:
221           get_input:
222           - service_interface_type_list
223           - 1
224       requirements:
225       - binding:
226           capability: tosca.capabilities.network.Bindable
227           node: service_instance_1
228           relationship: tosca.relationships.network.BindsTo
229     port_2:
230       type: org.openecomp.resource.cp.nodes.heat.network.contrail.Port
231       properties:
232         static_routes:
233           get_input:
234           - interface_list
235           - 2
236           - static_routes
237         virtual_network:
238           get_input:
239           - interface_list
240           - 2
241           - virtual_network
242         static_route:
243           get_input:
244           - static_routes_list
245           - 2
246         allowed_address_pairs:
247           get_input:
248           - interface_list
249           - 2
250           - allowed_address_pairs
251         shared_ip:
252           get_input:
253           - shared_ip_list
254           - 2
255         ip_address:
256           get_input:
257           - interface_list
258           - 2
259           - ip_address
260         interface_type:
261           get_input:
262           - service_interface_type_list
263           - 2
264       requirements:
265       - binding:
266           capability: tosca.capabilities.network.Bindable
267           node: service_instance_1
268           relationship: tosca.relationships.network.BindsTo
269     port_3:
270       type: org.openecomp.resource.cp.nodes.heat.network.contrail.Port
271       properties:
272         static_routes:
273           get_input:
274           - interface_list
275           - 3
276           - static_routes
277         virtual_network:
278           get_input:
279           - interface_list
280           - 3
281           - virtual_network
282         static_route:
283           get_input:
284           - static_routes_list
285           - 3
286         allowed_address_pairs:
287           get_input:
288           - interface_list
289           - 3
290           - allowed_address_pairs
291         shared_ip:
292           get_input:
293           - shared_ip_list
294           - 3
295         ip_address:
296           get_input:
297           - interface_list
298           - 3
299           - ip_address
300         interface_type:
301           get_input:
302           - service_interface_type_list
303           - 3
304       requirements:
305       - binding:
306           capability: tosca.capabilities.network.Bindable
307           node: service_instance_1
308           relationship: tosca.relationships.network.BindsTo
309   groups:
310     service_instance_1_group:
311       type: org.openecomp.groups.heat.HeatStack
312       properties:
313         heat_file: ../Artifacts/OCS-fw.yml
314       members:
315       - service_instance_1
316       - port_0
317       - port_1
318       - port_2
319       - port_3
320   outputs:
321     tenant_id:
322       description: Tenant id of the Service Instance
323       value:
324         get_attribute:
325         - service_instance_1
326         - tenant_id
327     fq_name:
328       description: The FQ name of the service instance
329       value:
330         get_attribute:
331         - service_instance_1
332         - fq_name
333     service_template_name:
334       description: Service Template of the Service Instance
335       value:
336         get_attribute:
337         - service_instance_1
338         - service_template_name
339     show:
340       description: All attributes
341       value:
342         get_attribute:
343         - service_instance_1
344         - show
345     active_vms:
346       description: Number of service VMs active for this Service Instance
347       value:
348         get_attribute:
349         - service_instance_1
350         - active_vms
351     service_instance_name:
352       description: The name of the service instance
353       value:
354         get_attribute:
355         - service_instance_1
356         - service_instance_name
357     virtual_machines:
358       description: Service VMs for the Service Instance
359       value:
360         get_attribute:
361         - service_instance_1
362         - virtual_machines
363     status:
364       description: Status of the service instance
365       value:
366         get_attribute:
367         - service_instance_1
368         - status
369   substitution_mappings:
370     node_type: org.openecomp.resource.abstract.nodes.heat.service_template
371     requirements:
372       link_port_0:
373       - port_0
374       - link
375       link_port_1:
376       - port_1
377       - link
378       link_port_2:
379       - port_2
380       - link
381       link_port_3:
382       - port_3
383       - link