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