[sdc] docker file fix for cassandra
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / vol_att / nested_with_inner_vol / out / nestedServiceTemplate.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: nested
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     cmaui_cinder_volume_size:
46       label: CMAUI Cinder volume size
47       hidden: false
48       immutable: false
49       type: float
50       description: the size of the CMAUI Cinder volume
51     timezone:
52       label: timezone
53       hidden: false
54       immutable: false
55       type: string
56       description: timezone
57     security_group_name:
58       label: security group name
59       hidden: false
60       immutable: false
61       type: string
62       description: the name of security group
63     cmaui_volume:
64       label: CMAUI volume size
65       hidden: false
66       immutable: false
67       type: string
68       description: Volume for CMAUI server
69     oam_network_netmask:
70       label: oam network netmask
71       hidden: false
72       immutable: false
73       type: string
74       description: oam network gateway
75     cmaui_image:
76       hidden: false
77       immutable: false
78       type: string
79       description: Image for CMAUI server
80     vnf_id:
81       hidden: false
82       immutable: false
83       type: string
84       description: Unique ID for this VNF instance
85       default: This_is_ths_MMSC-CMAUI_id
86     cmaui_flavor:
87       hidden: false
88       immutable: false
89       type: string
90       description: Flavor for CMAUI server
91     oam_network_gateway:
92       label: oam network gateway
93       hidden: false
94       immutable: false
95       type: string
96       description: oam network gateway
97     out_cmaui_volume:
98       label: CMAUI vm volume type
99       hidden: false
100       immutable: false
101       type: string
102       description: the name of the target volume backend
103     availability_zone_0:
104       label: availabilityzone name
105       hidden: false
106       immutable: false
107       type: string
108       description: availabilityzone name
109     cmaui_oam_ips:
110       label: CMAUI oam_net IP addresses
111       hidden: false
112       immutable: false
113       type: list
114       description: CMAUI oam_net IP addresses
115       entry_schema:
116         type: string
117     external_dns:
118       label: dns server
119       hidden: false
120       immutable: false
121       type: string
122       description: dns server
123     oam_net_name:
124       hidden: false
125       immutable: false
126       type: string
127       description: UID of OAM network
128     external_ntp:
129       label: ntp server
130       hidden: false
131       immutable: false
132       type: string
133       description: ntp server
134     CMAUI_volume_type:
135       label: CMAUI vm volume type
136       hidden: false
137       immutable: false
138       type: string
139       description: the name of the target volume backend
140   node_templates:
141     server_cmaui:
142       type: org.openecomp.resource.vfc.nodes.heat.cmaui
143       properties:
144         flavor:
145           get_input: cmaui_flavor
146         availability_zone:
147           get_input: availability_zone_0
148         image:
149           get_input: cmaui_image
150         metadata:
151           vnf_id:
152             get_input: vnf_id
153         user_data_format: RAW
154         name:
155           get_input:
156           - cmaui_names
157           - 0
158       requirements:
159       - local_storage:
160           capability: tosca.capabilities.Attachment
161           node: cmaui_volume
162           relationship: cmaui_volume_attachment
163     cmaui_volume:
164       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
165       properties:
166         volume_type:
167           get_input: CMAUI_volume_type
168         size: '(get_input : cmaui_cinder_volume_size) * 1024'
169     cmaui_port_0:
170       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
171       properties:
172         replacement_policy: AUTO
173         security_groups:
174         - get_input: security_group_name
175         fixed_ips:
176         - ip_address:
177             get_input:
178             - cmaui_oam_ips
179             - 0
180         network:
181           get_input: oam_net_name
182       requirements:
183       - binding:
184           capability: tosca.capabilities.network.Bindable
185           node: server_cmaui
186           relationship: tosca.relationships.network.BindsTo
187   relationship_templates:
188     cmaui_volume_attachment:
189       type: org.openecomp.relationships.heat.cinder.VolumeAttachesTo
190       properties:
191         volume_id: cmaui_volume
192         instance_uuid: server_cmaui
193   groups:
194     a_vol:
195       type: org.openecomp.groups.heat.HeatStack
196       properties:
197         heat_file: ../Artifacts/a_vol.yml
198         description: volume
199       members:
200       - cmaui_volume
201     nested:
202       type: org.openecomp.groups.heat.HeatStack
203       properties:
204         heat_file: ../Artifacts/nested.yml
205         description: cmaui server template for vMMSC
206       members:
207       - server_cmaui
208       - cmaui_port_0
209   outputs:
210     out_cmaui_volume:
211       value: cmaui_volume
212   substitution_mappings:
213     node_type: org.openecomp.resource.abstract.nodes.heat.nested
214     capabilities:
215       host_server_cmaui:
216       - server_cmaui
217       - host
218       os_server_cmaui:
219       - server_cmaui
220       - os
221       endpoint_server_cmaui:
222       - server_cmaui
223       - endpoint
224       binding_server_cmaui:
225       - server_cmaui
226       - binding
227       scalable_server_cmaui:
228       - server_cmaui
229       - scalable
230       attachment_cmaui_volume:
231       - cmaui_volume
232       - attachment
233       attachment_cmaui_port_0:
234       - cmaui_port_0
235       - attachment
236     requirements:
237       local_storage_server_cmaui:
238       - server_cmaui
239       - local_storage
240       link_cmaui_port_0:
241       - cmaui_port_0
242       - link