[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 / diffServiceTemplate / 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.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_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   groups:
240     service_instance_2_group:
241       type: org.openecomp.groups.heat.HeatStack
242       properties:
243         heat_file: ../Artifacts/OCS-fw.yml
244       members:
245       - service_instance_2
246       - port_0
247       - port_1
248   outputs:
249     tenant_id:
250       description: Tenant id of the Service Instance
251       value:
252         get_attribute:
253         - service_instance_2
254         - tenant_id
255     fq_name:
256       description: The FQ name of the service instance
257       value:
258         get_attribute:
259         - service_instance_2
260         - fq_name
261     service_template_name:
262       description: Service Template of the Service Instance
263       value:
264         get_attribute:
265         - service_instance_2
266         - service_template_name
267     show:
268       description: All attributes
269       value:
270         get_attribute:
271         - service_instance_2
272         - show
273     active_vms:
274       description: Number of service VMs active for this Service Instance
275       value:
276         get_attribute:
277         - service_instance_2
278         - active_vms
279     service_instance_name:
280       description: The name of the service instance
281       value:
282         get_attribute:
283         - service_instance_2
284         - service_instance_name
285     virtual_machines:
286       description: Service VMs for the Service Instance
287       value:
288         get_attribute:
289         - service_instance_2
290         - virtual_machines
291     status:
292       description: Status of the service instance
293       value:
294         get_attribute:
295         - service_instance_2
296         - status
297   substitution_mappings:
298     node_type: org.openecomp.resource.abstract.nodes.heat.service_template_2
299     requirements:
300       link_port_0:
301       - port_0
302       - link
303       link_port_1:
304       - port_1
305       - link