push addional code
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / contrail2serviceinstance / diffServiceTemplate / expectedoutputfiles / service_instance_2ServiceTemplate.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: service_instance_2
4 imports:
5   ContrailComputeGlobalTypes:
6     file: ContrailComputeGlobalTypesServiceTemplate.yaml
7   CinderVolumeGlobalTypes:
8     file: CinderVolumeGlobalTypesServiceTemplate.yaml
9   ContrailVirtualNetworkGlobalType:
10     file: ContrailVirtualNetworkGlobalTypeServiceTemplate.yaml
11   AbstractSubstituteGlobalTypes:
12     file: AbstractSubstituteGlobalTypesServiceTemplate.yaml
13   ContrailPortGlobalTypes:
14     file: ContrailPortGlobalTypesServiceTemplate.yaml
15   GlobalSubstitutionTypes:
16     file: GlobalSubstitutionTypesServiceTemplate.yaml
17   NeutronPortGlobalTypes:
18     file: NeutronPortGlobalTypesServiceTemplate.yaml
19   NeutronNetGlobalTypes:
20     file: NeutronNetGlobalTypesServiceTemplate.yaml
21   CommonGlobalTypes:
22     file: CommonGlobalTypesServiceTemplate.yaml
23   ContrailAbstractSubstituteGlobalTypes:
24     file: ContrailAbstractSubstituteGlobalTypesServiceTemplate.yaml
25   ContrailNetworkRuleGlobalType:
26     file: ContrailNetworkRuleGlobalTypeServiceTemplate.yaml
27   NeutronSecurityRulesGlobalTypes:
28     file: NeutronSecurityRulesGlobalTypesServiceTemplate.yaml
29   NovaServerGlobalTypes:
30     file: NovaServerGlobalTypesServiceTemplate.yaml
31   ContrailV2VirtualMachineInterfaceGlobalType:
32     file: ContrailV2VirtualMachineInterfaceGlobalTypeServiceTemplate.yaml
33 topology_template:
34   inputs:
35     availability_zone:
36       hidden: false
37       immutable: false
38       type: string
39       description: Availability zone to create servers in
40       required: false
41       status: SUPPORTED
42     static_routes_list:
43       hidden: false
44       immutable: false
45       type: list
46       description: Static routes enabled
47       required: false
48       status: SUPPORTED
49       entry_schema:
50         type: boolean
51     availability_zone_enable:
52       hidden: false
53       immutable: false
54       type: boolean
55       description: Indicates availability zone is enabled
56       required: false
57       default: false
58       status: SUPPORTED
59     service_template_name:
60       hidden: false
61       immutable: false
62       type: string
63       description: Service template name
64       required: false
65       status: SUPPORTED
66     ordered_interfaces:
67       hidden: false
68       immutable: false
69       type: boolean
70       description: Indicates if service interface are ordered
71       required: false
72       default: false
73       status: SUPPORTED
74     flavor:
75       hidden: false
76       immutable: false
77       type: string
78       description: flavor
79       required: false
80       status: SUPPORTED
81     image_name:
82       hidden: false
83       immutable: false
84       type: string
85       description: Image name
86       required: true
87       status: SUPPORTED
88     service_type:
89       hidden: false
90       immutable: false
91       type: string
92       description: Service type
93       required: true
94       status: SUPPORTED
95       constraints:
96       - valid_values:
97         - firewall
98         - analyzer
99         - source-nat
100         - loadbalancer
101     service_interface_type_list:
102       hidden: false
103       immutable: false
104       type: list
105       description: List of interface types
106       required: true
107       status: SUPPORTED
108       entry_schema:
109         type: string
110         constraints:
111         - valid_values:
112           - management
113           - left
114           - right
115           - other
116     service_instance_name:
117       hidden: false
118       immutable: false
119       type: string
120       description: Service instance name
121       required: true
122       status: SUPPORTED
123     interface_list:
124       hidden: false
125       immutable: false
126       type: list
127       description: List of interfaces
128       required: false
129       status: SUPPORTED
130       entry_schema:
131         type: org.openecomp.datatypes.heat.network.contrail.InterfaceData
132     service_mode:
133       hidden: false
134       immutable: false
135       type: string
136       description: Service mode
137       required: true
138       status: SUPPORTED
139       constraints:
140       - valid_values:
141         - transparent
142         - in-network
143         - in-network-nat
144     shared_ip_list:
145       hidden: false
146       immutable: false
147       type: list
148       description: Shared ips enabled
149       required: false
150       status: SUPPORTED
151       entry_schema:
152         type: boolean
153   node_templates:
154     service_instance_2:
155       type: org.openecomp.resource.vfc.nodes.heat.st
156       properties:
157         flavor:
158           get_input: flavor
159         image_name:
160           get_input: image_name
161         availability_zone:
162           get_input: availability_zone
163         service_type:
164           get_input: service_type
165         availability_zone_enable:
166           get_input: availability_zone_enable
167         service_template_name:
168           get_input: service_template_name
169         service_instance_name:
170           get_input: service_instance_name
171         service_mode:
172           get_input: service_mode
173     port_0:
174       type: org.openecomp.resource.cp.nodes.heat.network.contrail.Port
175       properties:
176         static_routes:
177           get_input:
178           - interface_list
179           - 0
180           - static_routes
181         virtual_network:
182           get_input:
183           - interface_list
184           - 0
185           - virtual_network
186         static_route:
187           get_input:
188           - static_routes_list
189           - 0
190         allowed_address_pairs:
191           get_input:
192           - interface_list
193           - 0
194           - allowed_address_pairs
195         shared_ip:
196           get_input:
197           - shared_ip_list
198           - 0
199         ip_address:
200           get_input:
201           - interface_list
202           - 0
203           - ip_address
204         interface_type:
205           get_input:
206           - service_interface_type_list
207           - 0
208       requirements:
209       - binding:
210           capability: tosca.capabilities.network.Bindable
211           node: service_instance_2
212           relationship: tosca.relationships.network.BindsTo
213     port_1:
214       type: org.openecomp.resource.cp.nodes.heat.network.contrail.Port
215       properties:
216         static_routes:
217           get_input:
218           - interface_list
219           - 1
220           - static_routes
221         virtual_network:
222           get_input:
223           - interface_list
224           - 1
225           - virtual_network
226         static_route:
227           get_input:
228           - static_routes_list
229           - 1
230         allowed_address_pairs:
231           get_input:
232           - interface_list
233           - 1
234           - allowed_address_pairs
235         shared_ip:
236           get_input:
237           - shared_ip_list
238           - 1
239         ip_address:
240           get_input:
241           - interface_list
242           - 1
243           - ip_address
244         interface_type:
245           get_input:
246           - service_interface_type_list
247           - 1
248       requirements:
249       - binding:
250           capability: tosca.capabilities.network.Bindable
251           node: service_instance_2
252           relationship: tosca.relationships.network.BindsTo
253   groups:
254     service_instance_2:
255       type: org.openecomp.groups.heat.HeatStack
256       properties:
257         heat_file: ../Artifacts/OCS-fw.yml
258       members:
259       - service_instance_2
260       - port_0
261       - port_1
262   outputs:
263     tenant_id:
264       description: Tenant id of the Service Instance
265       value:
266         get_attribute:
267         - service_instance_2
268         - tenant_id
269     fq_name:
270       description: The FQ name of the service instance
271       value:
272         get_attribute:
273         - service_instance_2
274         - fq_name
275     service_template_name:
276       description: Service Template of the Service Instance
277       value:
278         get_attribute:
279         - service_instance_2
280         - service_template_name
281     show:
282       description: All attributes
283       value:
284         get_attribute:
285         - service_instance_2
286         - show
287     active_vms:
288       description: Number of service VMs active for this Service Instance
289       value:
290         get_attribute:
291         - service_instance_2
292         - active_vms
293     service_instance_name:
294       description: The name of the service instance
295       value:
296         get_attribute:
297         - service_instance_2
298         - service_instance_name
299     virtual_machines:
300       description: Service VMs for the Service Instance
301       value:
302         get_attribute:
303         - service_instance_2
304         - virtual_machines
305     status:
306       description: Status of the service instance
307       value:
308         get_attribute:
309         - service_instance_2
310         - status
311   substitution_mappings:
312     node_type: org.openecomp.resource.abstract.nodes.heat.service_template_2
313     requirements:
314       link_port_0:
315       - port_0
316       - link
317       link_port_1:
318       - port_1
319       - link