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