push addional code
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / securitygrouptonovaconnectionmulti / 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     fe_smp_affinity_param:
381       hidden: false
382       immutable: false
383       type: string
384       description: be affinity param
385     ip_port_stp1:
386       hidden: false
387       immutable: false
388       type: string
389       description: STP1 IP port
390     ip_port_stp2:
391       hidden: false
392       immutable: false
393       type: string
394       description: STP2 IP port
395     image_scp_fe_name:
396       hidden: false
397       immutable: false
398       type: string
399       description: SCP FE image
400       default: asc_base_image_fe
401     flavor_scp_be_name:
402       hidden: false
403       immutable: false
404       type: string
405       description: SCP BE Flavor
406       default: a1.Small
407     security_group_name:
408       label: vSCP security group name
409       hidden: false
410       immutable: false
411       type: string
412       description: vSCP security group name
413     ip_port_fe2:
414       hidden: false
415       immutable: false
416       type: string
417       description: FE2 IP port in SIGTRAN network
418     route_table_be:
419       hidden: false
420       immutable: false
421       type: string
422       description: Additional route table for BEs
423     ip_port_fe1:
424       hidden: false
425       immutable: false
426       type: string
427       description: FE1 IP port in SIGTRAN network
428     port_name:
429       hidden: false
430       immutable: false
431       type: string
432       description: port name
433       default: port_name
434     be_affinity_param:
435       hidden: false
436       immutable: false
437       type: string
438       description: be affinity param
439     point_code_scp:
440       hidden: false
441       immutable: false
442       type: string
443       description: vSCP point code (in "zone-cluster-member" format)
444     global_title_stp:
445       hidden: false
446       immutable: false
447       type: string
448       description: STP Global Title address
449     point_code_stp1:
450       hidden: false
451       immutable: false
452       type: string
453       description: STP1 point code (in "zone-cluster-member" format)
454     point_code_stp2:
455       hidden: false
456       immutable: false
457       type: string
458       description: STP2 point code (in "zone-cluster-member" format)
459     multi_anti_affinity_param:
460       hidden: false
461       immutable: false
462       type: string
463       description: be affinity param
464   node_templates:
465     server_smp2:
466       type: org.openecomp.resource.vfc.nodes.heat.smp
467       properties:
468         flavor:
469           get_input: flavor_smp_name
470         availability_zone:
471           get_input: availability_zone_0
472         image:
473           get_input: image_smp_name
474         metadata:
475           jx_vm_role: smp2
476           vnf_id:
477             get_input: vnf_id
478           jx_lab_name:
479             get_input: lab_name
480         user_data_format: RAW
481         name:
482           get_input: smp_name_2
483         scheduler_hints:
484           group:
485             get_input: fe_smp_affinity_param
486     server_smp3:
487       type: org.openecomp.resource.vfc.nodes.heat.smp
488       properties:
489         flavor:
490           get_input: flavor_smp_name
491         availability_zone:
492           get_input: availability_zone_0
493         image:
494           get_input: image_smp_name
495         metadata:
496           jx_vm_role: smp2
497           vnf_id:
498             get_input: vnf_id
499           jx_lab_name:
500             get_input: lab_name
501         user_data_format: RAW
502         name:
503           get_input: smp_name_2
504         scheduler_hints:
505           group2:
506             get_input: multi_anti_affinity_param
507           group1:
508             get_input: fe_smp_affinity_param
509     port3:
510       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
511       properties:
512         replacement_policy: AUTO
513         network:
514           get_input: port_name
515       requirements:
516       - binding:
517           capability: tosca.capabilities.network.Bindable
518           node: server_smp3
519           relationship: tosca.relationships.network.BindsTo
520     port4:
521       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
522       properties:
523         replacement_policy: AUTO
524         network:
525           get_input: port_name
526       requirements:
527       - binding:
528           capability: tosca.capabilities.network.Bindable
529           node: server_smp3
530           relationship: tosca.relationships.network.BindsTo
531     port1:
532       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
533       properties:
534         replacement_policy: AUTO
535         network:
536           get_input: port_name
537       requirements:
538       - binding:
539           capability: tosca.capabilities.network.Bindable
540           node: server_smp1
541           relationship: tosca.relationships.network.BindsTo
542     port2:
543       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
544       properties:
545         replacement_policy: AUTO
546         network:
547           get_input: port_name
548       requirements:
549       - binding:
550           capability: tosca.capabilities.network.Bindable
551           node: server_smp2
552           relationship: tosca.relationships.network.BindsTo
553     server_smp1:
554       type: org.openecomp.resource.vfc.nodes.heat.smp
555       properties:
556         flavor:
557           get_input: flavor_smp_name
558         availability_zone:
559           get_input: availability_zone_0
560         image:
561           get_input: image_smp_name
562         metadata:
563           jx_vm_role: smp2
564           vnf_id:
565             get_input: vnf_id
566           jx_lab_name:
567             get_input: lab_name
568         user_data_format: RAW
569         name:
570           get_input: smp_name_1
571         scheduler_hints:
572           group:
573             get_input: be_affinity_param
574   groups:
575     FE_SMP_Affinity:
576       type: tosca.groups.Root
577       members:
578       - server_smp2
579       - server_smp3
580     Multi_Anti_Affinity:
581       type: tosca.groups.Root
582       members:
583       - server_smp3
584     addOn1:
585       type: org.openecomp.groups.heat.HeatStack
586       properties:
587         heat_file: ../Artifacts/addOn1.yml
588         description: ASC Template
589       members:
590       - port1
591       - server_smp1
592     addOn3:
593       type: org.openecomp.groups.heat.HeatStack
594       properties:
595         heat_file: ../Artifacts/addOn3.yml
596         description: ASC Template
597       members:
598       - server_smp3
599       - port3
600       - port4
601     addOn2:
602       type: org.openecomp.groups.heat.HeatStack
603       properties:
604         heat_file: ../Artifacts/addOn2.yml
605         description: ASC Template
606       members:
607       - server_smp2
608       - port2
609     BE_Affinity:
610       type: tosca.groups.Root
611       members:
612       - server_smp1
613   policies:
614     FE_SMP_Affinity:
615       type: org.openecomp.policies.placement.Colocate
616       properties:
617         name: abc
618         affinity: host
619       targets:
620       - FE_SMP_Affinity
621     Multi_Anti_Affinity:
622       type: org.openecomp.policies.placement.Antilocate
623       properties:
624         name: def
625         container_type: host
626       targets:
627       - Multi_Anti_Affinity
628     BE_Affinity:
629       type: org.openecomp.policies.placement.Colocate
630       properties:
631         name: def
632         affinity: host
633       targets:
634       - BE_Affinity