[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 / getAttr / getAttrUnsupportedAttr / 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.FSB2:
9     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
10   org.openecomp.resource.vfc.nodes.heat.FSB1:
11     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
12   org.openecomp.resource.vfc.nodes.heat.pcm_server:
13     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
14   org.openecomp.resource.vfc.nodes.heat.pcrf_psm_server:
15     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
16 topology_template:
17   inputs:
18     Internal2_name:
19       label: Internal2_name
20       hidden: false
21       immutable: false
22       type: string
23       description: Internal2_name
24     Internal1_shared:
25       label: Internal1_shared
26       hidden: false
27       immutable: false
28       type: string
29       description: Internal1_shared
30     FSB1_volume_name:
31       label: FSB1_volume
32       hidden: false
33       immutable: false
34       type: string
35       description: FSB1_volume_1
36     jsa_cidr:
37       label: jsa_cidr
38       hidden: false
39       immutable: false
40       type: string
41       description: jsa_cidr
42     availabilityzone_name:
43       label: availabilityzone_name
44       hidden: false
45       immutable: false
46       type: string
47       description: availabilityzone_name
48     fsb1-name:
49       label: FSB1_name
50       hidden: false
51       immutable: false
52       type: string
53       description: FSB1_name
54     pcm_image_name:
55       label: pcm_image_name
56       hidden: false
57       immutable: false
58       type: string
59       description: pcm_image_name
60     Internal2_external:
61       label: Internal2_external
62       hidden: false
63       immutable: false
64       type: string
65       description: Internal2_external
66     Internal2_forwarding_mode:
67       label: Internal2_forwarding_mode
68       hidden: false
69       immutable: false
70       type: string
71       description: Internal2_forwarding_mode
72     pcrf_psm_flavor_name:
73       label: pcrf_psm_flavor_name
74       hidden: false
75       immutable: false
76       type: string
77       description: pcrf_psm_flavor_name
78     pcrf_psm_image_name:
79       label: pcrf_psm_image_name
80       hidden: false
81       immutable: false
82       type: string
83       description: pcrf_psm_image_name
84     pcrf_vnf_id:
85       hidden: false
86       immutable: false
87       type: string
88       description: prop
89     FSB_1_image:
90       label: MME_FSB1
91       hidden: false
92       immutable: false
93       type: string
94       description: MME_FSB1_15B-CP04-r5a01
95     snapshot01:
96       hidden: false
97       immutable: false
98       type: string
99       description: prop
100     volume_size:
101       label: volume size
102       hidden: false
103       immutable: false
104       type: float
105       description: my volume size 320GB
106     snapshot02:
107       hidden: false
108       immutable: false
109       type: string
110       description: prop
111     fsb1-Internal1-mac:
112       label: FSB1_internal_mac
113       hidden: false
114       immutable: false
115       type: string
116       description: FSB1_internal_mac
117     Internal2_shared:
118       label: Internal2_shared
119       hidden: false
120       immutable: false
121       type: string
122       description: Internal2_shared
123     pcm_server_name:
124       label: pcm_server_name
125       hidden: false
126       immutable: false
127       type: string
128       description: pcm_server_name
129     cps_net_mask:
130       hidden: false
131       immutable: false
132       type: string
133       description: prop
134     Internal1_net_name:
135       label: Internal1_net_name
136       hidden: false
137       immutable: false
138       type: string
139       description: Internal1_net_name
140     oam_net_name:
141       label: oam_net_name
142       hidden: false
143       immutable: false
144       type: string
145       description: oam_net_name
146     fsb1-flavor:
147       label: FSB1_flavor
148       hidden: false
149       immutable: false
150       type: string
151       description: FSB1_flavor
152     fsb1-Internal2-mac:
153       label: FSB1_internal_mac
154       hidden: false
155       immutable: false
156       type: string
157       description: FSB1_internal_mac
158     pcm_vol_01:
159       hidden: false
160       immutable: false
161       type: string
162       description: prop
163     volume_type:
164       label: volume type
165       hidden: false
166       immutable: false
167       type: string
168       description: volume type Gold
169     fsb1-zone:
170       label: FSB1_zone
171       hidden: false
172       immutable: false
173       type: string
174       description: FSB1_zone
175     fsb_zone:
176       label: FSB1_zone
177       hidden: false
178       immutable: false
179       type: string
180       description: FSB1_zone
181     oam_net_gw:
182       hidden: false
183       immutable: false
184       type: string
185       description: prop
186     VMME_FSB1_boot_volume:
187       hidden: false
188       immutable: false
189       type: string
190     network_name:
191       hidden: false
192       immutable: false
193       type: string
194       description: prop
195     security_group_name:
196       hidden: false
197       immutable: false
198       type: list
199       description: CMAUI1, CMAUI2 server names
200       entry_schema:
201         type: string
202     cps_net_ip:
203       hidden: false
204       immutable: false
205       type: string
206       description: prop
207     jsa_net_name:
208       label: jsa_net_name
209       hidden: false
210       immutable: false
211       type: string
212       description: jsa_net_name
213     pcrf_psm_server_name:
214       label: pcrf_psm_server_name
215       hidden: false
216       immutable: false
217       type: string
218       description: pcrf_psm_server_name
219     pcm_flavor_name:
220       label: pcm_flavor_name
221       hidden: false
222       immutable: false
223       type: string
224       description: pcm_flavor_name
225     oam_net_id:
226       label: oam_net_id
227       hidden: false
228       immutable: false
229       type: string
230       description: oam_net_id
231     pcrf_cps_net_ip:
232       hidden: false
233       immutable: false
234       type: string
235       description: prop
236     fsb2-Internal1-mac:
237       label: FSB1_internal_mac
238       hidden: false
239       immutable: false
240       type: string
241       description: FSB1_internal_mac
242     Internal1_forwarding_mode:
243       label: Internal1_forwarding_mode
244       hidden: false
245       immutable: false
246       type: string
247       description: Internal1_forwarding_mode
248     pcrf_cps_net_name:
249       label: pcrf_cps_net_name
250       hidden: false
251       immutable: false
252       type: string
253       description: pcrf_cps_net_name
254     pcm_vol:
255       hidden: false
256       immutable: false
257       type: string
258       description: prop
259     cps_net_name:
260       label: cps_net_name
261       hidden: false
262       immutable: false
263       type: string
264       description: cps_net_name
265     oam_net_ip:
266       hidden: false
267       immutable: false
268       type: string
269       description: prop
270     oam_net_mask:
271       hidden: false
272       immutable: false
273       type: string
274       description: prop
275     fsb1-oam-ip:
276       hidden: false
277       immutable: false
278       type: string
279       description: prop
280     pcrf_security_group_name:
281       hidden: false
282       immutable: false
283       type: list
284       description: CMAUI1, CMAUI2 server names
285       entry_schema:
286         type: string
287     Internal1_external:
288       label: Internal1_external
289       hidden: false
290       immutable: false
291       type: string
292       description: Internal1_external
293   node_templates:
294     pcm_vol_02:
295       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
296       properties:
297         image:
298           get_input: FSB_1_image
299         volume_type:
300           get_input: volume_type
301         size: '(get_input : volume_size) * 1024'
302         read_only: true
303         name:
304           get_input: FSB1_volume_name
305     Internal2-net:
306       type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork
307       properties:
308         shared:
309           get_input: Internal2_shared
310         forwarding_mode:
311           get_input: Internal2_forwarding_mode
312         external:
313           get_input: Internal2_external
314         network_name:
315           get_input: Internal2_name
316     pcm_port_1:
317       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
318       properties:
319         ip_requirements:
320         - ip_version: 4
321           ip_count_required:
322             is_required: true
323           floating_ip_count_required:
324             is_required: false
325         security_groups:
326         - get_input: security_group_name
327         fixed_ips:
328         - ip_address:
329             get_input: oam_net_ip
330         mac_requirements:
331           mac_count_required:
332             is_required: false
333         network_role_tag: oam
334         network:
335           get_input: oam_net_name
336       requirements:
337       - binding:
338           capability: tosca.capabilities.network.Bindable
339           node: server_pcm
340           relationship: tosca.relationships.network.BindsTo
341     server_VolumeTest_snapshot02:
342       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
343       properties:
344         snapshot_id:
345           get_input: snapshot02
346     FSB1_Internal2:
347       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
348       properties:
349         ip_requirements:
350         - ip_version: 4
351           ip_count_required:
352             is_required: false
353           floating_ip_count_required:
354             is_required: false
355         mac_requirements:
356           mac_count_required:
357             is_required: true
358         mac_address:
359           get_input: fsb1-Internal2-mac
360         network: Internal2-net
361       requirements:
362       - link:
363           capability: tosca.capabilities.network.Linkable
364           node: Internal2-net
365           relationship: tosca.relationships.network.LinksTo
366       - binding:
367           capability: tosca.capabilities.network.Bindable
368           node: FSB1
369           relationship: tosca.relationships.network.BindsTo
370     server_VolumeTest_snapshot01:
371       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
372       properties:
373         snapshot_id:
374           get_input: snapshot01
375     FSB1_Internal1:
376       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
377       properties:
378         ip_requirements:
379         - ip_version: 4
380           ip_count_required:
381             is_required: false
382           floating_ip_count_required:
383             is_required: false
384         mac_requirements:
385           mac_count_required:
386             is_required: true
387         mac_address:
388           get_input: fsb1-Internal1-mac
389         network: Internal1-net
390       requirements:
391       - link:
392           capability: tosca.capabilities.network.Linkable
393           node: Internal1-net
394           relationship: tosca.relationships.network.LinksTo
395       - binding:
396           capability: tosca.capabilities.network.Bindable
397           node: FSB1
398           relationship: tosca.relationships.network.BindsTo
399     FSB1_OAM:
400       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
401       properties:
402         ip_requirements:
403         - ip_version: 4
404           ip_count_required:
405             is_required: true
406           floating_ip_count_required:
407             is_required: false
408         fixed_ips:
409         - ip_address:
410             get_input: fsb1-oam-ip
411         mac_requirements:
412           mac_count_required:
413             is_required: false
414         network_role_tag: oam
415         network:
416           get_input: oam_net_id
417       requirements:
418       - binding:
419           capability: tosca.capabilities.network.Bindable
420           node: FSB1
421           relationship: tosca.relationships.network.BindsTo
422     psm01_port_0:
423       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
424       properties:
425         ip_requirements:
426         - ip_version: 4
427           ip_count_required:
428             is_required: true
429           floating_ip_count_required:
430             is_required: false
431         security_groups:
432         - get_input: pcrf_security_group_name
433         fixed_ips:
434         - ip_address:
435             get_input: pcrf_cps_net_ip
436         mac_requirements:
437           mac_count_required:
438             is_required: false
439         network_role_tag: pcrf_cps
440         network:
441           get_input: pcrf_cps_net_name
442       requirements:
443       - binding:
444           capability: tosca.capabilities.network.Bindable
445           node: pcrf_server_psm
446           relationship: tosca.relationships.network.BindsTo
447     pcm_port_0:
448       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
449       properties:
450         ip_requirements:
451         - ip_version: 4
452           ip_count_required:
453             is_required: true
454           floating_ip_count_required:
455             is_required: false
456         security_groups:
457         - get_input: security_group_name
458         fixed_ips:
459         - ip_address:
460             get_input: cps_net_ip
461         mac_requirements:
462           mac_count_required:
463             is_required: false
464         network_role_tag: cps
465         network:
466           get_input: cps_net_name
467       requirements:
468       - binding:
469           capability: tosca.capabilities.network.Bindable
470           node: server_pcm
471           relationship: tosca.relationships.network.BindsTo
472     network:
473       type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork
474       properties:
475         network_name:
476           get_input: Internal1_net_name
477     server_pcm:
478       type: org.openecomp.resource.vfc.nodes.heat.pcm_server
479       properties:
480         flavor:
481           get_input: pcm_flavor_name
482         availability_zone:
483           get_input: availabilityzone_name
484         image:
485           get_input: pcm_image_name
486         config_drive: true
487         user_data_format: RAW
488         name:
489           get_input: pcm_server_name
490     Internal1-net:
491       type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork
492       properties:
493         shared:
494           get_input: Internal1_shared
495         forwarding_mode:
496           get_input: Internal1_forwarding_mode
497         external:
498           get_input: Internal1_external
499         network_name:
500           get_input: Internal1_net_name
501     pcrf_server_psm:
502       type: org.openecomp.resource.vfc.nodes.heat.pcrf_psm_server
503       properties:
504         flavor:
505           get_input: pcrf_psm_flavor_name
506         availability_zone:
507           get_input: availabilityzone_name
508         image:
509           get_input: pcrf_psm_image_name
510         metadata:
511           vnf_id:
512             get_input: pcrf_vnf_id
513         config_drive: true
514         user_data_format: RAW
515         name:
516           get_input: pcrf_psm_server_name
517     server_VolumeTest:
518       type: org.openecomp.resource.vfc.nodes.heat.pcm_server
519       properties:
520         flavor:
521           get_input: pcm_flavor_name
522         availability_zone:
523           get_input: availabilityzone_name
524         image:
525           get_input: pcm_image_name
526         config_drive: true
527         user_data_format: RAW
528         name:
529           get_input: pcm_server_name
530       requirements:
531       - local_storage:
532           capability: tosca.capabilities.Attachment
533           node: pcm_vol_02
534           relationship: tosca.relationships.AttachesTo
535       - local_storage:
536           capability: tosca.capabilities.Attachment
537           node: server_VolumeTest_snapshot01
538           relationship: server_VolumeTest_4
539       - local_storage:
540           capability: tosca.capabilities.Attachment
541           node: server_VolumeTest_snapshot02
542           relationship: server_VolumeTest_5
543     FSB2:
544       type: org.openecomp.resource.vfc.nodes.heat.FSB2
545       properties:
546         flavor:
547           get_input: fsb1-flavor
548         availability_zone:
549           get_input: fsb_zone
550         name:
551           get_input: fsb1-name
552     FSB1:
553       type: org.openecomp.resource.vfc.nodes.heat.FSB1
554       properties:
555         flavor:
556           get_input: fsb1-flavor
557         availability_zone:
558           get_input: fsb_zone
559         metadata:
560           write_files:
561           - path: /etc/sysconfig/network-scripts/ifcfg-eth0
562             permissions: '0644'
563             content:
564               str_replace:
565                 template:
566                   get_artifact:
567                   - SELF
568                   - nimbus-ethernet
569                 params:
570                   $dev: eth0
571                   $netmask:
572                     get_input: cps_net_mask
573                   $ip:
574                     get_input: cps_net_ip
575           - path: /etc/sysconfig/network-scripts/ifcfg-eth1
576             permissions: '0644'
577             content:
578               str_replace:
579                 template:
580                   get_artifact:
581                   - SELF
582                   - nimbus-ethernet-gw
583                 params:
584                   $dev: eth1
585                   $netmask:
586                     get_input: oam_net_mask
587                   $gateway:
588                     get_input: oam_net_gw
589                   $ip:
590                     get_input: oam_net_ip
591         name:
592         - UNSUPPORTED_ATTRIBUTE_FSB1_Internal1.unsupportedAttr
593       artifacts:
594         nimbus-ethernet-gw:
595           type: tosca.artifacts.Deployment
596           file: ../Artifacts/nimbus-ethernet-gw
597         nimbus-ethernet:
598           type: tosca.artifacts.Deployment
599           file: ../Artifacts/nimbus-ethernet
600   relationship_templates:
601     server_VolumeTest_4:
602       type: org.openecomp.relationships.VolumeAttachesTo
603       properties:
604         volume_id: server_VolumeTest_snapshot01
605         instance_uuid: server_VolumeTest
606         device: vdb
607     server_VolumeTest_5:
608       type: org.openecomp.relationships.VolumeAttachesTo
609       properties:
610         volume_id: server_VolumeTest_snapshot02
611         instance_uuid: server_VolumeTest
612   groups:
613     ep-jsa_net_group:
614       type: org.openecomp.groups.heat.HeatStack
615       properties:
616         heat_file: ../Artifacts/ep-jsa_net.yaml
617         description: |
618           Version 2.0 02-09-2016 (Authors: Paul Phillips, pp2854 PROD)
619       members:
620       - pcm_vol_02
621       - Internal2-net
622       - pcm_port_1
623       - FSB1_Internal2
624       - FSB1_Internal1
625       - FSB1_OAM
626       - psm01_port_0
627       - pcm_port_0
628       - network
629       - server_pcm
630       - Internal1-net
631       - pcrf_server_psm
632       - server_VolumeTest
633       - FSB2
634       - FSB1