[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 / securityGroupToNovaAddOn / 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     fe_smp_affinity_param:
357       hidden: false
358       immutable: false
359       type: string
360       description: be affinity param
361     ip_port_stp1:
362       hidden: false
363       immutable: false
364       type: string
365       description: STP1 IP port
366     ip_port_stp2:
367       hidden: false
368       immutable: false
369       type: string
370       description: STP2 IP port
371     image_scp_fe_name:
372       hidden: false
373       immutable: false
374       type: string
375       description: SCP FE image
376       default: asc_base_image_fe
377     flavor_scp_be_name:
378       hidden: false
379       immutable: false
380       type: string
381       description: SCP BE Flavor
382       default: a1.Small
383     security_group_name:
384       label: vSCP security group name
385       hidden: false
386       immutable: false
387       type: string
388       description: vSCP security group name
389     ip_port_fe2:
390       hidden: false
391       immutable: false
392       type: string
393       description: FE2 IP port in SIGTRAN network
394     route_table_be:
395       hidden: false
396       immutable: false
397       type: string
398       description: Additional route table for BEs
399     ip_port_fe1:
400       hidden: false
401       immutable: false
402       type: string
403       description: FE1 IP port in SIGTRAN network
404     port_name:
405       hidden: false
406       immutable: false
407       type: string
408       description: port name
409       default: port_name
410     be_affinity_param:
411       hidden: false
412       immutable: false
413       type: string
414       description: be affinity param
415     point_code_scp:
416       hidden: false
417       immutable: false
418       type: string
419       description: vSCP point code (in "zone-cluster-member" format)
420     global_title_stp:
421       hidden: false
422       immutable: false
423       type: string
424       description: STP Global Title address
425     point_code_stp1:
426       hidden: false
427       immutable: false
428       type: string
429       description: STP1 point code (in "zone-cluster-member" format)
430     point_code_stp2:
431       hidden: false
432       immutable: false
433       type: string
434       description: STP2 point code (in "zone-cluster-member" format)
435     multi_anti_affinity_param:
436       hidden: false
437       immutable: false
438       type: string
439       description: be affinity param
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:
461             get_input: fe_smp_affinity_param
462     server_smp3:
463       type: org.openecomp.resource.vfc.nodes.heat.smp
464       properties:
465         flavor:
466           get_input: flavor_smp_name
467         availability_zone:
468           get_input: availability_zone_0
469         image:
470           get_input: image_smp_name
471         metadata:
472           jx_vm_role: smp2
473           vnf_id:
474             get_input: vnf_id
475           jx_lab_name:
476             get_input: lab_name
477         user_data_format: RAW
478         name:
479           get_input: smp_name_2
480         scheduler_hints:
481           group2:
482             get_input: multi_anti_affinity_param
483           group1:
484             get_input: fe_smp_affinity_param
485     server_smp4:
486       type: org.openecomp.resource.vfc.nodes.heat.smp
487       properties:
488         flavor:
489           get_input: flavor_smp_name
490         availability_zone:
491           get_input: availability_zone_0
492         image:
493           get_input: image_smp_name
494         metadata:
495           jx_vm_role: smp2
496           vnf_id:
497             get_input: vnf_id
498           jx_lab_name:
499             get_input: lab_name
500         user_data_format: RAW
501         name:
502           get_input: smp_name_2
503         scheduler_hints:
504           group1:
505             get_input:
506             - multi_anti_affinity_param
507             - 0
508     port3:
509       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
510       properties:
511         replacement_policy: AUTO
512         ip_requirements:
513         - ip_version: 4
514           ip_count_required:
515             is_required: false
516           floating_ip_count_required:
517             is_required: false
518         mac_requirements:
519           mac_count_required:
520             is_required: false
521         network:
522           get_input: port_name
523       requirements:
524       - binding:
525           capability: tosca.capabilities.network.Bindable
526           node: server_smp3
527           relationship: tosca.relationships.network.BindsTo
528     port4:
529       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
530       properties:
531         replacement_policy: AUTO
532         ip_requirements:
533         - ip_version: 4
534           ip_count_required:
535             is_required: false
536           floating_ip_count_required:
537             is_required: false
538         mac_requirements:
539           mac_count_required:
540             is_required: false
541         network:
542           get_input: port_name
543       requirements:
544       - binding:
545           capability: tosca.capabilities.network.Bindable
546           node: server_smp3
547           relationship: tosca.relationships.network.BindsTo
548     port1:
549       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
550       properties:
551         replacement_policy: AUTO
552         ip_requirements:
553         - ip_version: 4
554           ip_count_required:
555             is_required: false
556           floating_ip_count_required:
557             is_required: false
558         mac_requirements:
559           mac_count_required:
560             is_required: false
561         network:
562           get_input: port_name
563       requirements:
564       - binding:
565           capability: tosca.capabilities.network.Bindable
566           node: server_smp1
567           relationship: tosca.relationships.network.BindsTo
568     port2:
569       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
570       properties:
571         replacement_policy: AUTO
572         ip_requirements:
573         - ip_version: 4
574           ip_count_required:
575             is_required: false
576           floating_ip_count_required:
577             is_required: false
578         mac_requirements:
579           mac_count_required:
580             is_required: false
581         network:
582           get_input: port_name
583       requirements:
584       - binding:
585           capability: tosca.capabilities.network.Bindable
586           node: server_smp2
587           relationship: tosca.relationships.network.BindsTo
588     server_smp1:
589       type: org.openecomp.resource.vfc.nodes.heat.smp
590       properties:
591         flavor:
592           get_input: flavor_smp_name
593         availability_zone:
594           get_input: availability_zone_0
595         image:
596           get_input: image_smp_name
597         metadata:
598           jx_vm_role: smp2
599           vnf_id:
600             get_input: vnf_id
601           jx_lab_name:
602             get_input: lab_name
603         user_data_format: RAW
604         name:
605           get_input: smp_name_1
606         scheduler_hints:
607           group:
608             get_input: be_affinity_param
609   groups:
610     FE_SMP_Affinity_group:
611       type: tosca.groups.Root
612       members:
613       - server_smp2
614       - server_smp3
615     addOn1_group:
616       type: org.openecomp.groups.heat.HeatStack
617       properties:
618         heat_file: ../Artifacts/addOn1.yml
619         description: ASC Template
620       members:
621       - port1
622       - server_smp1
623     addOn3_group:
624       type: org.openecomp.groups.heat.HeatStack
625       properties:
626         heat_file: ../Artifacts/addOn3.yml
627         description: ASC Template
628       members:
629       - server_smp3
630       - server_smp4
631       - port3
632       - port4
633     Multi_Anti_Affinity_group:
634       type: tosca.groups.Root
635       members:
636       - server_smp3
637     addOn2_group:
638       type: org.openecomp.groups.heat.HeatStack
639       properties:
640         heat_file: ../Artifacts/addOn2.yml
641         description: ASC Template
642       members:
643       - server_smp2
644       - port2
645     BE_Affinity_group:
646       type: tosca.groups.Root
647       members:
648       - server_smp1
649   policies:
650     BE_Affinity_policy:
651       type: org.openecomp.policies.placement.Colocate
652       properties:
653         name: def
654         affinity: host
655       targets:
656       - BE_Affinity_group
657     FE_SMP_Affinity_policy:
658       type: org.openecomp.policies.placement.Colocate
659       properties:
660         name: abc
661         affinity: host
662       targets:
663       - FE_SMP_Affinity_group
664     Multi_Anti_Affinity_policy:
665       type: org.openecomp.policies.placement.Antilocate
666       properties:
667         name: def
668         container_type: host
669       targets:
670       - Multi_Anti_Affinity_group