[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 / connectToNetworkMultiNested / expectedoutputfiles / OCS-fw_service_instance1ServiceTemplate.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: OCS-fw_service_instance1
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_instance1:
131       type: org.openecomp.resource.vfc.nodes.heat.st
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_instance1
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_instance1
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_instance1
278           relationship: tosca.relationships.network.BindsTo
279   groups:
280     service_instance1_group:
281       type: org.openecomp.groups.heat.HeatStack
282       properties:
283         heat_file: ../Artifacts/OCS-fw.yml
284       members:
285       - service_instance1
286       - port_0
287       - port_1
288       - port_2
289   outputs:
290     tenant_id:
291       description: Tenant id of the Service Instance
292       value:
293         get_attribute:
294         - service_instance1
295         - tenant_id
296     fq_name:
297       description: The FQ name of the service instance
298       value:
299         get_attribute:
300         - service_instance1
301         - fq_name
302     service_template_name:
303       description: Service Template of the Service Instance
304       value:
305         get_attribute:
306         - service_instance1
307         - service_template_name
308     show:
309       description: All attributes
310       value:
311         get_attribute:
312         - service_instance1
313         - show
314     active_vms:
315       description: Number of service VMs active for this Service Instance
316       value:
317         get_attribute:
318         - service_instance1
319         - active_vms
320     service_instance_name:
321       description: The name of the service instance
322       value:
323         get_attribute:
324         - service_instance1
325         - service_instance_name
326     virtual_machines:
327       description: Service VMs for the Service Instance
328       value:
329         get_attribute:
330         - service_instance1
331         - virtual_machines
332     status:
333       description: Status of the service instance
334       value:
335         get_attribute:
336         - service_instance1
337         - status
338   substitution_mappings:
339     node_type: org.openecomp.resource.abstract.nodes.heat.service_template
340     requirements:
341       link_port_0:
342       - port_0
343       - link
344       link_port_1:
345       - port_1
346       - link
347       link_port_2:
348       - port_2
349       - link