7547be20b04dc9b42e95ab3fc3a461efb5b36c06
[sdc.git] /
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: Main
4 imports:
5 - openecomp_heat_index:
6     file: openecomp-heat/_index.yml
7 node_types:
8   org.openecomp.resource.vfc.nodes.heat.cmaui:
9     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
10 topology_template:
11   inputs:
12     cmaui_names:
13       hidden: false
14       immutable: false
15       annotations:
16         source:
17           type: org.openecomp.annotations.Source
18           properties:
19             vf_module_label:
20             - hot_template
21             source_type: HEAT
22             param_name: cmaui_names
23       type: list
24       description: CMAUI1, CMAUI2 server names
25       entry_schema:
26         type: string
27     cmaui_cinder_volume_size:
28       label: CMAUI Cinder volume size
29       hidden: false
30       immutable: false
31       annotations:
32         source:
33           type: org.openecomp.annotations.Source
34           properties:
35             vf_module_label:
36             - a_vol
37             - hot_template
38             source_type: HEAT
39             param_name: cmaui_cinder_volume_size
40       type: float
41       description: the size of the CMAUI Cinder volume
42     timezone:
43       label: timezone
44       hidden: false
45       immutable: false
46       annotations:
47         source:
48           type: org.openecomp.annotations.Source
49           properties:
50             vf_module_label:
51             - hot_template
52             source_type: HEAT
53             param_name: timezone
54       type: string
55       description: timezone
56     security_group_name:
57       label: security group name
58       hidden: false
59       immutable: false
60       annotations:
61         source:
62           type: org.openecomp.annotations.Source
63           properties:
64             vf_module_label:
65             - hot_template
66             source_type: HEAT
67             param_name: security_group_name
68       type: string
69       description: the name of security group
70     cmaui_volume:
71       label: CMAUI vm volume type
72       hidden: false
73       immutable: false
74       annotations:
75         source:
76           type: org.openecomp.annotations.Source
77           properties:
78             vf_module_label:
79             - hot_template
80             source_type: HEAT
81             param_name: cmaui_volume
82       type: string
83       description: the name of the target volume backend
84     oam_network_netmask:
85       label: oam network netmask
86       hidden: false
87       immutable: false
88       annotations:
89         source:
90           type: org.openecomp.annotations.Source
91           properties:
92             vf_module_label:
93             - hot_template
94             source_type: HEAT
95             param_name: oam_network_netmask
96       type: string
97       description: oam network gateway
98     cmaui_image:
99       hidden: false
100       immutable: false
101       annotations:
102         source:
103           type: org.openecomp.annotations.Source
104           properties:
105             vf_module_label:
106             - hot_template
107             source_type: HEAT
108             param_name: cmaui_image
109       type: string
110       description: Image for CMAUI server
111     vnf_id:
112       hidden: false
113       immutable: false
114       annotations:
115         source:
116           type: org.openecomp.annotations.Source
117           properties:
118             vf_module_label:
119             - hot_template
120             source_type: HEAT
121             param_name: vnf_id
122       type: string
123       description: Unique ID for this VNF instance
124       default: This_is_ths_MMSC-CMAUI_id
125     cmaui_flavor:
126       hidden: false
127       immutable: false
128       annotations:
129         source:
130           type: org.openecomp.annotations.Source
131           properties:
132             vf_module_label:
133             - hot_template
134             source_type: HEAT
135             param_name: cmaui_flavor
136       type: string
137       description: Flavor for CMAUI server
138     oam_network_gateway:
139       label: oam network gateway
140       hidden: false
141       immutable: false
142       annotations:
143         source:
144           type: org.openecomp.annotations.Source
145           properties:
146             vf_module_label:
147             - hot_template
148             source_type: HEAT
149             param_name: oam_network_gateway
150       type: string
151       description: oam network gateway
152     availability_zone_0:
153       label: availabilityzone name
154       hidden: false
155       immutable: false
156       annotations:
157         source:
158           type: org.openecomp.annotations.Source
159           properties:
160             vf_module_label:
161             - hot_template
162             source_type: HEAT
163             param_name: availability_zone_0
164       type: string
165       description: availabilityzone name
166     cmaui_oam_ips:
167       label: CMAUI oam_net IP addresses
168       hidden: false
169       immutable: false
170       annotations:
171         source:
172           type: org.openecomp.annotations.Source
173           properties:
174             vf_module_label:
175             - hot_template
176             source_type: HEAT
177             param_name: cmaui_oam_ips
178       type: list
179       description: CMAUI oam_net IP addresses
180       entry_schema:
181         type: string
182     external_dns:
183       label: dns server
184       hidden: false
185       immutable: false
186       annotations:
187         source:
188           type: org.openecomp.annotations.Source
189           properties:
190             vf_module_label:
191             - hot_template
192             source_type: HEAT
193             param_name: external_dns
194       type: string
195       description: dns server
196     oam_net_name:
197       hidden: false
198       immutable: false
199       annotations:
200         source:
201           type: org.openecomp.annotations.Source
202           properties:
203             vf_module_label:
204             - hot_template
205             source_type: HEAT
206             param_name: oam_net_name
207       type: string
208       description: UID of OAM network
209     external_ntp:
210       label: ntp server
211       hidden: false
212       immutable: false
213       annotations:
214         source:
215           type: org.openecomp.annotations.Source
216           properties:
217             vf_module_label:
218             - hot_template
219             source_type: HEAT
220             param_name: external_ntp
221       type: string
222       description: ntp server
223     CMAUI_volume_type:
224       label: CMAUI vm volume type
225       hidden: false
226       immutable: false
227       annotations:
228         source:
229           type: org.openecomp.annotations.Source
230           properties:
231             vf_module_label:
232             - a_vol
233             - hot_template
234             source_type: HEAT
235             param_name: CMAUI_volume_type
236       type: string
237       description: the name of the target volume backend
238   node_templates:
239     server_cmaui:
240       type: org.openecomp.resource.vfc.nodes.heat.cmaui
241       properties:
242         flavor:
243           get_input: cmaui_flavor
244         availability_zone:
245           get_input: availability_zone_0
246         image:
247           get_input: cmaui_image
248         metadata:
249           vnf_id:
250             get_input: vnf_id
251         user_data_format: RAW
252         name:
253           get_input:
254           - cmaui_names
255           - 0
256     cmaui_volume:
257       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
258       properties:
259         volume_type:
260           get_input: CMAUI_volume_type
261         size: '(get_input : cmaui_cinder_volume_size) * 1024'
262     cmaui_port_0:
263       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
264       properties:
265         replacement_policy: AUTO
266         ip_requirements:
267         - ip_version: 4
268           ip_count_required:
269             is_required: true
270           floating_ip_count_required:
271             is_required: false
272         - ip_version: 6
273           ip_count_required:
274             is_required: false
275           floating_ip_count_required:
276             is_required: false
277         security_groups:
278         - get_input: security_group_name
279         fixed_ips:
280         - ip_address:
281             get_input:
282             - cmaui_oam_ips
283             - 0
284         mac_requirements:
285           mac_count_required:
286             is_required: false
287         network_role_tag: oam
288         network:
289           get_input: oam_net_name
290       requirements:
291       - binding:
292           capability: tosca.capabilities.network.Bindable
293           node: server_cmaui
294           relationship: tosca.relationships.network.BindsTo
295   groups:
296     a_vol_group:
297       type: org.openecomp.groups.heat.HeatStack
298       properties:
299         heat_file: ../Artifacts/a_vol.yml
300         description: volume
301       members:
302       - cmaui_volume
303     hot_template_group:
304       type: org.openecomp.groups.heat.HeatStack
305       properties:
306         heat_file: ../Artifacts/hot_template.yml
307         description: cmaui server template for vMMSC
308       members:
309       - server_cmaui
310       - cmaui_port_0