[SDC-29] Amdocs OnBoard 1707 initial commit.
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / novaservergroups / sharedServerGroup / expectedoutputfiles / MainServiceTemplate.yaml
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.smp:
9     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
10 topology_template:
11   inputs:
12     hostid_fe1:
13       hidden: false
14       immutable: false
15       type: string
16       description: FE1 Hostid (from Ulticom license)
17     ip_address_stp2:
18       hidden: false
19       immutable: false
20       type: string
21       description: STP2 IP address
22     Mobility_OAM_protected_net_id:
23       hidden: false
24       immutable: false
25       type: string
26       description: Network name for OAM
27     hostid_fe2:
28       hidden: false
29       immutable: false
30       type: string
31       description: FE2 Hostid (from Ulticom license)
32     flavor_scp_fe_name:
33       hidden: false
34       immutable: false
35       type: string
36       description: SCP FE Flavor
37       default: a1.Small
38     ip_address_stp1:
39       hidden: false
40       immutable: false
41       type: string
42       description: STP1 IP address
43     int_vscp_ce_network_net_id:
44       hidden: false
45       immutable: false
46       type: string
47       description: Inter-CE Network
48     shared_server_group:
49       hidden: false
50       immutable: false
51       type: string
52     int_vscp_ce_network_cidr:
53       hidden: false
54       immutable: false
55       type: string
56       description: Private Network Address (CIDR notation)
57     cluster_type:
58       hidden: false
59       immutable: false
60       type: string
61       constraints:
62       - valid_values:
63         - Test
64         - Prod
65     be_Mobility_OAM_protected_ip_1:
66       label: be_1 OAM ip address
67       hidden: false
68       immutable: false
69       type: string
70       description: be_1 OAM ip address
71     be_Mobility_OAM_protected_ip_2:
72       label: be_2 OAM ip address
73       hidden: false
74       immutable: false
75       type: string
76       description: be_2 OAM ip address
77     be_Mobility_OAM_protected_ip_0:
78       label: be_0 OAM ip address
79       hidden: false
80       immutable: false
81       type: string
82       description: be_0 OAM ip address
83     ip_address_dra:
84       hidden: false
85       immutable: false
86       type: string
87       description: DRA VIP address
88     image_smp_name:
89       hidden: false
90       immutable: false
91       type: string
92     fe_connectivity:
93       hidden: false
94       immutable: false
95       type: string
96       constraints:
97       - valid_values:
98         - NEE
99         - STP
100     lab_name:
101       hidden: false
102       immutable: false
103       type: string
104       description: Lab name
105     smp_Mobility_OAM_protected_ip_1:
106       label: smp_1 OAM ip address
107       hidden: false
108       immutable: false
109       type: string
110       description: smp_1 OAM ip address
111     fe_SIGNET_vrf_B1_direct_ip_0:
112       label: fe1 SIGTRAN ip address
113       hidden: false
114       immutable: false
115       type: string
116       description: fe1 SIGTRAN ip address
117     smp_Mobility_OAM_protected_ip_0:
118       label: smp_0 OAM ip address
119       hidden: false
120       immutable: false
121       type: string
122       description: smp_0 OAM ip address
123     int_vscp_cluster_net_id:
124       hidden: false
125       immutable: false
126       type: string
127       description: LAN3 Cluster
128     be_Mobility_OAM_protected_ip_3:
129       label: be_3 OAM ip address
130       hidden: false
131       immutable: false
132       type: string
133       description: be_3 OAM ip address
134     be_Mobility_OAM_protected_ip_4:
135       label: be_4 OAM ip address
136       hidden: false
137       immutable: false
138       type: string
139       description: be_4 OAM ip address
140     hostname_nee1:
141       hidden: false
142       immutable: false
143       type: string
144       description: NEE1 Hostname (from Ulticom license)
145     int_vscp_fe_cluster_net_id:
146       hidden: false
147       immutable: false
148       type: string
149       description: LAN2 FE Cluster/KA
150     SIGNET_vrf_A1_direct_net_id:
151       hidden: false
152       immutable: false
153       type: string
154       description: Network name for SIGTRAN_A
155     key_name:
156       hidden: false
157       immutable: false
158       type: string
159       description: keypair to enable SSH access to the instance.
160       default: vSCP-keypair
161     int_vscp_fe_cluster_cidr:
162       hidden: false
163       immutable: false
164       type: string
165       description: Private Network2 Address (CIDR notation)
166     fe_name_1:
167       hidden: false
168       immutable: false
169       type: string
170       description: name of VM
171       default: vSCP_FE2
172     fe_name_0:
173       hidden: false
174       immutable: false
175       type: string
176       description: name of VM
177       default: vSCP_FE1
178     be_name_0:
179       hidden: false
180       immutable: false
181       type: string
182       description: name of VM
183       default: vSCP_BE1
184     int_vscp_cluster_cidr:
185       hidden: false
186       immutable: false
187       type: string
188       description: Private Network3 Address (CIDR notation)
189     be_name_1:
190       hidden: false
191       immutable: false
192       type: string
193       description: name of VM
194       default: vSCP_BE2
195     be_name_2:
196       hidden: false
197       immutable: false
198       type: string
199       description: name of VM
200       default: vSCP_BE3
201     point_code_stp:
202       hidden: false
203       immutable: false
204       type: string
205       description: STP virtual point code (in "zone-cluster-member" format)
206     be_name_3:
207       hidden: false
208       immutable: false
209       type: string
210       description: name of VM
211       default: vSCP_BE4
212     be_name_4:
213       hidden: false
214       immutable: false
215       type: string
216       description: name of VM
217       default: vSCP_BE5
218     global_title_scp:
219       hidden: false
220       immutable: false
221       type: string
222       description: vSCP Global Title address
223     vnf_name:
224       hidden: false
225       immutable: false
226       type: string
227       description: Unique name for this VNF instance
228       default: This_is_the_SCP_name
229     be_Cricket_OCS_protected_ip_2:
230       label: be3 Cricket_OCS ip address
231       hidden: false
232       immutable: false
233       type: string
234       description: be3 Cricket_OCS ip address
235     fe_Mobility_OAM_protected_ip_0:
236       label: fe_0 OAM ip address
237       hidden: false
238       immutable: false
239       type: string
240       description: fe_0 OAM ip address
241     hostname_fe1:
242       hidden: false
243       immutable: false
244       type: string
245       description: FE1 Hostname (from Ulticom license)
246     be_Cricket_OCS_protected_ip_1:
247       label: be2 Cricket_OCS ip address
248       hidden: false
249       immutable: false
250       type: string
251       description: be2 Cricket_OCS ip address
252     hostname_fe2:
253       hidden: false
254       immutable: false
255       type: string
256       description: FE2 Hostname (from Ulticom license)
257     be_Cricket_OCS_protected_ip_4:
258       label: be5 Cricket_OCS ip address
259       hidden: false
260       immutable: false
261       type: string
262       description: be5 Cricket_OCS ip address
263     be_Cricket_OCS_protected_ip_3:
264       label: be4 Cricket_OCS ip address
265       hidden: false
266       immutable: false
267       type: string
268       description: be4 Cricket_OCS ip address
269     fe_Mobility_OAM_protected_ip_1:
270       label: fe_1 OAM ip address
271       hidden: false
272       immutable: false
273       type: string
274       description: fe_1 OAM ip address
275     be_Cricket_OCS_protected_ip_0:
276       label: be1 Cricket_OCS ip address
277       hidden: false
278       immutable: false
279       type: string
280       description: be1 Cricket_OCS ip address
281     route_table_fe1:
282       hidden: false
283       immutable: false
284       type: string
285       description: Additional route table for FE1
286     Cricket_OCS_protected_net_id:
287       hidden: false
288       immutable: false
289       type: string
290       description: Network name for CRICKET_OCS
291     smp_name_2:
292       hidden: false
293       immutable: false
294       type: string
295     vnf_id:
296       hidden: false
297       immutable: false
298       type: string
299       description: Unique ID for this VNF instance
300       default: This_is_ths_SCP_id
301     smp_name_1:
302       hidden: false
303       immutable: false
304       type: string
305       description: name of VM
306       default: vSMP2
307     flavor_smp_name:
308       hidden: false
309       immutable: false
310       type: string
311     image_scp_be_name:
312       hidden: false
313       immutable: false
314       type: string
315       description: SCP BE image
316       default: asc_base_image_be
317     smp_name_0:
318       hidden: false
319       immutable: false
320       type: string
321       description: name of VM
322       default: vSMP1
323     route_table_fe2:
324       hidden: false
325       immutable: false
326       type: string
327       description: Additional route table for FE2
328     hostid_nee1:
329       hidden: false
330       immutable: false
331       type: string
332       description: NEE1 Hostid (from Ulticom license)
333     SIGNET_vrf_B1_direct_net_id:
334       hidden: false
335       immutable: false
336       type: string
337       description: Network name for SIGTRAN_B
338     fe_SIGNET_vrf_A1_direct_ip_0:
339       label: fe2 SIGTRAN ip address
340       hidden: false
341       immutable: false
342       type: string
343       description: fe2 SIGTRAN ip address
344     availability_zone_0:
345       hidden: false
346       immutable: false
347       type: string
348     nee_name_0:
349       hidden: false
350       immutable: false
351       type: string
352       description: name of VM
353       default: vNEE
354     ip_port_stp1:
355       hidden: false
356       immutable: false
357       type: string
358       description: STP1 IP port
359     ip_port_stp2:
360       hidden: false
361       immutable: false
362       type: string
363       description: STP2 IP port
364     image_scp_fe_name:
365       hidden: false
366       immutable: false
367       type: string
368       description: SCP FE image
369       default: asc_base_image_fe
370     flavor_scp_be_name:
371       hidden: false
372       immutable: false
373       type: string
374       description: SCP BE Flavor
375       default: a1.Small
376     shared_nova:
377       hidden: false
378       immutable: false
379       type: string
380     security_group_name:
381       label: vSCP security group name
382       hidden: false
383       immutable: false
384       type: string
385       description: vSCP security group name
386     ip_port_fe2:
387       hidden: false
388       immutable: false
389       type: string
390       description: FE2 IP port in SIGTRAN network
391     route_table_be:
392       hidden: false
393       immutable: false
394       type: string
395       description: Additional route table for BEs
396     ip_port_fe1:
397       hidden: false
398       immutable: false
399       type: string
400       description: FE1 IP port in SIGTRAN network
401     port_name:
402       hidden: false
403       immutable: false
404       type: string
405       description: port name
406       default: port_name
407     point_code_scp:
408       hidden: false
409       immutable: false
410       type: string
411       description: vSCP point code (in "zone-cluster-member" format)
412     global_title_stp:
413       hidden: false
414       immutable: false
415       type: string
416       description: STP Global Title address
417     point_code_stp1:
418       hidden: false
419       immutable: false
420       type: string
421       description: STP1 point code (in "zone-cluster-member" format)
422     point_code_stp2:
423       hidden: false
424       immutable: false
425       type: string
426       description: STP2 point code (in "zone-cluster-member" format)
427   node_templates:
428     server_smp_base:
429       type: org.openecomp.resource.vfc.nodes.heat.smp
430       properties:
431         flavor:
432           get_input: flavor_smp_name
433         availability_zone:
434           get_input: availability_zone_0
435         image:
436           get_input: image_smp_name
437         metadata:
438           vnf_id:
439             get_input: vnf_id
440         name:
441           get_input: smp_name_2
442         scheduler_hints:
443           group2: Multi_Anti_Affinity_group
444           group1: FE_SMP_Affinity_group
445     server_smp_addOn:
446       type: org.openecomp.resource.vfc.nodes.heat.smp
447       properties:
448         flavor:
449           get_input: flavor_smp_name
450         availability_zone:
451           get_input: availability_zone_0
452         image:
453           get_input: image_smp_name
454         name:
455           get_input: smp_name_2
456         scheduler_hints:
457           group2:
458             get_input: shared_nova
459           group1:
460             get_input: shared_server_group
461   groups:
462     FE_SMP_Affinity_group:
463       type: tosca.groups.Root
464       members:
465       - server_smp_base
466     Multi_Anti_Affinity_group:
467       type: tosca.groups.Root
468       members:
469       - server_smp_base
470     shared_Server_group_group:
471       type: tosca.groups.Root
472       members:
473       - server_smp_addOn
474     addOn_group:
475       type: org.openecomp.groups.heat.HeatStack
476       properties:
477         heat_file: ../Artifacts/addOn.yml
478         description: ASC Template
479       members:
480       - server_smp_addOn
481     hot_template_group:
482       type: org.openecomp.groups.heat.HeatStack
483       properties:
484         heat_file: ../Artifacts/hot_template.yml
485         description: ASC Template
486       members:
487       - server_smp_base
488   policies:
489     shared_Server_group_policy:
490       type: org.openecomp.policies.placement.Antilocate
491       properties:
492         name: def
493         container_type: host
494       targets:
495       - shared_Server_group_group
496     FE_SMP_Affinity_policy:
497       type: org.openecomp.policies.placement.Colocate
498       properties:
499         name: abc
500         affinity: host
501       targets:
502       - FE_SMP_Affinity_group
503     Multi_Anti_Affinity_policy:
504       type: org.openecomp.policies.placement.Antilocate
505       properties:
506         name: def
507         container_type: host
508       targets:
509       - Multi_Anti_Affinity_group