[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 / unifiedComposition / creSubstitutionServiceTemplate / NoOutParamDuplicatePortType / in / 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.FSB1:
9     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
10 topology_template:
11   inputs:
12     Internal2_name:
13       label: Internal2_name
14       hidden: false
15       immutable: false
16       type: string
17       description: Internal2_name
18     Internal1_shared:
19       label: Internal1_shared
20       hidden: false
21       immutable: false
22       type: string
23       description: Internal1_shared
24     FSB1_volume_name:
25       label: FSB1_volume
26       hidden: false
27       immutable: false
28       type: string
29       description: FSB1_volume_1
30     jsa_cidr:
31       label: jsa_cidr
32       hidden: false
33       immutable: false
34       type: string
35       description: jsa_cidr
36       default: 107.243.7.128/26
37     availabilityzone_name:
38       label: availabilityzone_name
39       hidden: false
40       immutable: false
41       type: string
42       description: availabilityzone_name
43     fsb1-name:
44       label: FSB1_name
45       hidden: false
46       immutable: false
47       type: string
48       description: FSB1_name
49     pcm_image_name:
50       label: pcm_image_name
51       hidden: false
52       immutable: false
53       type: string
54       description: pcm_image_name
55     Internal2_external:
56       label: Internal2_external
57       hidden: false
58       immutable: false
59       type: string
60       description: Internal2_external
61     Internal2_forwarding_mode:
62       label: Internal2_forwarding_mode
63       hidden: false
64       immutable: false
65       type: string
66       description: Internal2_forwarding_mode
67     pcrf_psm_flavor_name:
68       label: pcrf_psm_flavor_name
69       hidden: false
70       immutable: false
71       type: string
72       description: pcrf_psm_flavor_name
73     pcrf_psm_image_name:
74       label: pcrf_psm_image_name
75       hidden: false
76       immutable: false
77       type: string
78       description: pcrf_psm_image_name
79     pcrf_vnf_id:
80       hidden: false
81       immutable: false
82       type: string
83       description: prop
84     FSB_1_image:
85       label: MME_FSB1
86       hidden: false
87       immutable: false
88       type: string
89       description: MME_FSB1_15B-CP04-r5a01
90     snapshot01:
91       hidden: false
92       immutable: false
93       type: string
94       description: prop
95     volume_size:
96       label: volume size
97       hidden: false
98       immutable: false
99       type: float
100       description: my volume size 320GB
101     snapshot02:
102       hidden: false
103       immutable: false
104       type: string
105       description: prop
106     fsb1-Internal1-mac:
107       label: FSB1_internal_mac
108       hidden: false
109       immutable: false
110       type: string
111       description: FSB1_internal_mac
112     Internal2_shared:
113       label: Internal2_shared
114       hidden: false
115       immutable: false
116       type: string
117       description: Internal2_shared
118     pcm_server_name:
119       label: pcm_server_name
120       hidden: false
121       immutable: false
122       type: string
123       description: pcm_server_name
124     cps_net_mask:
125       hidden: false
126       immutable: false
127       type: string
128       description: prop
129     Internal1_net_name:
130       label: Internal1_net_name
131       hidden: false
132       immutable: false
133       type: string
134       description: Internal1_net_name
135     oam_net_name:
136       label: oam_net_name
137       hidden: false
138       immutable: false
139       type: string
140       description: oam_net_name
141     fsb1-flavor:
142       label: FSB1_flavor
143       hidden: false
144       immutable: false
145       type: string
146       description: FSB1_flavor
147     fsb1-Internal2-mac:
148       label: FSB1_internal_mac
149       hidden: false
150       immutable: false
151       type: string
152       description: FSB1_internal_mac
153     pcm_vol_01:
154       hidden: false
155       immutable: false
156       type: string
157       description: prop
158     volume_type:
159       label: volume type
160       hidden: false
161       immutable: false
162       type: string
163       description: volume type Gold
164     fsb1-zone:
165       label: FSB1_zone
166       hidden: false
167       immutable: false
168       type: string
169       description: FSB1_zone
170     fsb_zone:
171       label: FSB1_zone
172       hidden: false
173       immutable: false
174       type: string
175       description: FSB1_zone
176     oam_net_gw:
177       hidden: false
178       immutable: false
179       type: string
180       description: prop
181     VMME_FSB1_boot_volume:
182       hidden: false
183       immutable: false
184       type: string
185     network_name:
186       hidden: false
187       immutable: false
188       type: string
189       description: prop
190     security_group_name:
191       hidden: false
192       immutable: false
193       type: list
194       description: CMAUI1, CMAUI2 server names
195       entry_schema:
196         type: string
197     cps_net_ip:
198       hidden: false
199       immutable: false
200       type: string
201       description: prop
202     jsa_net_name:
203       label: jsa_net_name
204       hidden: false
205       immutable: false
206       type: string
207       description: jsa_net_name
208       default: jsa_log_net_0
209     pcrf_psm_server_name:
210       label: pcrf_psm_server_name
211       hidden: false
212       immutable: false
213       type: string
214       description: pcrf_psm_server_name
215     pcm_flavor_name:
216       label: pcm_flavor_name
217       hidden: false
218       immutable: false
219       type: string
220       description: pcm_flavor_name
221     oam_net_id:
222       label: oam_net_id
223       hidden: false
224       immutable: false
225       type: string
226       description: oam_net_id
227     pcrf_cps_net_ip:
228       hidden: false
229       immutable: false
230       type: string
231       description: prop
232     fsb2-Internal1-mac:
233       label: FSB1_internal_mac
234       hidden: false
235       immutable: false
236       type: string
237       description: FSB1_internal_mac
238     Internal1_forwarding_mode:
239       label: Internal1_forwarding_mode
240       hidden: false
241       immutable: false
242       type: string
243       description: Internal1_forwarding_mode
244     pcrf_cps_net_name:
245       label: pcrf_cps_net_name
246       hidden: false
247       immutable: false
248       type: string
249       description: pcrf_cps_net_name
250     pcm_vol:
251       hidden: false
252       immutable: false
253       type: string
254       description: prop
255     cps_net_name:
256       label: cps_net_name
257       hidden: false
258       immutable: false
259       type: string
260       description: cps_net_name
261     oam_net_ip:
262       hidden: false
263       immutable: false
264       type: string
265       description: prop
266     oam_net_mask:
267       hidden: false
268       immutable: false
269       type: string
270       description: prop
271     fsb1-oam-ip:
272       hidden: false
273       immutable: false
274       type: string
275       description: prop
276     pcrf_security_group_name:
277       hidden: false
278       immutable: false
279       type: list
280       description: CMAUI1, CMAUI2 server names
281       entry_schema:
282         type: string
283     Internal1_external:
284       label: Internal1_external
285       hidden: false
286       immutable: false
287       type: string
288       description: Internal1_external
289   node_templates:
290     FSB2_Internal2:
291       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
292       properties:
293         mac_address:
294           get_input: fsb1-Internal2-mac
295         network: Internal2-net
296       requirements:
297       - binding:
298           capability: tosca.capabilities.network.Bindable
299           node: FSB1_template
300           relationship: tosca.relationships.network.BindsTo
301     FSB2_Internal1:
302       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
303       properties:
304         mac_address:
305           get_input: fsb1-Internal2-mac
306         network: Internal2-net
307       requirements:
308       - binding:
309           capability: tosca.capabilities.network.Bindable
310           node: FSB1_template
311           relationship: tosca.relationships.network.BindsTo
312     FSB1_Internal1:
313       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
314       properties:
315         mac_address:
316           get_input: fsb1-Internal1-mac
317         network: Internal1-net
318       requirements:
319       - binding:
320           capability: tosca.capabilities.network.Bindable
321           node: FSB1_template
322           relationship: tosca.relationships.network.BindsTo
323       - link:
324           capability: tosca.capabilities.network.Linkable
325           node: jsa_net1
326           relationship: tosca.relationships.network.LinksTo
327     FSB1_OAM:
328       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
329       properties:
330         fixed_ips:
331         - ip_address:
332             get_input: fsb1-oam-ip
333         network: jsa_net1
334       requirements:
335       - binding:
336           capability: tosca.capabilities.network.Bindable
337           node: FSB1
338           relationship: tosca.relationships.network.BindsTo
339       - link:
340           capability: tosca.capabilities.network.Linkable
341           node: jsa_net1
342           relationship: tosca.relationships.network.LinksTo
343     jsa_net1:
344       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
345       properties:
346         shared: true
347         network_name:
348           get_input: jsa_net_name
349     FSB1_template:
350       type: org.openecomp.resource.vfc.nodes.heat.FSB1
351       properties:
352         flavor:
353           get_input: fsb1-flavor
354         availability_zone:
355           get_input: fsb_zone
356         metadata:
357           write_files:
358           - path: /etc/sysconfig/network-scripts/ifcfg-eth0
359             permissions: '0644'
360             content:
361               str_replace:
362                 template:
363                   get_artifact:
364                   - SELF
365                   - nimbus-ethernet
366                 params:
367                   $dev: eth0
368                   $netmask:
369                     get_input: cps_net_mask
370                   $ip:
371                     get_input: cps_net_ip
372           - path: /etc/sysconfig/network-scripts/ifcfg-eth1
373             permissions: '0644'
374             content:
375               str_replace:
376                 template:
377                   get_artifact:
378                   - SELF
379                   - nimbus-ethernet-gw
380                 params:
381                   $dev: eth1
382                   $netmask:
383                     get_input: oam_net_mask
384                   $gateway:
385                     get_input: oam_net_gw
386                   $ip:
387                     get_input: oam_net_ip
388         name:
389           get_input: fsb1-name
390       artifacts:
391         nimbus-ethernet-gw:
392           type: tosca.artifacts.Deployment
393           file: ../Artifacts/nimbus-ethernet-gw
394         nimbus-ethernet:
395           type: tosca.artifacts.Deployment
396           file: ../Artifacts/nimbus-ethernet
397       requirements:
398       - local_storage:
399           capability: tosca.capabilities.Attachment
400           node: cmaui_volume1
401           relationship: cmaui_volume_attachment
402       - local_storage:
403           capability: tosca.capabilities.Attachment
404           node: cmaui_volume2
405           relationship: cmaui_volume_attachment
406     cmaui_volume1:
407       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
408       properties:
409         volume_type:
410           get_input: CMAUI_volume_type
411         size: '(get_input : cmaui_cinder_volume_size) * 1024'
412     cmaui_volume2:
413       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
414       properties:
415         volume_type:
416           get_input: CMAUI_volume_type
417         size: '(get_input : cmaui_cinder_volume_size) * 1024'
418   groups:
419     ep-jsa_net_group:
420       type: org.openecomp.groups.heat.HeatStack
421       properties:
422         heat_file: ../Artifacts/ep-jsa_net.yaml
423         description: |
424           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
425       members:
426       - FSB2_Internal2
427       - FSB2_Internal1
428       - FSB1_Internal1
429       - FSB1_OAM
430       - FSB1_template