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