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