[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 / staticPolicy / 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     int_vscp_ce_network_cidr:
49       hidden: false
50       immutable: false
51       type: string
52       description: Private Network Address (CIDR notation)
53     cluster_type:
54       hidden: false
55       immutable: false
56       type: string
57       constraints:
58       - valid_values:
59         - Test
60         - Prod
61     be_Mobility_OAM_protected_ip_1:
62       label: be_1 OAM ip address
63       hidden: false
64       immutable: false
65       type: string
66       description: be_1 OAM ip address
67     be_Mobility_OAM_protected_ip_2:
68       label: be_2 OAM ip address
69       hidden: false
70       immutable: false
71       type: string
72       description: be_2 OAM ip address
73     be_Mobility_OAM_protected_ip_0:
74       label: be_0 OAM ip address
75       hidden: false
76       immutable: false
77       type: string
78       description: be_0 OAM ip address
79     ip_address_dra:
80       hidden: false
81       immutable: false
82       type: string
83       description: DRA VIP address
84     image_smp_name:
85       hidden: false
86       immutable: false
87       type: string
88       description: SCP SMP image
89       default: asc_base_image_smp
90     fe_connectivity:
91       hidden: false
92       immutable: false
93       type: string
94       constraints:
95       - valid_values:
96         - NEE
97         - STP
98     lab_name:
99       hidden: false
100       immutable: false
101       type: string
102       description: Lab name
103     smp_Mobility_OAM_protected_ip_1:
104       label: smp_1 OAM ip address
105       hidden: false
106       immutable: false
107       type: string
108       description: smp_1 OAM ip address
109     fe_SIGNET_vrf_B1_direct_ip_0:
110       label: fe1 SIGTRAN ip address
111       hidden: false
112       immutable: false
113       type: string
114       description: fe1 SIGTRAN ip address
115     smp_Mobility_OAM_protected_ip_0:
116       label: smp_0 OAM ip address
117       hidden: false
118       immutable: false
119       type: string
120       description: smp_0 OAM ip address
121     int_vscp_cluster_net_id:
122       hidden: false
123       immutable: false
124       type: string
125       description: LAN3 Cluster
126     be_Mobility_OAM_protected_ip_3:
127       label: be_3 OAM ip address
128       hidden: false
129       immutable: false
130       type: string
131       description: be_3 OAM ip address
132     be_Mobility_OAM_protected_ip_4:
133       label: be_4 OAM ip address
134       hidden: false
135       immutable: false
136       type: string
137       description: be_4 OAM ip address
138     hostname_nee1:
139       hidden: false
140       immutable: false
141       type: string
142       description: NEE1 Hostname (from Ulticom license)
143     int_vscp_fe_cluster_net_id:
144       hidden: false
145       immutable: false
146       type: string
147       description: LAN2 FE Cluster/KA
148     SIGNET_vrf_A1_direct_net_id:
149       hidden: false
150       immutable: false
151       type: string
152       description: Network name for SIGTRAN_A
153     key_name:
154       hidden: false
155       immutable: false
156       type: string
157       description: keypair to enable SSH access to the instance.
158       default: vSCP-keypair
159     int_vscp_fe_cluster_cidr:
160       hidden: false
161       immutable: false
162       type: string
163       description: Private Network2 Address (CIDR notation)
164     fe_name_1:
165       hidden: false
166       immutable: false
167       type: string
168       description: name of VM
169       default: vSCP_FE2
170     fe_name_0:
171       hidden: false
172       immutable: false
173       type: string
174       description: name of VM
175       default: vSCP_FE1
176     be_name_0:
177       hidden: false
178       immutable: false
179       type: string
180       description: name of VM
181       default: vSCP_BE1
182     int_vscp_cluster_cidr:
183       hidden: false
184       immutable: false
185       type: string
186       description: Private Network3 Address (CIDR notation)
187     be_name_1:
188       hidden: false
189       immutable: false
190       type: string
191       description: name of VM
192       default: vSCP_BE2
193     be_name_2:
194       hidden: false
195       immutable: false
196       type: string
197       description: name of VM
198       default: vSCP_BE3
199     point_code_stp:
200       hidden: false
201       immutable: false
202       type: string
203       description: STP virtual point code (in "zone-cluster-member" format)
204     be_name_3:
205       hidden: false
206       immutable: false
207       type: string
208       description: name of VM
209       default: vSCP_BE4
210     be_name_4:
211       hidden: false
212       immutable: false
213       type: string
214       description: name of VM
215       default: vSCP_BE5
216     global_title_scp:
217       hidden: false
218       immutable: false
219       type: string
220       description: vSCP Global Title address
221     vnf_name:
222       hidden: false
223       immutable: false
224       type: string
225       description: Unique name for this VNF instance
226       default: This_is_the_SCP_name
227     be_Cricket_OCS_protected_ip_2:
228       label: be3 Cricket_OCS ip address
229       hidden: false
230       immutable: false
231       type: string
232       description: be3 Cricket_OCS ip address
233     fe_Mobility_OAM_protected_ip_0:
234       label: fe_0 OAM ip address
235       hidden: false
236       immutable: false
237       type: string
238       description: fe_0 OAM ip address
239     hostname_fe1:
240       hidden: false
241       immutable: false
242       type: string
243       description: FE1 Hostname (from Ulticom license)
244     be_Cricket_OCS_protected_ip_1:
245       label: be2 Cricket_OCS ip address
246       hidden: false
247       immutable: false
248       type: string
249       description: be2 Cricket_OCS ip address
250     hostname_fe2:
251       hidden: false
252       immutable: false
253       type: string
254       description: FE2 Hostname (from Ulticom license)
255     be_Cricket_OCS_protected_ip_4:
256       label: be5 Cricket_OCS ip address
257       hidden: false
258       immutable: false
259       type: string
260       description: be5 Cricket_OCS ip address
261     be_Cricket_OCS_protected_ip_3:
262       label: be4 Cricket_OCS ip address
263       hidden: false
264       immutable: false
265       type: string
266       description: be4 Cricket_OCS ip address
267     fe_Mobility_OAM_protected_ip_1:
268       label: fe_1 OAM ip address
269       hidden: false
270       immutable: false
271       type: string
272       description: fe_1 OAM ip address
273     be_Cricket_OCS_protected_ip_0:
274       label: be1 Cricket_OCS ip address
275       hidden: false
276       immutable: false
277       type: string
278       description: be1 Cricket_OCS ip address
279     route_table_fe1:
280       hidden: false
281       immutable: false
282       type: string
283       description: Additional route table for FE1
284     Cricket_OCS_protected_net_id:
285       hidden: false
286       immutable: false
287       type: string
288       description: Network name for CRICKET_OCS
289     smp_name_2:
290       hidden: false
291       immutable: false
292       type: string
293       description: name of VM
294       default: vSMP2
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       description: SCP SMP Flavor
312       default: a1.Small
313     image_scp_be_name:
314       hidden: false
315       immutable: false
316       type: string
317       description: SCP BE image
318       default: asc_base_image_be
319     smp_name_0:
320       hidden: false
321       immutable: false
322       type: string
323       description: name of VM
324       default: vSMP1
325     route_table_fe2:
326       hidden: false
327       immutable: false
328       type: string
329       description: Additional route table for FE2
330     hostid_nee1:
331       hidden: false
332       immutable: false
333       type: string
334       description: NEE1 Hostid (from Ulticom license)
335     SIGNET_vrf_B1_direct_net_id:
336       hidden: false
337       immutable: false
338       type: string
339       description: Network name for SIGTRAN_B
340     fe_SIGNET_vrf_A1_direct_ip_0:
341       label: fe2 SIGTRAN ip address
342       hidden: false
343       immutable: false
344       type: string
345       description: fe2 SIGTRAN ip address
346     availability_zone_0:
347       hidden: false
348       immutable: false
349       type: string
350     nee_name_0:
351       hidden: false
352       immutable: false
353       type: string
354       description: name of VM
355       default: vNEE
356     ip_port_stp1:
357       hidden: false
358       immutable: false
359       type: string
360       description: STP1 IP port
361     ip_port_stp2:
362       hidden: false
363       immutable: false
364       type: string
365       description: STP2 IP port
366     image_scp_fe_name:
367       hidden: false
368       immutable: false
369       type: string
370       description: SCP FE image
371       default: asc_base_image_fe
372     flavor_scp_be_name:
373       hidden: false
374       immutable: false
375       type: string
376       description: SCP BE Flavor
377       default: a1.Small
378     security_group_name:
379       label: vSCP security group name
380       hidden: false
381       immutable: false
382       type: string
383       description: vSCP security group name
384     ip_port_fe2:
385       hidden: false
386       immutable: false
387       type: string
388       description: FE2 IP port in SIGTRAN network
389     route_table_be:
390       hidden: false
391       immutable: false
392       type: string
393       description: Additional route table for BEs
394     ip_port_fe1:
395       hidden: false
396       immutable: false
397       type: string
398       description: FE1 IP port in SIGTRAN network
399     port_name:
400       hidden: false
401       immutable: false
402       type: string
403       description: port name
404       default: port_name
405     point_code_scp:
406       hidden: false
407       immutable: false
408       type: string
409       description: vSCP point code (in "zone-cluster-member" format)
410     global_title_stp:
411       hidden: false
412       immutable: false
413       type: string
414       description: STP Global Title address
415     point_code_stp1:
416       hidden: false
417       immutable: false
418       type: string
419       description: STP1 point code (in "zone-cluster-member" format)
420     point_code_stp2:
421       hidden: false
422       immutable: false
423       type: string
424       description: STP2 point code (in "zone-cluster-member" format)
425   node_templates:
426     server_smp2:
427       type: org.openecomp.resource.vfc.nodes.heat.smp
428       properties:
429         flavor:
430           get_input: flavor_smp_name
431         availability_zone:
432           get_input: availability_zone_0
433         image:
434           get_input: image_smp_name
435         metadata:
436           jx_vm_role: smp2
437           vnf_id:
438             get_input: vnf_id
439           jx_lab_name:
440             get_input: lab_name
441         user_data_format: RAW
442         name:
443           get_input: smp_name_2
444         scheduler_hints:
445           group: FE_SMP_Affinity_group
446     server_smp3:
447       type: org.openecomp.resource.vfc.nodes.heat.smp
448       properties:
449         flavor:
450           get_input: flavor_smp_name
451         availability_zone:
452           get_input: availability_zone_0
453         image:
454           get_input: image_smp_name
455         metadata:
456           jx_vm_role: smp2
457           vnf_id:
458             get_input: vnf_id
459           jx_lab_name:
460             get_input: lab_name
461         user_data_format: RAW
462         name:
463           get_input: smp_name_2
464         scheduler_hints:
465           group2: Multi_Anti_Affinity_group
466           group1: FE_SMP_Affinity_group
467     port3:
468       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
469       properties:
470         replacement_policy: AUTO
471         ip_requirements:
472         - ip_version: 4
473           ip_count_required:
474             is_required: false
475           floating_ip_count_required:
476             is_required: false
477         mac_requirements:
478           mac_count_required:
479             is_required: false
480         network:
481           get_input: port_name
482       requirements:
483       - binding:
484           capability: tosca.capabilities.network.Bindable
485           node: server_smp3
486           relationship: tosca.relationships.network.BindsTo
487     port4:
488       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
489       properties:
490         replacement_policy: AUTO
491         ip_requirements:
492         - ip_version: 4
493           ip_count_required:
494             is_required: false
495           floating_ip_count_required:
496             is_required: false
497         mac_requirements:
498           mac_count_required:
499             is_required: false
500         network:
501           get_input: port_name
502       requirements:
503       - binding:
504           capability: tosca.capabilities.network.Bindable
505           node: server_smp3
506           relationship: tosca.relationships.network.BindsTo
507     port1:
508       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
509       properties:
510         replacement_policy: AUTO
511         ip_requirements:
512         - ip_version: 4
513           ip_count_required:
514             is_required: false
515           floating_ip_count_required:
516             is_required: false
517         mac_requirements:
518           mac_count_required:
519             is_required: false
520         network:
521           get_input: port_name
522       requirements:
523       - binding:
524           capability: tosca.capabilities.network.Bindable
525           node: server_smp1
526           relationship: tosca.relationships.network.BindsTo
527     server_smp1:
528       type: org.openecomp.resource.vfc.nodes.heat.smp
529       properties:
530         flavor:
531           get_input: flavor_smp_name
532         availability_zone:
533           get_input: availability_zone_0
534         image:
535           get_input: image_smp_name
536         metadata:
537           jx_vm_role: smp2
538           vnf_id:
539             get_input: vnf_id
540           jx_lab_name:
541             get_input: lab_name
542         user_data_format: RAW
543         name:
544           get_input: smp_name_1
545         scheduler_hints:
546           group: BE_Affinity_group
547     port2:
548       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
549       properties:
550         replacement_policy: AUTO
551         ip_requirements:
552         - ip_version: 4
553           ip_count_required:
554             is_required: false
555           floating_ip_count_required:
556             is_required: false
557         mac_requirements:
558           mac_count_required:
559             is_required: false
560         network:
561           get_input: port_name
562       requirements:
563       - binding:
564           capability: tosca.capabilities.network.Bindable
565           node: server_smp2
566           relationship: tosca.relationships.network.BindsTo
567   groups:
568     FE_SMP_Affinity_group:
569       type: tosca.groups.Root
570       members:
571       - server_smp2
572       - server_smp3
573     Multi_Anti_Affinity_group:
574       type: tosca.groups.Root
575       members:
576       - server_smp3
577     hot_template_group:
578       type: org.openecomp.groups.heat.HeatStack
579       properties:
580         heat_file: ../Artifacts/hot_template.yml
581         description: ASC Template
582       members:
583       - server_smp2
584       - server_smp3
585       - port3
586       - port4
587       - port1
588       - server_smp1
589       - port2
590     BE_Affinity_group:
591       type: tosca.groups.Root
592       members:
593       - server_smp1
594   policies:
595     BE_Affinity_policy:
596       type: org.openecomp.policies.placement.Colocate
597       properties:
598         name: def
599         affinity: host
600       targets:
601       - BE_Affinity_group
602     FE_SMP_Affinity_policy:
603       type: org.openecomp.policies.placement.Colocate
604       properties:
605         name: abc
606         affinity: host
607       targets:
608       - FE_SMP_Affinity_group
609     Multi_Anti_Affinity_policy:
610       type: org.openecomp.policies.placement.Antilocate
611       properties:
612         name: def
613         container_type: host
614       targets:
615       - Multi_Anti_Affinity_group