push addional code
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / novatovolumeconnection / sharednestednotconnected / 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 node_types:
34   org.openecomp.resource.vfc.nodes.heat.cmaui:
35     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
36 topology_template:
37   inputs:
38     cmaui_names:
39       hidden: false
40       immutable: false
41       type: list
42       description: CMAUI1, CMAUI2 server names
43       entry_schema:
44         type: string
45     p1:
46       hidden: false
47       immutable: false
48       type: string
49       description: UID of OAM network
50     cmaui_image:
51       hidden: false
52       immutable: false
53       type: string
54       description: Image for CMAUI server
55     cmaui_flavor:
56       hidden: false
57       immutable: false
58       type: string
59       description: Flavor for CMAUI server
60     cmaui_cinder_volume_size:
61       label: CMAUI Cinder volume size
62       hidden: false
63       immutable: false
64       type: float
65       description: the size of the CMAUI Cinder volume
66     security_group_name:
67       hidden: false
68       immutable: false
69       type: list
70       description: CMAUI1, CMAUI2 server names
71       entry_schema:
72         type: string
73     availability_zone_0:
74       label: availabilityzone name
75       hidden: false
76       immutable: false
77       type: string
78       description: availabilityzone name
79     shared_vol1:
80       hidden: false
81       immutable: false
82       type: string
83       description: volume name
84     cmaui_oam_ips:
85       hidden: false
86       immutable: false
87       type: string
88     shared_vol2:
89       hidden: false
90       immutable: false
91       type: string
92       description: volume name
93     CMAUI_volume_type:
94       label: CMAUI vm volume type
95       hidden: false
96       immutable: false
97       type: string
98       description: the name of the target volume backend
99   node_templates:
100     test_vol1:
101       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
102       properties:
103         volume_type:
104           get_input: CMAUI_volume_type
105         size: '(get_input : cmaui_cinder_volume_size) * 1024'
106     test_vol2:
107       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
108       properties:
109         volume_type:
110           get_input: CMAUI_volume_type
111         size: '(get_input : cmaui_cinder_volume_size) * 1024'
112     server_cmaui:
113       type: org.openecomp.resource.vfc.nodes.heat.cmaui
114       properties:
115         flavor:
116           get_input: cmaui_flavor
117         availability_zone:
118           get_input: availability_zone_0
119         image:
120           get_input: cmaui_image
121         name:
122           get_input:
123           - cmaui_names
124           - 0
125     cmaui_port_0:
126       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
127       properties:
128         replacement_policy: AUTO
129         security_groups:
130         - get_input: security_group_name
131         fixed_ips:
132         - ip_address:
133             get_input:
134             - cmaui_oam_ips
135             - 0
136         network:
137           get_input: p1
138       requirements:
139       - binding:
140           capability: tosca.capabilities.network.Bindable
141           node: server_cmaui
142           relationship: tosca.relationships.network.BindsTo
143     test_nested:
144       type: org.openecomp.resource.abstract.nodes.heat.nested
145       directives:
146       - substitutable
147       properties:
148         service_template_filter:
149           substitute_service_template: nestedServiceTemplate.yaml
150         cmaui_volume_param2:
151           get_input: shared_vol2
152         shared_vol1:
153           get_input: shared_vol1
154       requirements:
155       - local_storage_server_cmaui1:
156           capability: tosca.capabilities.Attachment
157           node: test_vol2
158           relationship: tosca.relationships.AttachesTo
159   groups:
160     addOn:
161       type: org.openecomp.groups.heat.HeatStack
162       properties:
163         heat_file: ../Artifacts/addOn.yml
164         description: |
165           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
166       members:
167       - test_nested
168     main:
169       type: org.openecomp.groups.heat.HeatStack
170       properties:
171         heat_file: ../Artifacts/main.yml
172         description: |
173           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
174       members:
175       - test_vol1
176       - test_vol2
177       - server_cmaui
178       - cmaui_port_0
179   outputs:
180     out1_not_shared:
181       value: test_nested