[sdc] docker file fix for cassandra
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / contrail2serviceinstance / sharedNetworkNested / expectedoutputfiles / service_instanceServiceTemplate.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: service_instance
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     port_0:
155       type: org.openecomp.resource.cp.nodes.heat.network.contrail.Port
156       properties:
157         static_routes:
158           get_input:
159           - interface_list
160           - 0
161           - static_routes
162         virtual_network:
163           get_input:
164           - interface_list
165           - 0
166           - virtual_network
167         static_route:
168           get_input:
169           - static_routes_list
170           - 0
171         allowed_address_pairs:
172           get_input:
173           - interface_list
174           - 0
175           - allowed_address_pairs
176         shared_ip:
177           get_input:
178           - shared_ip_list
179           - 0
180         ip_address:
181           get_input:
182           - interface_list
183           - 0
184           - ip_address
185         interface_type:
186           get_input:
187           - service_interface_type_list
188           - 0
189       requirements:
190       - binding:
191           capability: tosca.capabilities.network.Bindable
192           node: service_instance
193           relationship: tosca.relationships.network.BindsTo
194     service_instance:
195       type: org.openecomp.resource.vfc.nodes.heat.st_image
196       properties:
197         flavor:
198           get_input: flavor
199         image_name:
200           get_input: image_name
201         availability_zone:
202           get_input: availability_zone
203         service_type:
204           get_input: service_type
205         availability_zone_enable:
206           get_input: availability_zone_enable
207         service_template_name:
208           get_input: service_template_name
209         service_instance_name:
210           get_input: service_instance_name
211         service_mode:
212           get_input: service_mode
213   groups:
214     service_instance:
215       type: org.openecomp.groups.heat.HeatStack
216       properties:
217         heat_file: ../Artifacts/OCS-fw.yml
218       members:
219       - service_instance
220       - port_0
221   outputs:
222     tenant_id:
223       description: Tenant id of the Service Instance
224       value:
225         get_attribute:
226         - service_instance
227         - tenant_id
228     fq_name:
229       description: The FQ name of the service instance
230       value:
231         get_attribute:
232         - service_instance
233         - fq_name
234     service_template_name:
235       description: Service Template of the Service Instance
236       value:
237         get_attribute:
238         - service_instance
239         - service_template_name
240     show:
241       description: All attributes
242       value:
243         get_attribute:
244         - service_instance
245         - show
246     active_vms:
247       description: Number of service VMs active for this Service Instance
248       value:
249         get_attribute:
250         - service_instance
251         - active_vms
252     service_instance_name:
253       description: The name of the service instance
254       value:
255         get_attribute:
256         - service_instance
257         - service_instance_name
258     virtual_machines:
259       description: Service VMs for the Service Instance
260       value:
261         get_attribute:
262         - service_instance
263         - virtual_machines
264     status:
265       description: Status of the service instance
266       value:
267         get_attribute:
268         - service_instance
269         - status
270   substitution_mappings:
271     node_type: org.openecomp.resource.abstract.nodes.heat.service_template
272     requirements:
273       link_port_0:
274       - port_0
275       - link