[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 / dynamicPolicy / 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     policy_value:
177       hidden: false
178       immutable: false
179       type: string
180     be_name_0:
181       hidden: false
182       immutable: false
183       type: string
184       description: name of VM
185       default: vSCP_BE1
186     int_vscp_cluster_cidr:
187       hidden: false
188       immutable: false
189       type: string
190       description: Private Network3 Address (CIDR notation)
191     be_name_1:
192       hidden: false
193       immutable: false
194       type: string
195       description: name of VM
196       default: vSCP_BE2
197     be_name_2:
198       hidden: false
199       immutable: false
200       type: string
201       description: name of VM
202       default: vSCP_BE3
203     point_code_stp:
204       hidden: false
205       immutable: false
206       type: string
207       description: STP virtual point code (in "zone-cluster-member" format)
208     be_name_3:
209       hidden: false
210       immutable: false
211       type: string
212       description: name of VM
213       default: vSCP_BE4
214     be_name_4:
215       hidden: false
216       immutable: false
217       type: string
218       description: name of VM
219       default: vSCP_BE5
220     global_title_scp:
221       hidden: false
222       immutable: false
223       type: string
224       description: vSCP Global Title address
225     vnf_name:
226       hidden: false
227       immutable: false
228       type: string
229       description: Unique name for this VNF instance
230       default: This_is_the_SCP_name
231     be_Cricket_OCS_protected_ip_2:
232       label: be3 Cricket_OCS ip address
233       hidden: false
234       immutable: false
235       type: string
236       description: be3 Cricket_OCS ip address
237     fe_Mobility_OAM_protected_ip_0:
238       label: fe_0 OAM ip address
239       hidden: false
240       immutable: false
241       type: string
242       description: fe_0 OAM ip address
243     hostname_fe1:
244       hidden: false
245       immutable: false
246       type: string
247       description: FE1 Hostname (from Ulticom license)
248     be_Cricket_OCS_protected_ip_1:
249       label: be2 Cricket_OCS ip address
250       hidden: false
251       immutable: false
252       type: string
253       description: be2 Cricket_OCS ip address
254     hostname_fe2:
255       hidden: false
256       immutable: false
257       type: string
258       description: FE2 Hostname (from Ulticom license)
259     be_Cricket_OCS_protected_ip_4:
260       label: be5 Cricket_OCS ip address
261       hidden: false
262       immutable: false
263       type: string
264       description: be5 Cricket_OCS ip address
265     be_Cricket_OCS_protected_ip_3:
266       label: be4 Cricket_OCS ip address
267       hidden: false
268       immutable: false
269       type: string
270       description: be4 Cricket_OCS ip address
271     fe_Mobility_OAM_protected_ip_1:
272       label: fe_1 OAM ip address
273       hidden: false
274       immutable: false
275       type: string
276       description: fe_1 OAM ip address
277     be_Cricket_OCS_protected_ip_0:
278       label: be1 Cricket_OCS ip address
279       hidden: false
280       immutable: false
281       type: string
282       description: be1 Cricket_OCS ip address
283     route_table_fe1:
284       hidden: false
285       immutable: false
286       type: string
287       description: Additional route table for FE1
288     Cricket_OCS_protected_net_id:
289       hidden: false
290       immutable: false
291       type: string
292       description: Network name for CRICKET_OCS
293     smp_name_2:
294       hidden: false
295       immutable: false
296       type: string
297       description: name of VM
298       default: vSMP2
299     vnf_id:
300       hidden: false
301       immutable: false
302       type: string
303       description: Unique ID for this VNF instance
304       default: This_is_ths_SCP_id
305     smp_name_1:
306       hidden: false
307       immutable: false
308       type: string
309       description: name of VM
310       default: vSMP2
311     flavor_smp_name:
312       hidden: false
313       immutable: false
314       type: string
315       description: SCP SMP Flavor
316       default: a1.Small
317     image_scp_be_name:
318       hidden: false
319       immutable: false
320       type: string
321       description: SCP BE image
322       default: asc_base_image_be
323     smp_name_0:
324       hidden: false
325       immutable: false
326       type: string
327       description: name of VM
328       default: vSMP1
329     route_table_fe2:
330       hidden: false
331       immutable: false
332       type: string
333       description: Additional route table for FE2
334     hostid_nee1:
335       hidden: false
336       immutable: false
337       type: string
338       description: NEE1 Hostid (from Ulticom license)
339     SIGNET_vrf_B1_direct_net_id:
340       hidden: false
341       immutable: false
342       type: string
343       description: Network name for SIGTRAN_B
344     fe_SIGNET_vrf_A1_direct_ip_0:
345       label: fe2 SIGTRAN ip address
346       hidden: false
347       immutable: false
348       type: string
349       description: fe2 SIGTRAN ip address
350     availability_zone_0:
351       hidden: false
352       immutable: false
353       type: string
354     nee_name_0:
355       hidden: false
356       immutable: false
357       type: string
358       description: name of VM
359       default: vNEE
360     ip_port_stp1:
361       hidden: false
362       immutable: false
363       type: string
364       description: STP1 IP port
365     ip_port_stp2:
366       hidden: false
367       immutable: false
368       type: string
369       description: STP2 IP port
370     image_scp_fe_name:
371       hidden: false
372       immutable: false
373       type: string
374       description: SCP FE image
375       default: asc_base_image_fe
376     flavor_scp_be_name:
377       hidden: false
378       immutable: false
379       type: string
380       description: SCP BE Flavor
381       default: a1.Small
382     policyListParam:
383       hidden: false
384       immutable: false
385       type: list
386       description: Policy server group. affinity/anti-affinity
387       constraints:
388       - valid_values:
389         - affinity
390         - anti-affinity
391       entry_schema:
392         type: string
393     security_group_name:
394       label: vSCP security group name
395       hidden: false
396       immutable: false
397       type: string
398       description: vSCP security group name
399     ip_port_fe2:
400       hidden: false
401       immutable: false
402       type: string
403       description: FE2 IP port in SIGTRAN network
404     route_table_be:
405       hidden: false
406       immutable: false
407       type: string
408       description: Additional route table for BEs
409     ip_port_fe1:
410       hidden: false
411       immutable: false
412       type: string
413       description: FE1 IP port in SIGTRAN network
414     port_name:
415       hidden: false
416       immutable: false
417       type: string
418       description: port name
419       default: port_name
420     point_code_scp:
421       hidden: false
422       immutable: false
423       type: string
424       description: vSCP point code (in "zone-cluster-member" format)
425     global_title_stp:
426       hidden: false
427       immutable: false
428       type: string
429       description: STP Global Title address
430     point_code_stp1:
431       hidden: false
432       immutable: false
433       type: string
434       description: STP1 point code (in "zone-cluster-member" format)
435     point_code_stp2:
436       hidden: false
437       immutable: false
438       type: string
439       description: STP2 point code (in "zone-cluster-member" format)
440   node_templates:
441     server_smp2:
442       type: org.openecomp.resource.vfc.nodes.heat.smp
443       properties:
444         flavor:
445           get_input: flavor_smp_name
446         availability_zone:
447           get_input: availability_zone_0
448         image:
449           get_input: image_smp_name
450         metadata:
451           jx_vm_role: smp2
452           vnf_id:
453             get_input: vnf_id
454           jx_lab_name:
455             get_input: lab_name
456         user_data_format: RAW
457         name:
458           get_input: smp_name_2
459         scheduler_hints:
460           group: FE_SMP_Affinity_group
461     server_smp3:
462       type: org.openecomp.resource.vfc.nodes.heat.smp
463       properties:
464         flavor:
465           get_input: flavor_smp_name
466         availability_zone:
467           get_input: availability_zone_0
468         image:
469           get_input: image_smp_name
470         metadata:
471           jx_vm_role: smp2
472           vnf_id:
473             get_input: vnf_id
474           jx_lab_name:
475             get_input: lab_name
476         user_data_format: RAW
477         name:
478           get_input: smp_name_2
479         scheduler_hints:
480           group4: UNSUPPORTED_RESOURCE_dynamicPolicy3
481           group3: UNSUPPORTED_RESOURCE_dynamicPolicy2
482           group2: UNSUPPORTED_RESOURCE_dynamicPolicy1
483           group1: FE_SMP_Affinity_group
484     port3:
485       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
486       properties:
487         replacement_policy: AUTO
488         ip_requirements:
489         - ip_version: 4
490           ip_count_required:
491             is_required: false
492           floating_ip_count_required:
493             is_required: false
494         mac_requirements:
495           mac_count_required:
496             is_required: false
497         network:
498           get_input: port_name
499       requirements:
500       - binding:
501           capability: tosca.capabilities.network.Bindable
502           node: server_smp3
503           relationship: tosca.relationships.network.BindsTo
504     port4:
505       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
506       properties:
507         replacement_policy: AUTO
508         ip_requirements:
509         - ip_version: 4
510           ip_count_required:
511             is_required: false
512           floating_ip_count_required:
513             is_required: false
514         mac_requirements:
515           mac_count_required:
516             is_required: false
517         network:
518           get_input: port_name
519       requirements:
520       - binding:
521           capability: tosca.capabilities.network.Bindable
522           node: server_smp3
523           relationship: tosca.relationships.network.BindsTo
524     port1:
525       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
526       properties:
527         replacement_policy: AUTO
528         ip_requirements:
529         - ip_version: 4
530           ip_count_required:
531             is_required: false
532           floating_ip_count_required:
533             is_required: false
534         mac_requirements:
535           mac_count_required:
536             is_required: false
537         network:
538           get_input: port_name
539       requirements:
540       - binding:
541           capability: tosca.capabilities.network.Bindable
542           node: server_smp1
543           relationship: tosca.relationships.network.BindsTo
544     server_smp1:
545       type: org.openecomp.resource.vfc.nodes.heat.smp
546       properties:
547         flavor:
548           get_input: flavor_smp_name
549         availability_zone:
550           get_input: availability_zone_0
551         image:
552           get_input: image_smp_name
553         metadata:
554           jx_vm_role: smp2
555           vnf_id:
556             get_input: vnf_id
557           jx_lab_name:
558             get_input: lab_name
559         user_data_format: RAW
560         name:
561           get_input: smp_name_1
562         scheduler_hints:
563           group: BE_Affinity_group
564     port2:
565       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
566       properties:
567         replacement_policy: AUTO
568         ip_requirements:
569         - ip_version: 4
570           ip_count_required:
571             is_required: false
572           floating_ip_count_required:
573             is_required: false
574         mac_requirements:
575           mac_count_required:
576             is_required: false
577         network:
578           get_input: port_name
579       requirements:
580       - binding:
581           capability: tosca.capabilities.network.Bindable
582           node: server_smp2
583           relationship: tosca.relationships.network.BindsTo
584   groups:
585     FE_SMP_Affinity_group:
586       type: tosca.groups.Root
587       members:
588       - server_smp2
589       - server_smp3
590     hot_template_group:
591       type: org.openecomp.groups.heat.HeatStack
592       properties:
593         heat_file: ../Artifacts/hot_template.yml
594         description: ASC Template
595       members:
596       - server_smp2
597       - server_smp3
598       - port3
599       - port4
600       - port1
601       - server_smp1
602       - port2
603     BE_Affinity_group:
604       type: tosca.groups.Root
605       members:
606       - server_smp1
607   policies:
608     BE_Affinity_policy:
609       type: org.openecomp.policies.placement.Colocate
610       properties:
611         name: def
612         affinity: host
613       targets:
614       - BE_Affinity_group
615     FE_SMP_Affinity_policy:
616       type: org.openecomp.policies.placement.Colocate
617       properties:
618         name: abc
619         affinity: host
620       targets:
621       - FE_SMP_Affinity_group