push addional code
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / novatovolumeconnection / nestedconnection / 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     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_vol:
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_nested:
55       type: org.openecomp.resource.abstract.nodes.heat.nested
56       directives:
57       - substitutable
58       properties:
59         service_template_filter:
60           substitute_service_template: nestedServiceTemplate.yaml
61         cmaui_volume_param: test_vol
62       requirements:
63       - local_storage_server_cmaui:
64           capability: tosca.capabilities.Attachment
65           node: test_vol
66           relationship: tosca.relationships.AttachesTo
67   groups:
68     main:
69       type: org.openecomp.groups.heat.HeatStack
70       properties:
71         heat_file: ../Artifacts/main.yml
72         description: |
73           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
74       members:
75       - test_vol
76       - test_nested