push addional code
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / novatovolumesharednestedconnection / expectedoutputfiles / MainServiceTemplate.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: Main
4 imports:
5   NeutronPortGlobalTypes:
6     file: NeutronPortGlobalTypesServiceTemplate.yaml
7   NeutronNetGlobalTypes:
8     file: NeutronNetGlobalTypesServiceTemplate.yaml
9   CommonGlobalTypes:
10     file: CommonGlobalTypesServiceTemplate.yaml
11   CinderVolumeGlobalTypes:
12     file: CinderVolumeGlobalTypesServiceTemplate.yaml
13   ContrailNetworkRuleGlobalType:
14     file: ContrailNetworkRuleGlobalTypeServiceTemplate.yaml
15   NeutronSecurityRulesGlobalTypes:
16     file: NeutronSecurityRulesGlobalTypesServiceTemplate.yaml
17   NovaServerGlobalTypes:
18     file: NovaServerGlobalTypesServiceTemplate.yaml
19   ContrailVirtualNetworkGlobalType:
20     file: ContrailVirtualNetworkGlobalTypeServiceTemplate.yaml
21   AbstractSubstituteGlobalTypes:
22     file: AbstractSubstituteGlobalTypesServiceTemplate.yaml
23 topology_template:
24   inputs:
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     shared_vol1:
32       hidden: false
33       immutable: false
34       type: string
35       description: volume name
36     shared_vol2:
37       hidden: false
38       immutable: false
39       type: string
40       description: volume name
41     CMAUI_volume_type:
42       label: CMAUI vm volume type
43       hidden: false
44       immutable: false
45       type: string
46       description: the name of the target volume backend
47   node_templates:
48     test_vol1:
49       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
50       properties:
51         volume_type:
52           get_input: CMAUI_volume_type
53         size: '(get_input : cmaui_cinder_volume_size) * 1024'
54     test_vol2:
55       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
56       properties:
57         volume_type:
58           get_input: CMAUI_volume_type
59         size: '(get_input : cmaui_cinder_volume_size) * 1024'
60     test_nested:
61       type: org.openecomp.resource.abstract.nodes.heat.nested
62       directives:
63       - substitutable
64       properties:
65         service_template_filter:
66           substitute_service_template: nestedServiceTemplate.yaml
67         cmaui_volume_param1:
68           get_input: shared_vol1
69         cmaui_volume_param2:
70           get_input: shared_vol2
71       requirements:
72       - local_storage_server_cmaui2:
73           capability: tosca.capabilities.Attachment
74           node: test_vol1
75           relationship: tosca.relationships.AttachesTo
76       - local_storage_server_cmaui1:
77           capability: tosca.capabilities.Attachment
78           node: test_vol1
79           relationship: tosca.relationships.AttachesTo
80       - local_storage_server_cmaui1:
81           capability: tosca.capabilities.Attachment
82           node: test_vol2
83           relationship: tosca.relationships.AttachesTo
84   groups:
85     addOn:
86       type: org.openecomp.groups.heat.HeatStack
87       properties:
88         heat_file: ../Artifacts/addOn.yml
89         description: |
90           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
91       members:
92       - test_nested
93     main:
94       type: org.openecomp.groups.heat.HeatStack
95       properties:
96         heat_file: ../Artifacts/main.yml
97         description: |
98           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
99       members:
100       - test_vol1
101       - test_vol2
102   outputs:
103     out1_not_shared:
104       value: test_nested