push addional code
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / hot-mog-0108-bs1271 / 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.pd_server:
33     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
34   org.openecomp.resource.vfc.nodes.heat.ps_server:
35     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
36   org.openecomp.resource.vfc.nodes.heat.sm_server:
37     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
38   org.openecomp.resource.vfc.nodes.heat.cm_server:
39     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
40   org.openecomp.resource.vfc.nodes.heat.oam_server:
41     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
42 topology_template:
43   inputs:
44     pd_flavor_name:
45       label: PD flavor name
46       hidden: false
47       immutable: false
48       type: string
49       description: flavor name of PD instance
50       default: m3.xlarge
51     availabilityzone_name:
52       label: availabilityzone name
53       hidden: false
54       immutable: false
55       type: string
56       description: availabilityzone name
57       default: nova
58     repl_net_ips:
59       label: repl network ips
60       hidden: false
61       immutable: false
62       type: list
63       description: ips of repl network
64       default:
65       - 107.239.33.57
66       - 107.239.33.58
67       entry_schema:
68         type: string
69     sl_net_name:
70       label: silver lining network name
71       hidden: false
72       immutable: false
73       type: string
74       description: id of the sl network
75       default: exn_protected_net_0
76     pd_image_name:
77       label: image name
78       hidden: false
79       immutable: false
80       type: string
81       description: PD image name
82       default: MOG_BASE_8.0
83     mog_script_name:
84       label: mog Config script name
85       hidden: false
86       immutable: false
87       type: string
88       description: Config script name
89       default: http://10.147.38.210:8080/v1/AUTH_8e501b8121f34a6eaaf526d3305985cc/mogtestcontainer/mog-cloudinit.sh
90     pd_server_names:
91       label: PD server names
92       hidden: false
93       immutable: false
94       type: list
95       description: name of the PD instance
96       default:
97       - ZRDM1MOGX01MPD001
98       - ZRDM1MOGX01MPD002
99       entry_schema:
100         type: string
101     sm_server_names:
102       label: SM server names
103       hidden: false
104       immutable: false
105       type: list
106       description: name of the SM instance
107       default:
108       - ZRDM1MOGX01MSM001
109       - ZRDM1MOGX01MSM002
110       entry_schema:
111         type: string
112     dummy_net_netmask_1:
113       hidden: false
114       immutable: false
115       type: string
116       description: CSB internal network subnet mask
117       default: 255.255.255.0
118     dummy_net_netmask_0:
119       hidden: false
120       immutable: false
121       type: string
122       description: CSB internal network subnet mask
123       default: 255.255.255.0
124     ran_net_floating_ip:
125       label: mog ran net virtual ip
126       hidden: false
127       immutable: false
128       type: string
129       description: mog ran net virtual ip
130       default: 107.239.36.5
131     ran_net_ips:
132       label: RAN network ips
133       hidden: false
134       immutable: false
135       type: list
136       description: RAN network ip
137       default:
138       - 107.239.36.3
139       - 107.239.36.4
140       entry_schema:
141         type: string
142     dummy_net_end_0:
143       label: csb internal end
144       hidden: false
145       immutable: false
146       type: string
147       description: csb internal end
148       default: 169.254.1.254
149     oam_image_name:
150       label: image name
151       hidden: false
152       immutable: false
153       type: string
154       description: OAM image name
155       default: MOG_BASE_8.0
156     dummy_net_end_1:
157       label: csb internal end
158       hidden: false
159       immutable: false
160       type: string
161       description: csb internal end
162       default: 169.254.2.254
163     oam_net_name:
164       label: oam network name
165       hidden: false
166       immutable: false
167       type: string
168       description: name of the oam network
169       default: oam_protected_net_0
170     oam_net_ips:
171       label: internet network ips
172       hidden: false
173       immutable: false
174       type: list
175       description: ip of the OAM network
176       default:
177       - 107.250.172.213
178       - 107.250.172.214
179       - 107.250.172.215
180       - 107.250.172.216
181       - 107.250.172.217
182       entry_schema:
183         type: string
184     ran_net_name:
185       label: RAN network name
186       hidden: false
187       immutable: false
188       type: string
189       description: RAN network name
190       default: gn_direct_net_0
191     cluster-manager-vol-1:
192       label: mog-cm-vol-1
193       hidden: false
194       immutable: false
195       type: string
196       description: Cluster Manager volume 1
197       default: 43ccf5ba-2d50-427b-a38f-e8c7d8670eee
198     cluster-manager-vol-2:
199       label: mog-cm-vol-2
200       hidden: false
201       immutable: false
202       type: string
203       description: Cluster Manager volume 2 with ISO image
204       default: 6f92e211-2d61-487d-8f84-d2d00cea3698
205     csb_net_netmask:
206       hidden: false
207       immutable: false
208       type: string
209       description: CSB internal network subnet mask
210       default: 255.255.255.0
211     oam_flavor_name:
212       label: OAM flavor name
213       hidden: false
214       immutable: false
215       type: string
216       description: flavor name of OAM instance
217       default: m3.xlarge
218     dummy_net_start_0:
219       label: csb internal start
220       hidden: false
221       immutable: false
222       type: string
223       description: csb internal start
224       default: 169.254.1.4
225     dummy_net_start_1:
226       label: csb internal start
227       hidden: false
228       immutable: false
229       type: string
230       description: csb internal start
231       default: 169.254.2.4
232     cm_flavor_name:
233       label: CM flavor name
234       hidden: false
235       immutable: false
236       type: string
237       description: flavor name of CM instance
238       default: m3.xlarge
239     sm_image_name:
240       label: image name
241       hidden: false
242       immutable: false
243       type: string
244       description: SM image name
245       default: MOG_BASE_8.0
246     mog_parameter_name:
247       label: mog script parameter name
248       hidden: false
249       immutable: false
250       type: string
251       description: Config script parameter csv file name
252       default: http://10.147.38.210:8080/v1/AUTH_8e501b8121f34a6eaaf526d3305985cc/mogtestcontainer
253     ps_server_names:
254       label: PS server names
255       hidden: false
256       immutable: false
257       type: list
258       description: name of the PS instance
259       default:
260       - ZRDM1MOGX01MPS001
261       - ZRDM1MOGX01MPS002
262       - ZRDM1MOGX01MPS003
263       - ZRDM1MOGX01MPS004
264       entry_schema:
265         type: string
266     csb_net_ips:
267       hidden: false
268       immutable: false
269       type: list
270       description: mog_csb_net IP addresses
271       default:
272       - 172.26.0.10
273       - 172.26.0.11
274       - 172.26.0.12
275       - 172.26.0.13
276       - 172.26.0.14
277       - 172.26.0.15
278       - 172.26.0.16
279       - 172.26.0.17
280       - 172.26.0.18
281       - 172.26.0.19
282       - 172.26.0.20
283       entry_schema:
284         type: string
285     ps_flavor_name:
286       label: PS flavor name
287       hidden: false
288       immutable: false
289       type: string
290       description: flavor name of PS instance
291       default: m3.xlarge
292     rx_net_ips:
293       label: Rx network ips
294       hidden: false
295       immutable: false
296       type: list
297       description: Rx network ips
298       default:
299       - 107.239.34.3
300       - 107.239.34.4
301       entry_schema:
302         type: string
303     dummy_net_name_1:
304       label: csb internal network name
305       hidden: false
306       immutable: false
307       type: string
308       description: csb internal network name
309       default: mog_dummy_1
310     dummy_net_cidr_1:
311       label: csb ineternal cidr
312       hidden: false
313       immutable: false
314       type: string
315       description: csb internal cidr
316       default: 169.254.2.0/24
317     dummy_net_name_0:
318       label: csb internal network name
319       hidden: false
320       immutable: false
321       type: string
322       description: csb internal network name
323       default: mog_dummy_0
324     dummy_net_cidr_0:
325       label: csb ineternal cidr
326       hidden: false
327       immutable: false
328       type: string
329       description: csb internal cidr
330       default: 169.254.1.0/24
331     mog_swift_container:
332       label: mog Config URL
333       hidden: false
334       immutable: false
335       type: string
336       description: Config URL
337       default: http://10.147.38.210:8080/v1/AUTH_8e501b8121f34a6eaaf526d3305985cc/mogtestcontainer
338     oam-vol-2:
339       label: mog-oam-vol-2
340       hidden: false
341       immutable: false
342       type: string
343       description: OAM volume 2
344       default: 6d169cb6-6ddc-41dc-920c-2839898a2924
345     sl_net_floating_ip:
346       label: mog sl net virtual ip
347       hidden: false
348       immutable: false
349       type: string
350       description: mog sl net virtual ip
351       default: 107.239.45.6
352     session-manager-vol-1:
353       label: mog-sm-vol-1
354       hidden: false
355       immutable: false
356       type: string
357       description: Session Manager volume 1
358       default: 49201898-333d-4c88-b58d-cf573b091633
359     rx_net_floating_ip:
360       label: mog rx net virtual ip
361       hidden: false
362       immutable: false
363       type: string
364       description: mog rx net virtual ip
365       default: 107.239.34.5
366     session-manager-vol-2:
367       label: mog-sm-vol-2
368       hidden: false
369       immutable: false
370       type: string
371       description: Session Manager volume 2
372       default: 4c35b5f1-ce99-4220-a6e2-cda6e2d713a0
373     oam-vol-1:
374       label: mog-oam-vol-1
375       hidden: false
376       immutable: false
377       type: string
378       description: OAM volume 1
379       default: 0a7fcd9e-2624-401d-ac21-b0191f85ec77
380     csb_net_start:
381       label: csb internal start
382       hidden: false
383       immutable: false
384       type: string
385       description: csb internal start
386       default: 172.26.0.1
387     cm_image_name:
388       label: image name
389       hidden: false
390       immutable: false
391       type: string
392       description: CM image name
393       default: MOG_BASE_8.0
394     sm_flavor_name:
395       label: SM flavor name
396       hidden: false
397       immutable: false
398       type: string
399       description: flavor name of SM instance
400       default: m2.xlarge4
401     ps_image_name:
402       label: PS image name
403       hidden: false
404       immutable: false
405       type: string
406       description: PS image name
407       default: MOG_BASE_8.0
408     oam_server_names:
409       label: OAM server names
410       hidden: false
411       immutable: false
412       type: list
413       description: name of the OAM instance
414       default:
415       - ZRDM1MOGX01OAM001
416       - ZRDM1MOGX01OAM002
417       entry_schema:
418         type: string
419     csb_net_cidr:
420       label: csb ineternal cidr
421       hidden: false
422       immutable: false
423       type: string
424       description: csb internal cidr
425       default: 172.26.0.0/24
426     cm_server_names:
427       label: CM server names
428       hidden: false
429       immutable: false
430       type: list
431       description: name of the CM instance
432       default:
433       - ZRDM1MOGX01MCM001
434       entry_schema:
435         type: string
436     sl_net_ips:
437       label: silver lining network ips
438       hidden: false
439       immutable: false
440       type: list
441       description: ips of the sl network
442       default:
443       - 107.239.45.4
444       - 107.239.45.5
445       entry_schema:
446         type: string
447     rx_net_name:
448       label: Rx network name
449       hidden: false
450       immutable: false
451       type: string
452       description: Rx network name
453       default: cor_direct_net_1
454     repl_net_name:
455       label: Replication network name
456       hidden: false
457       immutable: false
458       type: string
459       description: name of the replication network
460       default: cor_direct_net_0
461     security_group_name:
462       label: security group name
463       hidden: false
464       immutable: false
465       type: string
466       description: the name of security group
467       default: mog_security_group
468     csb_net_end:
469       label: csb internal end
470       hidden: false
471       immutable: false
472       type: string
473       description: csb internal end
474       default: 172.26.0.254
475     csb_net_name:
476       label: csb internal network name
477       hidden: false
478       immutable: false
479       type: string
480       description: csb internal network name
481       default: int_mog_csb_net
482     mog_script_dir:
483       label: mog Config script directory
484       hidden: false
485       immutable: false
486       type: string
487       description: Config script directory
488       default: /root
489   node_templates:
490     cm01_port_1:
491       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
492       properties:
493         security_groups:
494         - mog_security_group
495         fixed_ips:
496         - ip_address:
497             get_input:
498             - oam_net_ips
499             - 4
500         network:
501           get_input: oam_net_name
502       requirements:
503       - binding:
504           capability: tosca.capabilities.network.Bindable
505           node: server_cm01
506           relationship: tosca.relationships.network.BindsTo
507     cm01_port_0:
508       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
509       properties:
510         security_groups:
511         - mog_security_group
512         fixed_ips:
513         - ip_address:
514             get_input:
515             - csb_net_ips
516             - 10
517         network: csb_net
518       requirements:
519       - link:
520           capability: tosca.capabilities.network.Linkable
521           node: csb_net
522           relationship: tosca.relationships.network.LinksTo
523       - binding:
524           capability: tosca.capabilities.network.Bindable
525           node: server_cm01
526           relationship: tosca.relationships.network.BindsTo
527     sm02_port_0:
528       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
529       properties:
530         security_groups:
531         - mog_security_group
532         network: csb_net
533       requirements:
534       - link:
535           capability: tosca.capabilities.network.Linkable
536           node: csb_net
537           relationship: tosca.relationships.network.LinksTo
538       - binding:
539           capability: tosca.capabilities.network.Bindable
540           node: server_sm02
541           relationship: tosca.relationships.network.BindsTo
542     server_ps04:
543       type: org.openecomp.resource.vfc.nodes.heat.ps_server
544       properties:
545         flavor:
546           get_input: ps_flavor_name
547         availability_zone:
548           get_input: availabilityzone_name
549         image:
550           get_input: ps_image_name
551         user_data_format: RAW
552         name:
553           get_input:
554           - ps_server_names
555           - 3
556         scheduler_hints:
557           group: servergroup_mog03
558     server_ps03:
559       type: org.openecomp.resource.vfc.nodes.heat.ps_server
560       properties:
561         flavor:
562           get_input: ps_flavor_name
563         availability_zone:
564           get_input: availabilityzone_name
565         image:
566           get_input: ps_image_name
567         user_data_format: RAW
568         name:
569           get_input:
570           - ps_server_names
571           - 2
572         scheduler_hints:
573           group: servergroup_mog03
574     sm01_port_0:
575       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
576       properties:
577         security_groups:
578         - mog_security_group
579         network: csb_net
580       requirements:
581       - link:
582           capability: tosca.capabilities.network.Linkable
583           node: csb_net
584           relationship: tosca.relationships.network.LinksTo
585       - binding:
586           capability: tosca.capabilities.network.Bindable
587           node: server_sm01
588           relationship: tosca.relationships.network.BindsTo
589     sm02_port_2:
590       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
591       properties:
592         security_groups:
593         - mog_security_group
594         fixed_ips:
595         - ip_address:
596             get_input:
597             - repl_net_ips
598             - 1
599         network:
600           get_input: repl_net_name
601     server_ps02:
602       type: org.openecomp.resource.vfc.nodes.heat.ps_server
603       properties:
604         flavor:
605           get_input: ps_flavor_name
606         availability_zone:
607           get_input: availabilityzone_name
608         image:
609           get_input: ps_image_name
610         user_data_format: RAW
611         name:
612           get_input:
613           - ps_server_names
614           - 1
615         scheduler_hints:
616           group: servergroup_mog03
617     sm01_port_1:
618       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
619       properties:
620         security_groups:
621         - mog_security_group
622         network: dummy_net_0
623       requirements:
624       - link:
625           capability: tosca.capabilities.network.Linkable
626           node: dummy_net_0
627           relationship: tosca.relationships.network.LinksTo
628       - binding:
629           capability: tosca.capabilities.network.Bindable
630           node: server_sm01
631           relationship: tosca.relationships.network.BindsTo
632     sm02_port_1:
633       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
634       properties:
635         security_groups:
636         - mog_security_group
637         network: dummy_net_0
638       requirements:
639       - link:
640           capability: tosca.capabilities.network.Linkable
641           node: dummy_net_0
642           relationship: tosca.relationships.network.LinksTo
643       - binding:
644           capability: tosca.capabilities.network.Bindable
645           node: server_sm02
646           relationship: tosca.relationships.network.BindsTo
647     server_ps01:
648       type: org.openecomp.resource.vfc.nodes.heat.ps_server
649       properties:
650         flavor:
651           get_input: ps_flavor_name
652         availability_zone:
653           get_input: availabilityzone_name
654         image:
655           get_input: ps_image_name
656         user_data_format: RAW
657         name:
658           get_input:
659           - ps_server_names
660           - 0
661         scheduler_hints:
662           group: servergroup_mog03
663     csb_net:
664       type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork
665       properties:
666         dhcp_enabled: true
667         network_name:
668           get_input: csb_net_name
669         subnets:
670           csb_ip_subnet:
671             enable_dhcp: true
672             name:
673               get_input: csb_net_name
674             cidr:
675               get_input: csb_net_cidr
676             allocation_pools:
677             - start:
678                 get_input: csb_net_start
679               end:
680                 get_input: csb_net_end
681     sm01_port_2:
682       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
683       properties:
684         security_groups:
685         - mog_security_group
686         fixed_ips:
687         - ip_address:
688             get_input:
689             - repl_net_ips
690             - 0
691         network:
692           get_input: repl_net_name
693     pd01_port_5:
694       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
695       properties:
696         security_groups:
697         - mog_security_group
698         fixed_ips:
699         - ip_address:
700             get_input:
701             - ran_net_ips
702             - 0
703         allowed_address_pairs:
704         - ip_address:
705             get_input: ran_net_floating_ip
706         network:
707           get_input: ran_net_name
708       requirements:
709       - binding:
710           capability: tosca.capabilities.network.Bindable
711           node: server_pd_01
712           relationship: tosca.relationships.network.BindsTo
713     pd01_port_4:
714       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
715       properties:
716         security_groups:
717         - mog_security_group
718         network: dummy_net_1
719       requirements:
720       - link:
721           capability: tosca.capabilities.network.Linkable
722           node: dummy_net_1
723           relationship: tosca.relationships.network.LinksTo
724       - binding:
725           capability: tosca.capabilities.network.Bindable
726           node: server_pd_01
727           relationship: tosca.relationships.network.BindsTo
728     pd02_port_5:
729       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
730       properties:
731         security_groups:
732         - mog_security_group
733         fixed_ips:
734         - ip_address:
735             get_input:
736             - ran_net_ips
737             - 1
738         allowed_address_pairs:
739         - ip_address:
740             get_input: ran_net_floating_ip
741         network:
742           get_input: ran_net_name
743       requirements:
744       - binding:
745           capability: tosca.capabilities.network.Bindable
746           node: server_pd_02
747           relationship: tosca.relationships.network.BindsTo
748     pd01_port_6:
749       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
750       properties:
751         security_groups:
752         - mog_security_group
753         fixed_ips:
754         - ip_address:
755             get_input:
756             - sl_net_ips
757             - 0
758         allowed_address_pairs:
759         - ip_address:
760             get_input: sl_net_floating_ip
761         network:
762           get_input: sl_net_name
763       requirements:
764       - binding:
765           capability: tosca.capabilities.network.Bindable
766           node: server_pd_01
767           relationship: tosca.relationships.network.BindsTo
768     pd02_port_6:
769       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
770       properties:
771         security_groups:
772         - mog_security_group
773         fixed_ips:
774         - ip_address:
775             get_input:
776             - sl_net_ips
777             - 1
778         allowed_address_pairs:
779         - ip_address:
780             get_input: sl_net_floating_ip
781         network:
782           get_input: sl_net_name
783       requirements:
784       - binding:
785           capability: tosca.capabilities.network.Bindable
786           node: server_pd_02
787           relationship: tosca.relationships.network.BindsTo
788     server_sm02:
789       type: org.openecomp.resource.vfc.nodes.heat.sm_server
790       properties:
791         flavor:
792           get_input: sm_flavor_name
793         availability_zone:
794           get_input: availabilityzone_name
795         image:
796           get_input: sm_image_name
797         user_data_format: RAW
798         name:
799           get_input:
800           - sm_server_names
801           - 1
802         scheduler_hints:
803           group: servergroup_mog02
804     ps02_port_0:
805       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
806       properties:
807         security_groups:
808         - mog_security_group
809         network: csb_net
810       requirements:
811       - link:
812           capability: tosca.capabilities.network.Linkable
813           node: csb_net
814           relationship: tosca.relationships.network.LinksTo
815       - binding:
816           capability: tosca.capabilities.network.Bindable
817           node: server_ps02
818           relationship: tosca.relationships.network.BindsTo
819     ps04_port_0:
820       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
821       properties:
822         security_groups:
823         - mog_security_group
824         network: csb_net
825       requirements:
826       - link:
827           capability: tosca.capabilities.network.Linkable
828           node: csb_net
829           relationship: tosca.relationships.network.LinksTo
830       - binding:
831           capability: tosca.capabilities.network.Bindable
832           node: server_ps04
833           relationship: tosca.relationships.network.BindsTo
834     ps03_port_0:
835       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
836       properties:
837         security_groups:
838         - mog_security_group
839         network: csb_net
840       requirements:
841       - link:
842           capability: tosca.capabilities.network.Linkable
843           node: csb_net
844           relationship: tosca.relationships.network.LinksTo
845       - binding:
846           capability: tosca.capabilities.network.Bindable
847           node: server_ps03
848           relationship: tosca.relationships.network.BindsTo
849     ps01_port_0:
850       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
851       properties:
852         security_groups:
853         - mog_security_group
854         network: csb_net
855       requirements:
856       - link:
857           capability: tosca.capabilities.network.Linkable
858           node: csb_net
859           relationship: tosca.relationships.network.LinksTo
860       - binding:
861           capability: tosca.capabilities.network.Bindable
862           node: server_ps01
863           relationship: tosca.relationships.network.BindsTo
864     server_sm01:
865       type: org.openecomp.resource.vfc.nodes.heat.sm_server
866       properties:
867         flavor:
868           get_input: sm_flavor_name
869         availability_zone:
870           get_input: availabilityzone_name
871         image:
872           get_input: sm_image_name
873         user_data_format: RAW
874         name:
875           get_input:
876           - sm_server_names
877           - 0
878         scheduler_hints:
879           group: servergroup_mog02
880     dummy_net_0:
881       type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork
882       properties:
883         dhcp_enabled: true
884         network_name:
885           get_input: dummy_net_name_0
886         subnets:
887           dummy_ip_subnet_0:
888             enable_dhcp: true
889             name:
890               get_input: dummy_net_name_0
891             cidr:
892               get_input: dummy_net_cidr_0
893             allocation_pools:
894             - start:
895                 get_input: dummy_net_start_0
896               end:
897                 get_input: dummy_net_end_0
898     server_cm01:
899       type: org.openecomp.resource.vfc.nodes.heat.cm_server
900       properties:
901         flavor:
902           get_input: cm_flavor_name
903         availability_zone:
904           get_input: availabilityzone_name
905         image:
906           get_input: cm_image_name
907         user_data_format: RAW
908         name:
909           get_input:
910           - cm_server_names
911           - 0
912         scheduler_hints:
913           group: servergroup_mog03
914     server_pd_02:
915       type: org.openecomp.resource.vfc.nodes.heat.pd_server
916       properties:
917         flavor:
918           get_input: pd_flavor_name
919         availability_zone:
920           get_input: availabilityzone_name
921         image:
922           get_input: pd_image_name
923         user_data_format: RAW
924         name:
925           get_input:
926           - pd_server_names
927           - 1
928         scheduler_hints:
929           group: servergroup_mog01
930     server_pd_01:
931       type: org.openecomp.resource.vfc.nodes.heat.pd_server
932       properties:
933         flavor:
934           get_input: pd_flavor_name
935         availability_zone:
936           get_input: availabilityzone_name
937         image:
938           get_input: pd_image_name
939         user_data_format: RAW
940         name:
941           get_input:
942           - pd_server_names
943           - 0
944         scheduler_hints:
945           group: servergroup_mog01
946     server_oam01:
947       type: org.openecomp.resource.vfc.nodes.heat.oam_server
948       properties:
949         flavor:
950           get_input: oam_flavor_name
951         availability_zone:
952           get_input: availabilityzone_name
953         image:
954           get_input: oam_image_name
955         user_data_format: RAW
956         name:
957           get_input:
958           - oam_server_names
959           - 0
960         scheduler_hints:
961           group: servergroup_mog02
962     server_oam02:
963       type: org.openecomp.resource.vfc.nodes.heat.oam_server
964       properties:
965         flavor:
966           get_input: oam_flavor_name
967         availability_zone:
968           get_input: availabilityzone_name
969         image:
970           get_input: oam_image_name
971         user_data_format: RAW
972         name:
973           get_input:
974           - oam_server_names
975           - 1
976         scheduler_hints:
977           group: servergroup_mog02
978     dummy_net_1:
979       type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork
980       properties:
981         dhcp_enabled: true
982         network_name:
983           get_input: dummy_net_name_1
984         subnets:
985           dummy_ip_subnet_1:
986             enable_dhcp: true
987             name:
988               get_input: dummy_net_name_1
989             cidr:
990               get_input: dummy_net_cidr_1
991             allocation_pools:
992             - start:
993                 get_input: dummy_net_start_1
994               end:
995                 get_input: dummy_net_end_1
996     mog_security_group:
997       type: org.openecomp.resource.vfc.rules.nodes.heat.network.neutron.SecurityRules
998       properties:
999         name:
1000           get_input: security_group_name
1001         description: mog security group
1002         rules:
1003         - protocol: tcp
1004           ethertype: IPv4
1005           port_range_max: 65535
1006           remote_ip_prefix: 0.0.0.0/0
1007           direction: egress
1008           port_range_min: 1
1009         - protocol: udp
1010           ethertype: IPv4
1011           port_range_max: 65535
1012           remote_ip_prefix: 0.0.0.0/0
1013           direction: egress
1014           port_range_min: 1
1015         - protocol: icmp
1016           ethertype: IPv4
1017           remote_ip_prefix: 0.0.0.0/0
1018           direction: egress
1019         - protocol: tcp
1020           ethertype: IPv4
1021           port_range_max: 65535
1022           remote_ip_prefix: 0.0.0.0/0
1023           direction: ingress
1024           port_range_min: 1
1025         - protocol: udp
1026           ethertype: IPv4
1027           port_range_max: 65535
1028           remote_ip_prefix: 0.0.0.0/0
1029           direction: ingress
1030           port_range_min: 1
1031         - protocol: icmp
1032           ethertype: IPv4
1033           remote_ip_prefix: 0.0.0.0/0
1034           direction: ingress
1035       requirements:
1036       - port:
1037           capability: tosca.capabilities.Attachment
1038           node: pd01_port_0
1039           relationship: org.openecomp.relationships.AttachesTo
1040       - port:
1041           capability: tosca.capabilities.Attachment
1042           node: pd01_port_1
1043           relationship: org.openecomp.relationships.AttachesTo
1044       - port:
1045           capability: tosca.capabilities.Attachment
1046           node: pd01_port_2
1047           relationship: org.openecomp.relationships.AttachesTo
1048       - port:
1049           capability: tosca.capabilities.Attachment
1050           node: pd01_port_3
1051           relationship: org.openecomp.relationships.AttachesTo
1052       - port:
1053           capability: tosca.capabilities.Attachment
1054           node: pd01_port_4
1055           relationship: org.openecomp.relationships.AttachesTo
1056       - port:
1057           capability: tosca.capabilities.Attachment
1058           node: pd01_port_5
1059           relationship: org.openecomp.relationships.AttachesTo
1060       - port:
1061           capability: tosca.capabilities.Attachment
1062           node: pd01_port_6
1063           relationship: org.openecomp.relationships.AttachesTo
1064       - port:
1065           capability: tosca.capabilities.Attachment
1066           node: pd02_port_0
1067           relationship: org.openecomp.relationships.AttachesTo
1068       - port:
1069           capability: tosca.capabilities.Attachment
1070           node: pd02_port_1
1071           relationship: org.openecomp.relationships.AttachesTo
1072       - port:
1073           capability: tosca.capabilities.Attachment
1074           node: pd02_port_2
1075           relationship: org.openecomp.relationships.AttachesTo
1076       - port:
1077           capability: tosca.capabilities.Attachment
1078           node: pd02_port_3
1079           relationship: org.openecomp.relationships.AttachesTo
1080       - port:
1081           capability: tosca.capabilities.Attachment
1082           node: pd02_port_4
1083           relationship: org.openecomp.relationships.AttachesTo
1084       - port:
1085           capability: tosca.capabilities.Attachment
1086           node: pd02_port_5
1087           relationship: org.openecomp.relationships.AttachesTo
1088       - port:
1089           capability: tosca.capabilities.Attachment
1090           node: pd02_port_6
1091           relationship: org.openecomp.relationships.AttachesTo
1092       - port:
1093           capability: tosca.capabilities.Attachment
1094           node: oam01_port_0
1095           relationship: org.openecomp.relationships.AttachesTo
1096       - port:
1097           capability: tosca.capabilities.Attachment
1098           node: oam01_port_1
1099           relationship: org.openecomp.relationships.AttachesTo
1100       - port:
1101           capability: tosca.capabilities.Attachment
1102           node: oam02_port_0
1103           relationship: org.openecomp.relationships.AttachesTo
1104       - port:
1105           capability: tosca.capabilities.Attachment
1106           node: oam02_port_1
1107           relationship: org.openecomp.relationships.AttachesTo
1108       - port:
1109           capability: tosca.capabilities.Attachment
1110           node: sm01_port_0
1111           relationship: org.openecomp.relationships.AttachesTo
1112       - port:
1113           capability: tosca.capabilities.Attachment
1114           node: sm01_port_1
1115           relationship: org.openecomp.relationships.AttachesTo
1116       - port:
1117           capability: tosca.capabilities.Attachment
1118           node: sm01_port_2
1119           relationship: org.openecomp.relationships.AttachesTo
1120       - port:
1121           capability: tosca.capabilities.Attachment
1122           node: sm02_port_0
1123           relationship: org.openecomp.relationships.AttachesTo
1124       - port:
1125           capability: tosca.capabilities.Attachment
1126           node: sm02_port_1
1127           relationship: org.openecomp.relationships.AttachesTo
1128       - port:
1129           capability: tosca.capabilities.Attachment
1130           node: sm02_port_2
1131           relationship: org.openecomp.relationships.AttachesTo
1132       - port:
1133           capability: tosca.capabilities.Attachment
1134           node: ps01_port_0
1135           relationship: org.openecomp.relationships.AttachesTo
1136       - port:
1137           capability: tosca.capabilities.Attachment
1138           node: ps02_port_0
1139           relationship: org.openecomp.relationships.AttachesTo
1140       - port:
1141           capability: tosca.capabilities.Attachment
1142           node: ps03_port_0
1143           relationship: org.openecomp.relationships.AttachesTo
1144       - port:
1145           capability: tosca.capabilities.Attachment
1146           node: ps04_port_0
1147           relationship: org.openecomp.relationships.AttachesTo
1148       - port:
1149           capability: tosca.capabilities.Attachment
1150           node: cm01_port_0
1151           relationship: org.openecomp.relationships.AttachesTo
1152       - port:
1153           capability: tosca.capabilities.Attachment
1154           node: cm01_port_1
1155           relationship: org.openecomp.relationships.AttachesTo
1156     pd01_port_1:
1157       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
1158       properties:
1159         security_groups:
1160         - mog_security_group
1161         fixed_ips:
1162         - ip_address:
1163             get_input:
1164             - oam_net_ips
1165             - 0
1166         network:
1167           get_input: oam_net_name
1168       requirements:
1169       - binding:
1170           capability: tosca.capabilities.network.Bindable
1171           node: server_pd_01
1172           relationship: tosca.relationships.network.BindsTo
1173     pd02_port_3:
1174       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
1175       properties:
1176         security_groups:
1177         - mog_security_group
1178         fixed_ips:
1179         - ip_address:
1180             get_input:
1181             - rx_net_ips
1182             - 1
1183         allowed_address_pairs:
1184         - ip_address:
1185             get_input: rx_net_floating_ip
1186         network:
1187           get_input: rx_net_name
1188       requirements:
1189       - binding:
1190           capability: tosca.capabilities.network.Bindable
1191           node: server_pd_02
1192           relationship: tosca.relationships.network.BindsTo
1193     pd01_port_0:
1194       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
1195       properties:
1196         security_groups:
1197         - mog_security_group
1198         network: csb_net
1199       requirements:
1200       - link:
1201           capability: tosca.capabilities.network.Linkable
1202           node: csb_net
1203           relationship: tosca.relationships.network.LinksTo
1204       - binding:
1205           capability: tosca.capabilities.network.Bindable
1206           node: server_pd_01
1207           relationship: tosca.relationships.network.BindsTo
1208     pd02_port_4:
1209       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
1210       properties:
1211         security_groups:
1212         - mog_security_group
1213         network: dummy_net_1
1214       requirements:
1215       - link:
1216           capability: tosca.capabilities.network.Linkable
1217           node: dummy_net_1
1218           relationship: tosca.relationships.network.LinksTo
1219       - binding:
1220           capability: tosca.capabilities.network.Bindable
1221           node: server_pd_02
1222           relationship: tosca.relationships.network.BindsTo
1223     pd01_port_3:
1224       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
1225       properties:
1226         security_groups:
1227         - mog_security_group
1228         fixed_ips:
1229         - ip_address:
1230             get_input:
1231             - rx_net_ips
1232             - 0
1233         allowed_address_pairs:
1234         - ip_address:
1235             get_input: rx_net_floating_ip
1236         network:
1237           get_input: rx_net_name
1238       requirements:
1239       - binding:
1240           capability: tosca.capabilities.network.Bindable
1241           node: server_pd_01
1242           relationship: tosca.relationships.network.BindsTo
1243     pd02_port_1:
1244       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
1245       properties:
1246         security_groups:
1247         - mog_security_group
1248         fixed_ips:
1249         - ip_address:
1250             get_input:
1251             - oam_net_ips
1252             - 1
1253         network:
1254           get_input: oam_net_name
1255       requirements:
1256       - binding:
1257           capability: tosca.capabilities.network.Bindable
1258           node: server_pd_02
1259           relationship: tosca.relationships.network.BindsTo
1260     pd01_port_2:
1261       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
1262       properties:
1263         security_groups:
1264         - mog_security_group
1265         network: dummy_net_0
1266       requirements:
1267       - link:
1268           capability: tosca.capabilities.network.Linkable
1269           node: dummy_net_0
1270           relationship: tosca.relationships.network.LinksTo
1271       - binding:
1272           capability: tosca.capabilities.network.Bindable
1273           node: server_pd_01
1274           relationship: tosca.relationships.network.BindsTo
1275     pd02_port_2:
1276       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
1277       properties:
1278         security_groups:
1279         - mog_security_group
1280         network: dummy_net_0
1281       requirements:
1282       - link:
1283           capability: tosca.capabilities.network.Linkable
1284           node: dummy_net_0
1285           relationship: tosca.relationships.network.LinksTo
1286       - binding:
1287           capability: tosca.capabilities.network.Bindable
1288           node: server_pd_02
1289           relationship: tosca.relationships.network.BindsTo
1290     oam01_port_1:
1291       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
1292       properties:
1293         security_groups:
1294         - mog_security_group
1295         fixed_ips:
1296         - ip_address:
1297             get_input:
1298             - oam_net_ips
1299             - 2
1300         network:
1301           get_input: oam_net_name
1302       requirements:
1303       - binding:
1304           capability: tosca.capabilities.network.Bindable
1305           node: server_oam01
1306           relationship: tosca.relationships.network.BindsTo
1307     pd02_port_0:
1308       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
1309       properties:
1310         security_groups:
1311         - mog_security_group
1312         network: csb_net
1313       requirements:
1314       - link:
1315           capability: tosca.capabilities.network.Linkable
1316           node: csb_net
1317           relationship: tosca.relationships.network.LinksTo
1318       - binding:
1319           capability: tosca.capabilities.network.Bindable
1320           node: server_pd_02
1321           relationship: tosca.relationships.network.BindsTo
1322     oam02_port_1:
1323       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
1324       properties:
1325         security_groups:
1326         - mog_security_group
1327         fixed_ips:
1328         - ip_address:
1329             get_input:
1330             - oam_net_ips
1331             - 3
1332         network:
1333           get_input: oam_net_name
1334       requirements:
1335       - binding:
1336           capability: tosca.capabilities.network.Bindable
1337           node: server_oam02
1338           relationship: tosca.relationships.network.BindsTo
1339     oam01_port_0:
1340       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
1341       properties:
1342         security_groups:
1343         - mog_security_group
1344         network: csb_net
1345       requirements:
1346       - link:
1347           capability: tosca.capabilities.network.Linkable
1348           node: csb_net
1349           relationship: tosca.relationships.network.LinksTo
1350       - binding:
1351           capability: tosca.capabilities.network.Bindable
1352           node: server_oam01
1353           relationship: tosca.relationships.network.BindsTo
1354     oam02_port_0:
1355       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
1356       properties:
1357         security_groups:
1358         - mog_security_group
1359         network: csb_net
1360       requirements:
1361       - link:
1362           capability: tosca.capabilities.network.Linkable
1363           node: csb_net
1364           relationship: tosca.relationships.network.LinksTo
1365       - binding:
1366           capability: tosca.capabilities.network.Bindable
1367           node: server_oam02
1368           relationship: tosca.relationships.network.BindsTo
1369   groups:
1370     servergroup_mog01:
1371       type: tosca.groups.Root
1372       members:
1373       - server_pd_01
1374       - server_pd_02
1375     servergroup_mog02:
1376       type: tosca.groups.Root
1377       members:
1378       - server_oam01
1379       - server_oam02
1380       - server_sm01
1381       - server_sm02
1382     servergroup_mog03:
1383       type: tosca.groups.Root
1384       members:
1385       - server_ps01
1386       - server_ps02
1387       - server_ps03
1388       - server_ps04
1389       - server_cm01
1390     hot-mog-0108-bs1271:
1391       type: org.openecomp.groups.heat.HeatStack
1392       properties:
1393         heat_file: ../Artifacts/hot-mog-0108-bs1271.yml
1394         description: heat template that creates MOG stack
1395       members:
1396       - cm01_port_1
1397       - cm01_port_0
1398       - sm02_port_0
1399       - server_ps04
1400       - server_ps03
1401       - sm01_port_0
1402       - sm02_port_2
1403       - server_ps02
1404       - sm01_port_1
1405       - sm02_port_1
1406       - server_ps01
1407       - csb_net
1408       - sm01_port_2
1409       - pd01_port_5
1410       - pd01_port_4
1411       - pd02_port_5
1412       - pd01_port_6
1413       - pd02_port_6
1414       - server_sm02
1415       - ps02_port_0
1416       - ps04_port_0
1417       - ps03_port_0
1418       - ps01_port_0
1419       - server_sm01
1420       - dummy_net_0
1421       - server_cm01
1422       - server_pd_02
1423       - server_pd_01
1424       - server_oam01
1425       - server_oam02
1426       - dummy_net_1
1427       - mog_security_group
1428       - pd01_port_1
1429       - pd02_port_3
1430       - pd01_port_0
1431       - pd02_port_4
1432       - pd01_port_3
1433       - pd02_port_1
1434       - pd01_port_2
1435       - pd02_port_2
1436       - oam01_port_1
1437       - pd02_port_0
1438       - oam02_port_1
1439       - oam01_port_0
1440       - oam02_port_0
1441   policies:
1442     servergroup_mog01:
1443       type: org.openecomp.policies.placement.Antilocate
1444       properties:
1445         container_type: host
1446       targets:
1447       - servergroup_mog01
1448     servergroup_mog02:
1449       type: org.openecomp.policies.placement.Antilocate
1450       properties:
1451         container_type: host
1452       targets:
1453       - servergroup_mog02
1454     servergroup_mog03:
1455       type: org.openecomp.policies.placement.Antilocate
1456       properties:
1457         container_type: host
1458       targets:
1459       - servergroup_mog03