[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 / novatovolumeconnection / multinotconnected / expectedoutputfiles / MainServiceTemplate.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: Main
4 imports:
5 - openecomp_heat_index:
6     file: openecomp-heat/_index.yml
7 node_types:
8   org.openecomp.resource.vfc.nodes.heat.cmaui:
9     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
10 topology_template:
11   inputs:
12     cmaui_names:
13       hidden: false
14       immutable: false
15       type: list
16       description: CMAUI1, CMAUI2 server names
17       entry_schema:
18         type: string
19     availability_zone_10:
20       label: availabilityzone name
21       hidden: false
22       immutable: false
23       type: string
24       description: availabilityzone name
25     cmaui_cinder_volume_size:
26       label: CMAUI Cinder volume size
27       hidden: false
28       immutable: false
29       type: float
30       description: the size of the CMAUI Cinder volume
31     timezone:
32       label: timezone
33       hidden: false
34       immutable: false
35       type: string
36       description: timezone
37     security_group_name:
38       label: security group name
39       hidden: false
40       immutable: false
41       type: string
42       description: the name of security group
43     cmaui_volume:
44       label: CMAUI vm volume type
45       hidden: false
46       immutable: false
47       type: string
48       description: the name of the target volume backend
49     oam_network_netmask:
50       label: oam network netmask
51       hidden: false
52       immutable: false
53       type: string
54       description: oam network gateway
55     cmaui_image:
56       hidden: false
57       immutable: false
58       type: string
59       description: Image for CMAUI server
60     cmaui_volume_param1:
61       hidden: false
62       immutable: false
63       type: string
64       description: nova server id
65     vnf_id:
66       hidden: false
67       immutable: false
68       type: string
69       description: Unique ID for this VNF instance
70       default: This_is_ths_MMSC-CMAUI_id
71     cmaui_flavor:
72       hidden: false
73       immutable: false
74       type: string
75       description: Flavor for CMAUI server
76     oam_network_gateway:
77       label: oam network gateway
78       hidden: false
79       immutable: false
80       type: string
81       description: oam network gateway
82     cmaui_volume_param2:
83       hidden: false
84       immutable: false
85       type: string
86       description: nova server id
87     availability_zone_0:
88       label: availabilityzone name
89       hidden: false
90       immutable: false
91       type: string
92       description: availabilityzone name
93     cmaui_oam_ips:
94       label: CMAUI oam_net IP addresses
95       hidden: false
96       immutable: false
97       type: list
98       description: CMAUI oam_net IP addresses
99       entry_schema:
100         type: string
101     external_dns:
102       label: dns server
103       hidden: false
104       immutable: false
105       type: string
106       description: dns server
107     server_cmaui21:
108       hidden: false
109       immutable: false
110       type: string
111       description: nova server id
112     oam_net_name:
113       hidden: false
114       immutable: false
115       type: string
116       description: UID of OAM network
117     CMAUI_volume_type:
118       label: CMAUI vm volume type
119       hidden: false
120       immutable: false
121       type: string
122       description: the name of the target volume backend
123     external_ntp:
124       label: ntp server
125       hidden: false
126       immutable: false
127       type: string
128       description: ntp server
129   node_templates:
130     cmaui_port_2:
131       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
132       properties:
133         replacement_policy: AUTO
134         ip_requirements:
135         - ip_version: 4
136           ip_count_required:
137             is_required: true
138           floating_ip_count_required:
139             is_required: false
140         security_groups:
141         - get_input: security_group_name
142         fixed_ips:
143         - ip_address:
144             get_input:
145             - cmaui_oam_ips
146             - 0
147         mac_requirements:
148           mac_count_required:
149             is_required: false
150         network_role_tag: oam
151         network:
152           get_input: oam_net_name
153       requirements:
154       - binding:
155           capability: tosca.capabilities.network.Bindable
156           node: server_cmaui2
157           relationship: tosca.relationships.network.BindsTo
158     cmaui_port_11:
159       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
160       properties:
161         replacement_policy: AUTO
162         ip_requirements:
163         - ip_version: 4
164           ip_count_required:
165             is_required: true
166           floating_ip_count_required:
167             is_required: false
168         security_groups:
169         - get_input: security_group_name
170         fixed_ips:
171         - ip_address:
172             get_input:
173             - cmaui_oam_ips
174             - 0
175         mac_requirements:
176           mac_count_required:
177             is_required: false
178         network_role_tag: oam
179         network:
180           get_input: oam_net_name
181       requirements:
182       - binding:
183           capability: tosca.capabilities.network.Bindable
184           node: server_cmaui21
185           relationship: tosca.relationships.network.BindsTo
186     server_cmaui2:
187       type: org.openecomp.resource.vfc.nodes.heat.cmaui
188       properties:
189         flavor:
190           get_input: cmaui_flavor
191         availability_zone:
192           get_input: availability_zone_0
193         image:
194           get_input: cmaui_image
195         metadata:
196           vnf_id:
197             get_input: vnf_id
198         user_data_format: RAW
199         name:
200           get_input:
201           - cmaui_names
202           - 0
203       requirements:
204       - local_storage:
205           capability: tosca.capabilities.Attachment
206           node: cmaui_volume2
207           relationship: cmaui_volume_attachment3
208     server_cmaui1:
209       type: org.openecomp.resource.vfc.nodes.heat.cmaui
210       properties:
211         flavor:
212           get_input: cmaui_flavor
213         availability_zone:
214           get_input: availability_zone_0
215         image:
216           get_input: cmaui_image
217         metadata:
218           vnf_id:
219             get_input: vnf_id
220         user_data_format: RAW
221         name:
222           get_input:
223           - cmaui_names
224           - 0
225       requirements:
226       - local_storage:
227           capability: tosca.capabilities.Attachment
228           node: cmaui_volume2
229           relationship: cmaui_volume_attachment2
230     cmaui_volume1:
231       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
232       properties:
233         volume_type:
234           get_input: CMAUI_volume_type
235         size: '(get_input : cmaui_cinder_volume_size) * 1024'
236     server_cmaui21:
237       type: org.openecomp.resource.vfc.nodes.heat.cmaui
238       properties:
239         flavor:
240           get_input: cmaui_flavor
241         availability_zone:
242           get_input: availability_zone_10
243         image:
244           get_input: cmaui_image
245         metadata:
246           vnf_id:
247             get_input: vnf_id
248         user_data_format: RAW
249         name:
250           get_input:
251           - cmaui_names
252           - 0
253     cmaui_volume2:
254       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
255       properties:
256         volume_type:
257           get_input: CMAUI_volume_type
258         size: '(get_input : cmaui_cinder_volume_size) * 1024'
259     cmaui_port_1:
260       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
261       properties:
262         replacement_policy: AUTO
263         ip_requirements:
264         - ip_version: 4
265           ip_count_required:
266             is_required: true
267           floating_ip_count_required:
268             is_required: false
269         security_groups:
270         - get_input: security_group_name
271         fixed_ips:
272         - ip_address:
273             get_input:
274             - cmaui_oam_ips
275             - 0
276         mac_requirements:
277           mac_count_required:
278             is_required: false
279         network_role_tag: oam
280         network:
281           get_input: oam_net_name
282       requirements:
283       - binding:
284           capability: tosca.capabilities.network.Bindable
285           node: server_cmaui1
286           relationship: tosca.relationships.network.BindsTo
287   relationship_templates:
288     cmaui_volume_attachment2:
289       type: org.openecomp.relationships.VolumeAttachesTo
290       properties:
291         volume_id:
292           get_input: cmaui_volume_param2
293         instance_uuid: server_cmaui1
294     cmaui_volume_attachment3:
295       type: org.openecomp.relationships.VolumeAttachesTo
296       properties:
297         volume_id:
298           get_input: cmaui_volume_param2
299         instance_uuid: server_cmaui2
300   groups:
301     main_group:
302       type: org.openecomp.groups.heat.HeatStack
303       properties:
304         heat_file: ../Artifacts/main.yml
305         description: volume
306       members:
307       - cmaui_port_11
308       - cmaui_volume1
309       - server_cmaui21
310       - cmaui_volume2
311     addOn_group:
312       type: org.openecomp.groups.heat.HeatStack
313       properties:
314         heat_file: ../Artifacts/addOn.yml
315         description: cmaui server template for vMMSC
316       members:
317       - cmaui_port_2
318       - server_cmaui2
319       - server_cmaui1
320       - cmaui_port_1