aadea7bb8644db0845a506828fc6e39639e8e7b7
[sdc.git] /
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 - GlobalSubstitutionTypes:
8     file: GlobalSubstitutionTypesServiceTemplate.yaml
9 node_types:
10   org.openecomp.resource.vfc.nodes.heat.ocgmgr:
11     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
12   org.openecomp.resource.vfc.nodes.heat.ocgapp:
13     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
14 topology_template:
15   inputs:
16     keycloak_rpm_name:
17       hidden: false
18       immutable: false
19       annotations:
20         source:
21           type: org.openecomp.annotations.Source
22           properties:
23             vf_module_label:
24             - ocgmgr
25             source_type: HEAT
26             param_name: keycloak_rpm_name
27       type: string
28       description: keycloak rpm name
29       default: keycloak-pkg-x86_64.rpm
30     ocgapp_oam_protected_ip_3:
31       hidden: false
32       immutable: false
33       annotations:
34         source:
35           type: org.openecomp.annotations.Source
36           properties:
37             vf_module_label:
38             - ocgapp_04
39             source_type: HEAT
40             param_name: ocgapp_oam_protected_ip_3
41       type: string
42       description: OCG OAM IP list
43     ocgapp_volume_type_2:
44       label: vm volume type
45       hidden: false
46       immutable: false
47       annotations:
48         source:
49           type: org.openecomp.annotations.Source
50           properties:
51             vf_module_label:
52             - ocgapp_03
53             source_type: HEAT
54             param_name: ocgapp_volume_type_2
55       type: string
56       description: the name of the target volume backend for ocgapp1
57       default: SF-Default-SSD
58     ocgapp_volume_type_1:
59       label: vm volume type
60       hidden: false
61       immutable: false
62       annotations:
63         source:
64           type: org.openecomp.annotations.Source
65           properties:
66             vf_module_label:
67             - ocgapp_02
68             source_type: HEAT
69             param_name: ocgapp_volume_type_1
70       type: string
71       description: the name of the target volume backend for ocgapp1
72       default: SF-Default-SSD
73     ocgapp_oam_protected_ip_2:
74       hidden: false
75       immutable: false
76       annotations:
77         source:
78           type: org.openecomp.annotations.Source
79           properties:
80             vf_module_label:
81             - ocgapp_03
82             source_type: HEAT
83             param_name: ocgapp_oam_protected_ip_2
84       type: string
85       description: OCG OAM IP list
86     ocgapp_volume_type_3:
87       label: vm volume type
88       hidden: false
89       immutable: false
90       annotations:
91         source:
92           type: org.openecomp.annotations.Source
93           properties:
94             vf_module_label:
95             - ocgapp_04
96             source_type: HEAT
97             param_name: ocgapp_volume_type_3
98       type: string
99       description: the name of the target volume backend for ocgapp1
100       default: SF-Default-SSD
101     eth1_netmask:
102       hidden: false
103       immutable: false
104       annotations:
105         source:
106           type: org.openecomp.annotations.Source
107           properties:
108             vf_module_label:
109             - ocgapp_03
110             - ocgapp_02
111             - ocgapp_01
112             - ocgapp_04
113             source_type: HEAT
114             param_name: eth1_netmask
115       type: string
116       description: mask length
117       default: 21
118     domain_name:
119       hidden: false
120       immutable: false
121       annotations:
122         source:
123           type: org.openecomp.annotations.Source
124           properties:
125             vf_module_label:
126             - ocgapp_03
127             - ocgapp_02
128             - ocgapp_01
129             - ocgapp_04
130             source_type: HEAT
131             param_name: domain_name
132       type: string
133       description: address
134       default: eng.mobilephone.net
135     eth1_ip:
136       hidden: false
137       immutable: false
138       annotations:
139         source:
140           type: org.openecomp.annotations.Source
141           properties:
142             vf_module_label:
143             - ocgapp_03
144             - ocgapp_02
145             - ocgapp_01
146             - ocgapp_04
147             source_type: HEAT
148             param_name: eth1_ip
149       type: string
150       description: address
151       default: 107.112.168.129
152     eth2_ip_range:
153       hidden: false
154       immutable: false
155       annotations:
156         source:
157           type: org.openecomp.annotations.Source
158           properties:
159             vf_module_label:
160             - ocgapp_03
161             - ocgapp_02
162             - ocgapp_01
163             - ocgapp_04
164             source_type: HEAT
165             param_name: eth2_ip_range
166       type: string
167       description: range
168       default: 107.242.64.1
169     ocg_user:
170       hidden: false
171       immutable: false
172       annotations:
173         source:
174           type: org.openecomp.annotations.Source
175           properties:
176             vf_module_label:
177             - ocgmgr
178             source_type: HEAT
179             param_name: ocg_user
180       type: string
181       description: user to install ocg
182       default: fworks
183     ocgapp_oam_direct_ip_2:
184       hidden: false
185       immutable: false
186       annotations:
187         source:
188           type: org.openecomp.annotations.Source
189           properties:
190             vf_module_label:
191             - ocgapp_03
192             source_type: HEAT
193             param_name: ocgapp_oam_direct_ip_2
194       type: string
195       description: OCG OAM IP list
196     ocgapp_oam_direct_ip_1:
197       hidden: false
198       immutable: false
199       annotations:
200         source:
201           type: org.openecomp.annotations.Source
202           properties:
203             vf_module_label:
204             - ocgapp_02
205             source_type: HEAT
206             param_name: ocgapp_oam_direct_ip_1
207       type: string
208       description: OCG OAM IP list
209     ocgapp_oam_direct_ip_0:
210       hidden: false
211       immutable: false
212       annotations:
213         source:
214           type: org.openecomp.annotations.Source
215           properties:
216             vf_module_label:
217             - ocgapp_01
218             source_type: HEAT
219             param_name: ocgapp_oam_direct_ip_0
220       type: string
221       description: OCG OAM IP list
222     ocgapp_oam_direct_ip_3:
223       hidden: false
224       immutable: false
225       annotations:
226         source:
227           type: org.openecomp.annotations.Source
228           properties:
229             vf_module_label:
230             - ocgapp_04
231             source_type: HEAT
232             param_name: ocgapp_oam_direct_ip_3
233       type: string
234       description: OCG OAM IP list
235     ocgmgr_volume_ids:
236       hidden: false
237       immutable: false
238       annotations:
239         source:
240           type: org.openecomp.annotations.Source
241           properties:
242             vf_module_label:
243             - ocgmgr
244             source_type: HEAT
245             param_name: ocgmgr_volume_ids
246       type: json
247       description: Unique IDs for volumes
248     ocg_install_jar:
249       hidden: false
250       immutable: false
251       annotations:
252         source:
253           type: org.openecomp.annotations.Source
254           properties:
255             vf_module_label:
256             - ocgmgr
257             source_type: HEAT
258             param_name: ocg_install_jar
259       type: string
260       description: location of ocg installer
261       default: /home/fworks/Installer/ocg10/installer.jar
262     wim_install_file:
263       hidden: false
264       immutable: false
265       annotations:
266         source:
267           type: org.openecomp.annotations.Source
268           properties:
269             vf_module_label:
270             - ocgmgr
271             source_type: HEAT
272             param_name: wim_install_file
273       type: string
274       description: WIM Install File location
275       default: /home/fworks/Installer/wim/ovlm-integration-module.sh
276     ovlm_install_dir:
277       hidden: false
278       immutable: false
279       annotations:
280         source:
281           type: org.openecomp.annotations.Source
282           properties:
283             vf_module_label:
284             - ocgmgr
285             source_type: HEAT
286             param_name: ovlm_install_dir
287       type: string
288       description: Location of the ovlm-install dir
289       default: /home/fworks/Installer/weaver
290     ocg_install_properties:
291       hidden: false
292       immutable: false
293       annotations:
294         source:
295           type: org.openecomp.annotations.Source
296           properties:
297             vf_module_label:
298             - ocgmgr
299             source_type: HEAT
300             param_name: ocg_install_properties
301       type: string
302       description: location of ocg install properties
303       default: /tmp/ocg.install.properties
304     ocgmgr_names:
305       hidden: false
306       immutable: false
307       annotations:
308         source:
309           type: org.openecomp.annotations.Source
310           properties:
311             vf_module_label:
312             - ocgmgr
313             source_type: HEAT
314             param_name: ocgmgr_names
315       type: list
316       description: OCG MGR VM names list (should be 2, since we have 2 MGR VMs)
317       entry_schema:
318         type: string
319     ocgapp_volume_size_3:
320       label: Cinder volume size
321       hidden: false
322       immutable: false
323       annotations:
324         source:
325           type: org.openecomp.annotations.Source
326           properties:
327             vf_module_label:
328             - ocgapp_04
329             source_type: HEAT
330             param_name: ocgapp_volume_size_3
331       type: float
332       description: the size of the Cinder volume
333       default: 400
334       constraints:
335       - in_range:
336         - 100
337         - 400
338     ocgapp_volume_type_0:
339       label: vm volume type
340       hidden: false
341       immutable: false
342       annotations:
343         source:
344           type: org.openecomp.annotations.Source
345           properties:
346             vf_module_label:
347             - ocgapp_01
348             source_type: HEAT
349             param_name: ocgapp_volume_type_0
350       type: string
351       description: the name of the target volume backend for ocgapp1
352       default: SF-Default-SSD
353     ocgapp_oam_protected_ip_1:
354       hidden: false
355       immutable: false
356       annotations:
357         source:
358           type: org.openecomp.annotations.Source
359           properties:
360             vf_module_label:
361             - ocgapp_02
362             source_type: HEAT
363             param_name: ocgapp_oam_protected_ip_1
364       type: string
365       description: OCG OAM IP list
366     ocgapp_oam_protected_ip_0:
367       hidden: false
368       immutable: false
369       annotations:
370         source:
371           type: org.openecomp.annotations.Source
372           properties:
373             vf_module_label:
374             - ocgapp_01
375             source_type: HEAT
376             param_name: ocgapp_oam_protected_ip_0
377       type: string
378       description: OCG OAM IP list
379     ocgapp_volume_size_2:
380       label: Cinder volume size
381       hidden: false
382       immutable: false
383       annotations:
384         source:
385           type: org.openecomp.annotations.Source
386           properties:
387             vf_module_label:
388             - ocgapp_03
389             source_type: HEAT
390             param_name: ocgapp_volume_size_2
391       type: float
392       description: the size of the Cinder volume
393       default: 400
394       constraints:
395       - in_range:
396         - 100
397         - 400
398     ocgapp_volume_size_1:
399       label: Cinder volume size
400       hidden: false
401       immutable: false
402       annotations:
403         source:
404           type: org.openecomp.annotations.Source
405           properties:
406             vf_module_label:
407             - ocgapp_02
408             source_type: HEAT
409             param_name: ocgapp_volume_size_1
410       type: float
411       description: the size of the Cinder volume
412       default: 400
413       constraints:
414       - in_range:
415         - 100
416         - 400
417     ocgapp_volume_size_0:
418       label: Cinder volume size
419       hidden: false
420       immutable: false
421       annotations:
422         source:
423           type: org.openecomp.annotations.Source
424           properties:
425             vf_module_label:
426             - ocgapp_01
427             source_type: HEAT
428             param_name: ocgapp_volume_size_0
429       type: float
430       description: the size of the Cinder volume
431       default: 400
432       constraints:
433       - in_range:
434         - 100
435         - 400
436     ocgmgr_image_name:
437       hidden: false
438       immutable: false
439       annotations:
440         source:
441           type: org.openecomp.annotations.Source
442           properties:
443             vf_module_label:
444             - ocgmgr
445             source_type: HEAT
446             param_name: ocgmgr_image_name
447       type: string
448       description: operative system image
449       default: vOCG_MGR_SNAP_20180130
450     vf_module_id:
451       hidden: false
452       immutable: false
453       annotations:
454         source:
455           type: org.openecomp.annotations.Source
456           properties:
457             vf_module_label:
458             - ocgapp_03
459             - ocgapp_02
460             - ocgmgr
461             - ocgapp_01
462             - ocgapp_04
463             source_type: HEAT
464             param_name: vf_module_id
465       type: string
466       description: Unique ID for this VF module instance
467     ocgmgr_oam_protected_ips:
468       hidden: false
469       immutable: false
470       annotations:
471         source:
472           type: org.openecomp.annotations.Source
473           properties:
474             vf_module_label:
475             - ocgmgr
476             source_type: HEAT
477             param_name: ocgmgr_oam_protected_ips
478       type: list
479       description: OCG OAM IP list
480       entry_schema:
481         type: string
482     vnf_name:
483       label: OCG VNF Name
484       hidden: false
485       immutable: false
486       annotations:
487         source:
488           type: org.openecomp.annotations.Source
489           properties:
490             vf_module_label:
491             - ocgapp_03
492             - ocgapp_02
493             - ocgmgr
494             - ocgapp_01
495             - ocgapp_04
496             - base_ocg
497             source_type: HEAT
498             param_name: vnf_name
499       type: string
500       description: OCG VNF Name
501       default: zrdm5avocg01
502     nameserver_ip:
503       hidden: false
504       immutable: false
505       annotations:
506         source:
507           type: org.openecomp.annotations.Source
508           properties:
509             vf_module_label:
510             - ocgapp_03
511             - ocgapp_02
512             - ocgapp_01
513             - ocgapp_04
514             source_type: HEAT
515             param_name: nameserver_ip
516       type: string
517       description: nameserver
518       default: 135.214.16.119
519     ocgapp_name_3:
520       hidden: false
521       immutable: false
522       annotations:
523         source:
524           type: org.openecomp.annotations.Source
525           properties:
526             vf_module_label:
527             - ocgapp_04
528             source_type: HEAT
529             param_name: ocgapp_name_3
530       type: string
531       description: OCG VM server name list (there should be 2, since we have 2 app vms)
532     ovlm_install_properties:
533       hidden: false
534       immutable: false
535       annotations:
536         source:
537           type: org.openecomp.annotations.Source
538           properties:
539             vf_module_label:
540             - ocgmgr
541             source_type: HEAT
542             param_name: ovlm_install_properties
543       type: string
544       description: ovlm install properties
545       default: /tmp/ovlm.install.properties
546     ocgapp_name_0:
547       hidden: false
548       immutable: false
549       annotations:
550         source:
551           type: org.openecomp.annotations.Source
552           properties:
553             vf_module_label:
554             - ocgapp_01
555             source_type: HEAT
556             param_name: ocgapp_name_0
557       type: string
558       description: OCG VM server name list (there should be 2, since we have 2 app vms)
559     ocgapp_flavor_name:
560       hidden: false
561       immutable: false
562       annotations:
563         source:
564           type: org.openecomp.annotations.Source
565           properties:
566             vf_module_label:
567             - ocgapp_03
568             - ocgapp_02
569             - ocgapp_01
570             - ocgapp_04
571             source_type: HEAT
572             param_name: ocgapp_flavor_name
573       type: string
574       description: resources to be applied on instances
575       default: nv.c8r32d320
576     cor_direct_net_name:
577       hidden: false
578       immutable: false
579       annotations:
580         source:
581           type: org.openecomp.annotations.Source
582           properties:
583             vf_module_label:
584             - ocgapp_03
585             - ocgapp_02
586             - ocgapp_01
587             - ocgapp_04
588             source_type: HEAT
589             param_name: cor_direct_net_name
590       type: string
591       description: COR_DIRECT network where instances will connect
592     ocgapp_name_2:
593       hidden: false
594       immutable: false
595       annotations:
596         source:
597           type: org.openecomp.annotations.Source
598           properties:
599             vf_module_label:
600             - ocgapp_03
601             source_type: HEAT
602             param_name: ocgapp_name_2
603       type: string
604       description: OCG VM server name list (there should be 2, since we have 2 app vms)
605     oam_direct_net_name:
606       hidden: false
607       immutable: false
608       annotations:
609         source:
610           type: org.openecomp.annotations.Source
611           properties:
612             vf_module_label:
613             - ocgapp_03
614             - ocgapp_02
615             - ocgapp_01
616             - ocgapp_04
617             source_type: HEAT
618             param_name: oam_direct_net_name
619       type: string
620       description: OAM network where instances will connect
621     ocgapp_name_1:
622       hidden: false
623       immutable: false
624       annotations:
625         source:
626           type: org.openecomp.annotations.Source
627           properties:
628             vf_module_label:
629             - ocgapp_02
630             source_type: HEAT
631             param_name: ocgapp_name_1
632       type: string
633       description: OCG VM server name list (there should be 2, since we have 2 app vms)
634     vnf_id:
635       hidden: false
636       immutable: false
637       annotations:
638         source:
639           type: org.openecomp.annotations.Source
640           properties:
641             vf_module_label:
642             - ocgapp_03
643             - ocgapp_02
644             - ocgmgr
645             - ocgapp_01
646             - ocgapp_04
647             source_type: HEAT
648             param_name: vnf_id
649       type: string
650       description: Unique ID for this VF instance
651     ocgapp_cor_direct_v6_ip_0:
652       hidden: false
653       immutable: false
654       annotations:
655         source:
656           type: org.openecomp.annotations.Source
657           properties:
658             vf_module_label:
659             - ocgapp_01
660             source_type: HEAT
661             param_name: ocgapp_cor_direct_v6_ip_0
662       type: string
663       description: fixed IP assignment for VM's on the COR_DIRECT network
664     availability_zone_0:
665       hidden: false
666       immutable: false
667       annotations:
668         source:
669           type: org.openecomp.annotations.Source
670           properties:
671             vf_module_label:
672             - ocgapp_02
673             - ocgmgr
674             - ocgapp_01
675             source_type: HEAT
676             param_name: availability_zone_0
677       type: string
678       description: availability zone 1 ID or name
679     availability_zone_1:
680       hidden: false
681       immutable: false
682       annotations:
683         source:
684           type: org.openecomp.annotations.Source
685           properties:
686             vf_module_label:
687             - ocgapp_03
688             - ocgmgr
689             - ocgapp_04
690             source_type: HEAT
691             param_name: availability_zone_1
692       type: string
693       description: availability zone 2 ID or name
694     OS::stack_name:
695       type: string
696       required: false
697     ocgapp_cor_direct_v6_ip_3:
698       hidden: false
699       immutable: false
700       annotations:
701         source:
702           type: org.openecomp.annotations.Source
703           properties:
704             vf_module_label:
705             - ocgapp_04
706             source_type: HEAT
707             param_name: ocgapp_cor_direct_v6_ip_3
708       type: string
709       description: fixed IP assignment for VM's on the COR_DIRECT network
710     ocgapp_cor_direct_v6_ip_1:
711       hidden: false
712       immutable: false
713       annotations:
714         source:
715           type: org.openecomp.annotations.Source
716           properties:
717             vf_module_label:
718             - ocgapp_02
719             source_type: HEAT
720             param_name: ocgapp_cor_direct_v6_ip_1
721       type: string
722       description: fixed IP assignment for VM's on the COR_DIRECT network
723     ocgmgr_flavor_name:
724       hidden: false
725       immutable: false
726       annotations:
727         source:
728           type: org.openecomp.annotations.Source
729           properties:
730             vf_module_label:
731             - ocgmgr
732             source_type: HEAT
733             param_name: ocgmgr_flavor_name
734       type: string
735       description: resources to be applied on instances
736       default: nv.c8r32d320
737     ocgapp_cor_direct_v6_ip_2:
738       hidden: false
739       immutable: false
740       annotations:
741         source:
742           type: org.openecomp.annotations.Source
743           properties:
744             vf_module_label:
745             - ocgapp_03
746             source_type: HEAT
747             param_name: ocgapp_cor_direct_v6_ip_2
748       type: string
749       description: fixed IP assignment for VM's on the COR_DIRECT network
750     ocgmgr_public_key:
751       hidden: false
752       immutable: false
753       annotations:
754         source:
755           type: org.openecomp.annotations.Source
756           properties:
757             vf_module_label:
758             - ocgmgr
759             source_type: HEAT
760             param_name: ocgmgr_public_key
761       type: string
762       description: creator's ssh public key
763     ocgapp_volume_id_0:
764       hidden: false
765       immutable: false
766       annotations:
767         source:
768           type: org.openecomp.annotations.Source
769           properties:
770             vf_module_label:
771             - ocgapp_01
772             source_type: HEAT
773             param_name: ocgapp_volume_id_0
774       type: string
775       description: Unique IDs for volumes
776     java_home:
777       hidden: false
778       immutable: false
779       annotations:
780         source:
781           type: org.openecomp.annotations.Source
782           properties:
783             vf_module_label:
784             - ocgmgr
785             source_type: HEAT
786             param_name: java_home
787       type: string
788       description: java home
789       default: /home/fworks/java/jdk1.8.0_112
790     ocgapp_volume_id_1:
791       hidden: false
792       immutable: false
793       annotations:
794         source:
795           type: org.openecomp.annotations.Source
796           properties:
797             vf_module_label:
798             - ocgapp_02
799             source_type: HEAT
800             param_name: ocgapp_volume_id_1
801       type: string
802       description: Unique IDs for volumes
803     ocgapp_volume_id_2:
804       hidden: false
805       immutable: false
806       annotations:
807         source:
808           type: org.openecomp.annotations.Source
809           properties:
810             vf_module_label:
811             - ocgapp_03
812             source_type: HEAT
813             param_name: ocgapp_volume_id_2
814       type: string
815       description: Unique IDs for volumes
816     ocgapp_volume_id_3:
817       hidden: false
818       immutable: false
819       annotations:
820         source:
821           type: org.openecomp.annotations.Source
822           properties:
823             vf_module_label:
824             - ocgapp_04
825             source_type: HEAT
826             param_name: ocgapp_volume_id_3
827       type: string
828       description: Unique IDs for volumes
829     ocgapp_image_name:
830       hidden: false
831       immutable: false
832       annotations:
833         source:
834           type: org.openecomp.annotations.Source
835           properties:
836             vf_module_label:
837             - ocgapp_03
838             - ocgapp_02
839             - ocgapp_01
840             - ocgapp_04
841             source_type: HEAT
842             param_name: ocgapp_image_name
843       type: string
844       description: operative system image
845       default: NIMBUS_OCG-APPLICATION_20180328.qcow2
846     ocgapp_public_key:
847       hidden: false
848       immutable: false
849       annotations:
850         source:
851           type: org.openecomp.annotations.Source
852           properties:
853             vf_module_label:
854             - ocgapp_03
855             - ocgapp_02
856             - ocgapp_01
857             - ocgapp_04
858             source_type: HEAT
859             param_name: ocgapp_public_key
860       type: string
861       description: creator's ssh public key
862       default: ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAQEAh5B/f9JmJL5HcIJT+XeGnE9Jlv22NYGweMx+M2eX53X0sxdB8onhqDiLFODgDgXUuQk11NM2tQeA+xH+nlZxdETK+5uKb2SLwsPjZnxHQPrGQP1KKAZi9aKoZFjYmWrYuqzQFT9QRz3gehG+pX82mzMkkE/Da2/XJ62zu8PKfapn63MhhmxG5w5onuN2XsM2zfI6GILFM56ppLtMCkgvzXVcWOpr7pD4kpnC9WavxwAkmQPrWIbTi0MKIEeuON0B+KRgC3b8GnCpuE2GFTffAm1MBgi0Urs8e3XGHsilVMqYdaCPZwq5ZKlzivX5wZQH9yT9m9Db6XLL66ZIaBHt2w== rsa-key-20170906
863     ocg_shared_server_grp_id:
864       hidden: false
865       immutable: false
866       annotations:
867         source:
868           type: org.openecomp.annotations.Source
869           properties:
870             vf_module_label:
871             - ocgapp_03
872             - ocgapp_02
873             - ocgapp_01
874             - ocgapp_04
875             source_type: HEAT
876             param_name: ocg_shared_server_grp_id
877       type: string
878       description: OCG anti-affinity server group
879     oam_protected_net_name:
880       hidden: false
881       immutable: false
882       annotations:
883         source:
884           type: org.openecomp.annotations.Source
885           properties:
886             vf_module_label:
887             - ocgapp_03
888             - ocgapp_02
889             - ocgmgr
890             - ocgapp_01
891             - ocgapp_04
892             source_type: HEAT
893             param_name: oam_protected_net_name
894       type: string
895       description: OAM network where instances will connect
896     ocgapp_shared_sec_grp_id:
897       hidden: false
898       immutable: false
899       annotations:
900         source:
901           type: org.openecomp.annotations.Source
902           properties:
903             vf_module_label:
904             - ocgapp_03
905             - ocgapp_02
906             - ocgapp_01
907             - ocgapp_04
908             source_type: HEAT
909             param_name: ocgapp_shared_sec_grp_id
910       type: string
911       description: security group
912     ocgmgr_volume_type_0:
913       label: mgr vm 1 volume type
914       hidden: false
915       immutable: false
916       annotations:
917         source:
918           type: org.openecomp.annotations.Source
919           properties:
920             vf_module_label:
921             - ocgmgr
922             source_type: HEAT
923             param_name: ocgmgr_volume_type_0
924       type: string
925       description: the name of the target volume backend for the first OCG MGR
926       default: SF-Default-SSD
927     ocgapp_cor_direct_ip_2:
928       hidden: false
929       immutable: false
930       annotations:
931         source:
932           type: org.openecomp.annotations.Source
933           properties:
934             vf_module_label:
935             - ocgapp_03
936             source_type: HEAT
937             param_name: ocgapp_cor_direct_ip_2
938       type: string
939       description: OCG COR_DIRECT IP list
940     ocgapp_cor_direct_ip_3:
941       hidden: false
942       immutable: false
943       annotations:
944         source:
945           type: org.openecomp.annotations.Source
946           properties:
947             vf_module_label:
948             - ocgapp_04
949             source_type: HEAT
950             param_name: ocgapp_cor_direct_ip_3
951       type: string
952       description: OCG COR_DIRECT IP list
953     volume_count:
954       label: volume count
955       hidden: false
956       immutable: false
957       annotations:
958         source:
959           type: org.openecomp.annotations.Source
960           properties:
961             vf_module_label:
962             - ocgmgr
963             source_type: HEAT
964             param_name: volume_count
965       type: float
966       description: num of volumes needed
967       default: 2
968       constraints:
969       - valid_values:
970         - 0
971         - 1
972         - 2
973     ocgapp_cor_direct_ip_0:
974       hidden: false
975       immutable: false
976       annotations:
977         source:
978           type: org.openecomp.annotations.Source
979           properties:
980             vf_module_label:
981             - ocgapp_01
982             source_type: HEAT
983             param_name: ocgapp_cor_direct_ip_0
984       type: string
985       description: OCG COR_DIRECT IP list
986     ocgapp_cor_direct_ip_1:
987       hidden: false
988       immutable: false
989       annotations:
990         source:
991           type: org.openecomp.annotations.Source
992           properties:
993             vf_module_label:
994             - ocgapp_02
995             source_type: HEAT
996             param_name: ocgapp_cor_direct_ip_1
997       type: string
998       description: OCG COR_DIRECT IP list
999     eth2_ip:
1000       hidden: false
1001       immutable: false
1002       annotations:
1003         source:
1004           type: org.openecomp.annotations.Source
1005           properties:
1006             vf_module_label:
1007             - ocgapp_03
1008             - ocgapp_02
1009             - ocgapp_01
1010             - ocgapp_04
1011             source_type: HEAT
1012             param_name: eth2_ip
1013       type: string
1014       description: address
1015       default: 107.242.64.49
1016     ocgmgr_volume_size_0:
1017       label: Cinder volume 1 size
1018       hidden: false
1019       immutable: false
1020       annotations:
1021         source:
1022           type: org.openecomp.annotations.Source
1023           properties:
1024             vf_module_label:
1025             - ocgmgr
1026             source_type: HEAT
1027             param_name: ocgmgr_volume_size_0
1028       type: float
1029       description: the size of the Cinder volume
1030       default: 400
1031       constraints:
1032       - in_range:
1033         - 50
1034         - 400
1035     ocgmgr_shared_sec_grp_id:
1036       hidden: false
1037       immutable: false
1038       annotations:
1039         source:
1040           type: org.openecomp.annotations.Source
1041           properties:
1042             vf_module_label:
1043             - ocgmgr
1044             source_type: HEAT
1045             param_name: ocgmgr_shared_sec_grp_id
1046       type: string
1047       description: security group
1048     eth1_ip_range:
1049       hidden: false
1050       immutable: false
1051       annotations:
1052         source:
1053           type: org.openecomp.annotations.Source
1054           properties:
1055             vf_module_label:
1056             - ocgapp_03
1057             - ocgapp_02
1058             - ocgapp_01
1059             - ocgapp_04
1060             source_type: HEAT
1061             param_name: eth1_ip_range
1062       type: string
1063       description: range
1064       default: 130.4.128.0
1065   node_templates:
1066     ocgmgr_volume_resource_group:
1067       type: org.openecomp.resource.abstract.nodes.heat.ocgmgr_nested_volume
1068       directives:
1069       - substitutable
1070       properties:
1071         service_template_filter:
1072           substitute_service_template: ocgmgr_nested_volumeServiceTemplate.yaml
1073           count:
1074             get_input: volume_count
1075           mandatory: false
1076         volume_type:
1077           get_input: ocgmgr_volume_type_0
1078         size:
1079           get_input: ocgmgr_volume_size_0
1080         vnf_name:
1081           get_input: vnf_name
1082         index:
1083           get_property:
1084           - SELF
1085           - service_template_filter
1086           - index_value
1087     OCGMGR_SECURITY_GROUP:
1088       type: org.openecomp.resource.vfc.rules.nodes.heat.network.neutron.SecurityRules
1089       properties:
1090         name:
1091           str_replace:
1092             template: VF_NAME_sec_grp_OCGMGR
1093             params:
1094               VF_NAME:
1095                 get_input: vnf_name
1096         description: ocg mgr security group
1097         rules:
1098         - protocol: tcp
1099           ethertype: IPv4
1100           port_range_max: 65535
1101           remote_ip_prefix: 0.0.0.0/0
1102           direction: egress
1103           port_range_min: 1
1104         - protocol: udp
1105           ethertype: IPv4
1106           port_range_max: 65535
1107           remote_ip_prefix: 0.0.0.0/0
1108           direction: egress
1109           port_range_min: 1
1110         - protocol: icmp
1111           ethertype: IPv4
1112           remote_ip_prefix: 0.0.0.0/0
1113           direction: egress
1114         - protocol: tcp
1115           ethertype: IPv4
1116           port_range_max: 65535
1117           remote_ip_prefix: 0.0.0.0/0
1118           direction: ingress
1119           port_range_min: 1
1120         - protocol: udp
1121           ethertype: IPv4
1122           port_range_max: 65535
1123           remote_ip_prefix: 0.0.0.0/0
1124           direction: ingress
1125           port_range_min: 1
1126         - protocol: icmp
1127           ethertype: IPv4
1128           remote_ip_prefix: 0.0.0.0/0
1129           direction: ingress
1130       requirements:
1131       - port:
1132           capability: tosca.capabilities.Attachment
1133           node: ocgmgr_oam_protected_0_port
1134           relationship: org.openecomp.relationships.AttachesTo
1135       - port:
1136           capability: tosca.capabilities.Attachment
1137           node: ocgmgr_oam_protected_1_port
1138           relationship: org.openecomp.relationships.AttachesTo
1139     ocgapp_cor_direct_port_3:
1140       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
1141       properties:
1142         ip_requirements:
1143         - ip_version: 4
1144           ip_count_required:
1145             is_required: true
1146           floating_ip_count_required:
1147             is_required: false
1148         - ip_version: 6
1149           ip_count_required:
1150             is_required: true
1151           floating_ip_count_required:
1152             is_required: false
1153         security_groups:
1154         - get_input: ocgapp_shared_sec_grp_id
1155         fixed_ips:
1156         - ip_address:
1157             get_input: ocgapp_cor_direct_ip_3
1158         - ip_address:
1159             get_input: ocgapp_cor_direct_v6_ip_3
1160         mac_requirements:
1161           mac_count_required:
1162             is_required: false
1163         name:
1164           str_replace:
1165             template: VNF_NAME_ocgapp_cor_port_3
1166             params:
1167               VNF_NAME:
1168                 get_input: vnf_name
1169         network_role_tag: cor_direct
1170         network:
1171           get_input: cor_direct_net_name
1172       requirements:
1173       - binding:
1174           capability: tosca.capabilities.network.Bindable
1175           node: ocgapp_server_3
1176           relationship: tosca.relationships.network.BindsTo
1177     ocgapp_cor_direct_port_2:
1178       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
1179       properties:
1180         ip_requirements:
1181         - ip_version: 4
1182           ip_count_required:
1183             is_required: true
1184           floating_ip_count_required:
1185             is_required: false
1186         - ip_version: 6
1187           ip_count_required:
1188             is_required: true
1189           floating_ip_count_required:
1190             is_required: false
1191         security_groups:
1192         - get_input: ocgapp_shared_sec_grp_id
1193         fixed_ips:
1194         - ip_address:
1195             get_input: ocgapp_cor_direct_ip_2
1196         - ip_address:
1197             get_input: ocgapp_cor_direct_v6_ip_2
1198         mac_requirements:
1199           mac_count_required:
1200             is_required: false
1201         name:
1202           str_replace:
1203             template: VNF_NAME_ocgapp_cor_port_2
1204             params:
1205               VNF_NAME:
1206                 get_input: vnf_name
1207         network_role_tag: cor_direct
1208         network:
1209           get_input: cor_direct_net_name
1210       requirements:
1211       - binding:
1212           capability: tosca.capabilities.network.Bindable
1213           node: ocgapp_server_2
1214           relationship: tosca.relationships.network.BindsTo
1215     ocgapp_server_2:
1216       type: org.openecomp.resource.vfc.nodes.heat.ocgapp
1217       properties:
1218         flavor:
1219           get_input: ocgapp_flavor_name
1220         key_name: UNSUPPORTED_RESOURCE_ocgapp_admin_key
1221         availability_zone:
1222           get_input: availability_zone_1
1223         image:
1224           get_input: ocgapp_image_name
1225         metadata:
1226           vf_module_id:
1227             get_input: vf_module_id
1228           vnf_id:
1229             get_input: vnf_id
1230           vnf_name:
1231             get_input: vnf_name
1232         personality:
1233           /etc/hostname:
1234             str_replace:
1235               template: |
1236                 ${NAME}.${DOMAIN_NAME}
1237               params:
1238                 ${NAME}:
1239                   get_input: ocgapp_name_2
1240                 ${DOMAIN_NAME}:
1241                   get_input: domain_name
1242           /etc/resolv.conf:
1243             str_replace:
1244               template: |
1245                 nameserver ${NAME_SERVER}
1246                 domain ${DOMAIN_NAME}
1247               params:
1248                 ${NAME_SERVER}:
1249                   get_input: nameserver_ip
1250                 ${DOMAIN_NAME}:
1251                   get_input: domain_name
1252           /etc/sysconfig/network-scripts/route-eth2:
1253             str_replace:
1254               template: |
1255                 ${ETH2_IP_RANGE} via ${ETH2_IP} dev eth2
1256               params:
1257                 ${ETH2_IP_RANGE}:
1258                   get_input: eth2_ip_range
1259                 ${ETH2_IP}:
1260                   get_input: eth2_ip
1261           /etc/sysconfig/network-scripts/route-eth1:
1262             str_replace:
1263               template: |
1264                 ${ETH1_IP_RANGE}/${ETH1_NETMASK} via ${ETH1_IP} dev eth1
1265               params:
1266                 ${ETH1_IP_RANGE}:
1267                   get_input: eth1_ip_range
1268                 ${ETH1_IP}:
1269                   get_input: eth1_ip
1270                 ${ETH1_NETMASK}:
1271                   get_input: eth1_netmask
1272         user_data_format: RAW
1273         name:
1274           get_input: ocgapp_name_2
1275         scheduler_hints:
1276           group:
1277             get_input: ocg_shared_server_grp_id
1278       requirements:
1279       - local_storage:
1280           capability: tosca.capabilities.Attachment
1281           node: ocgapp_volume_2
1282           relationship: ocgapp_volume_attachment_2
1283     ocgapp_server_1:
1284       type: org.openecomp.resource.vfc.nodes.heat.ocgapp
1285       properties:
1286         flavor:
1287           get_input: ocgapp_flavor_name
1288         key_name: UNSUPPORTED_RESOURCE_ocgapp_admin_key
1289         availability_zone:
1290           get_input: availability_zone_0
1291         image:
1292           get_input: ocgapp_image_name
1293         metadata:
1294           vf_module_id:
1295             get_input: vf_module_id
1296           vnf_id:
1297             get_input: vnf_id
1298           vnf_name:
1299             get_input: vnf_name
1300         personality:
1301           /etc/hostname:
1302             str_replace:
1303               template: |
1304                 ${NAME}.${DOMAIN_NAME}
1305               params:
1306                 ${NAME}:
1307                   get_input: ocgapp_name_1
1308                 ${DOMAIN_NAME}:
1309                   get_input: domain_name
1310           /etc/resolv.conf:
1311             str_replace:
1312               template: |
1313                 nameserver ${NAME_SERVER}
1314                 domain ${DOMAIN_NAME}
1315               params:
1316                 ${NAME_SERVER}:
1317                   get_input: nameserver_ip
1318                 ${DOMAIN_NAME}:
1319                   get_input: domain_name
1320           /etc/sysconfig/network-scripts/route-eth2:
1321             str_replace:
1322               template: |
1323                 ${ETH2_IP_RANGE} via ${ETH2_IP} dev eth2
1324               params:
1325                 ${ETH2_IP_RANGE}:
1326                   get_input: eth2_ip_range
1327                 ${ETH2_IP}:
1328                   get_input: eth2_ip
1329           /etc/sysconfig/network-scripts/route-eth1:
1330             str_replace:
1331               template: |
1332                 ${ETH1_IP_RANGE}/${ETH1_NETMASK} via ${ETH1_IP} dev eth1
1333               params:
1334                 ${ETH1_IP_RANGE}:
1335                   get_input: eth1_ip_range
1336                 ${ETH1_IP}:
1337                   get_input: eth1_ip
1338                 ${ETH1_NETMASK}:
1339                   get_input: eth1_netmask
1340         user_data_format: RAW
1341         name:
1342           get_input: ocgapp_name_1
1343         scheduler_hints:
1344           group:
1345             get_input: ocg_shared_server_grp_id
1346       requirements:
1347       - local_storage:
1348           capability: tosca.capabilities.Attachment
1349           node: ocgapp_volume_1
1350           relationship: ocgapp_volume_attachment_1
1351     ocgapp_server_0:
1352       type: org.openecomp.resource.vfc.nodes.heat.ocgapp
1353       properties:
1354         flavor:
1355           get_input: ocgapp_flavor_name
1356         key_name: UNSUPPORTED_RESOURCE_ocgapp_admin_key
1357         availability_zone:
1358           get_input: availability_zone_0
1359         image:
1360           get_input: ocgapp_image_name
1361         metadata:
1362           vf_module_id:
1363             get_input: vf_module_id
1364           vnf_id:
1365             get_input: vnf_id
1366           vnf_name:
1367             get_input: vnf_name
1368         personality:
1369           /etc/hostname:
1370             str_replace:
1371               template: |
1372                 ${NAME}.${DOMAIN_NAME}
1373               params:
1374                 ${NAME}:
1375                   get_input: ocgapp_name_0
1376                 ${DOMAIN_NAME}:
1377                   get_input: domain_name
1378           /etc/resolv.conf:
1379             str_replace:
1380               template: |
1381                 nameserver ${NAME_SERVER}
1382                 domain ${DOMAIN_NAME}
1383               params:
1384                 ${NAME_SERVER}:
1385                   get_input: nameserver_ip
1386                 ${DOMAIN_NAME}:
1387                   get_input: domain_name
1388           /etc/sysconfig/network-scripts/route-eth2:
1389             str_replace:
1390               template: |
1391                 ${ETH2_IP_RANGE} via ${ETH2_IP} dev eth2
1392               params:
1393                 ${ETH2_IP_RANGE}:
1394                   get_input: eth2_ip_range
1395                 ${ETH2_IP}:
1396                   get_input: eth2_ip
1397           /etc/sysconfig/network-scripts/route-eth1:
1398             str_replace:
1399               template: |
1400                 ${ETH1_IP_RANGE}/${ETH1_NETMASK} via ${ETH1_IP} dev eth1
1401               params:
1402                 ${ETH1_IP_RANGE}:
1403                   get_input: eth1_ip_range
1404                 ${ETH1_IP}:
1405                   get_input: eth1_ip
1406                 ${ETH1_NETMASK}:
1407                   get_input: eth1_netmask
1408         user_data_format: RAW
1409         name:
1410           get_input: ocgapp_name_0
1411         scheduler_hints:
1412           group:
1413             get_input: ocg_shared_server_grp_id
1414       requirements:
1415       - local_storage:
1416           capability: tosca.capabilities.Attachment
1417           node: ocgapp_volume_0
1418           relationship: ocgapp_volume_attachment_0
1419     ocgmgr_oam_protected_0_port:
1420       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
1421       properties:
1422         ip_requirements:
1423         - ip_version: 4
1424           ip_count_required:
1425             is_required: true
1426           floating_ip_count_required:
1427             is_required: false
1428         security_groups:
1429         - get_input: ocgmgr_shared_sec_grp_id
1430         fixed_ips:
1431         - ip_address:
1432             get_input:
1433             - ocgmgr_oam_protected_ips
1434             - 0
1435         mac_requirements:
1436           mac_count_required:
1437             is_required: false
1438         name:
1439           str_replace:
1440             template: VNF_NAME_ocgmgr_oam_port_0
1441             params:
1442               VNF_NAME:
1443                 get_input: vnf_name
1444         network_role_tag: oam_protected
1445         network:
1446           get_input: oam_protected_net_name
1447       requirements:
1448       - binding:
1449           capability: tosca.capabilities.network.Bindable
1450           node: ocgmgr_server_0
1451           relationship: tosca.relationships.network.BindsTo
1452     ocgmgr_server_0:
1453       type: org.openecomp.resource.vfc.nodes.heat.ocgmgr
1454       properties:
1455         flavor:
1456           get_input: ocgmgr_flavor_name
1457         key_name: UNSUPPORTED_RESOURCE_ocgmgr_admin_key
1458         availability_zone:
1459           get_input: availability_zone_0
1460         image:
1461           get_input: ocgmgr_image_name
1462         metadata:
1463           vf_module_id:
1464             get_input: vf_module_id
1465           vnf_id:
1466             get_input: vnf_id
1467           vnf_name:
1468             get_input: vnf_name
1469         user_data_format: SOFTWARE_CONFIG
1470         name:
1471           get_input:
1472           - ocgmgr_names
1473           - 0
1474     ocgmgr_server_1:
1475       type: org.openecomp.resource.vfc.nodes.heat.ocgmgr
1476       properties:
1477         flavor:
1478           get_input: ocgmgr_flavor_name
1479         key_name: UNSUPPORTED_RESOURCE_ocgmgr_admin_key
1480         availability_zone:
1481           get_input: availability_zone_1
1482         image:
1483           get_input: ocgmgr_image_name
1484         metadata:
1485           vf_module_id:
1486             get_input: vf_module_id
1487           vnf_id:
1488             get_input: vnf_id
1489           vnf_name:
1490             get_input: vnf_name
1491         user_data_format: RAW
1492         name:
1493           get_input:
1494           - ocgmgr_names
1495           - 1
1496     ocgapp_server_3:
1497       type: org.openecomp.resource.vfc.nodes.heat.ocgapp
1498       properties:
1499         flavor:
1500           get_input: ocgapp_flavor_name
1501         key_name: UNSUPPORTED_RESOURCE_ocgapp_admin_key
1502         availability_zone:
1503           get_input: availability_zone_1
1504         image:
1505           get_input: ocgapp_image_name
1506         metadata:
1507           vf_module_id:
1508             get_input: vf_module_id
1509           vnf_id:
1510             get_input: vnf_id
1511           vnf_name:
1512             get_input: vnf_name
1513         personality:
1514           /etc/hostname:
1515             str_replace:
1516               template: |
1517                 ${NAME}.${DOMAIN_NAME}
1518               params:
1519                 ${NAME}:
1520                   get_input: ocgapp_name_3
1521                 ${DOMAIN_NAME}:
1522                   get_input: domain_name
1523           /etc/resolv.conf:
1524             str_replace:
1525               template: |
1526                 nameserver ${NAME_SERVER}
1527                 domain ${DOMAIN_NAME}
1528               params:
1529                 ${NAME_SERVER}:
1530                   get_input: nameserver_ip
1531                 ${DOMAIN_NAME}:
1532                   get_input: domain_name
1533           /etc/sysconfig/network-scripts/route-eth2:
1534             str_replace:
1535               template: |
1536                 ${ETH2_IP_RANGE} via ${ETH2_IP} dev eth2
1537               params:
1538                 ${ETH2_IP_RANGE}:
1539                   get_input: eth2_ip_range
1540                 ${ETH2_IP}:
1541                   get_input: eth2_ip
1542           /etc/sysconfig/network-scripts/route-eth1:
1543             str_replace:
1544               template: |
1545                 ${ETH1_IP_RANGE}/${ETH1_NETMASK} via ${ETH1_IP} dev eth1
1546               params:
1547                 ${ETH1_IP_RANGE}:
1548                   get_input: eth1_ip_range
1549                 ${ETH1_IP}:
1550                   get_input: eth1_ip
1551                 ${ETH1_NETMASK}:
1552                   get_input: eth1_netmask
1553         user_data_format: RAW
1554         name:
1555           get_input:
1556           - ocgapp_name_3
1557         scheduler_hints:
1558           group:
1559             get_input: ocg_shared_server_grp_id
1560       requirements:
1561       - local_storage:
1562           capability: tosca.capabilities.Attachment
1563           node: ocgapp_volume_3
1564           relationship: ocgapp_volume_attachment_3
1565     ocgapp_oam_direct_port_1:
1566       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
1567       properties:
1568         ip_requirements:
1569         - ip_version: 4
1570           ip_count_required:
1571             is_required: true
1572           floating_ip_count_required:
1573             is_required: false
1574         security_groups:
1575         - get_input: ocgapp_shared_sec_grp_id
1576         fixed_ips:
1577         - ip_address:
1578             get_input: ocgapp_oam_direct_ip_1
1579         mac_requirements:
1580           mac_count_required:
1581             is_required: false
1582         name:
1583           str_replace:
1584             template: VNF_NAME_ocgapp_oam_direct_port_1
1585             params:
1586               VNF_NAME:
1587                 get_input: vnf_name
1588         network_role_tag: oam_direct
1589         network:
1590           get_input: oam_direct_net_name
1591       requirements:
1592       - binding:
1593           capability: tosca.capabilities.network.Bindable
1594           node: ocgapp_server_1
1595           relationship: tosca.relationships.network.BindsTo
1596     ocgapp_oam_direct_port_2:
1597       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
1598       properties:
1599         ip_requirements:
1600         - ip_version: 4
1601           ip_count_required:
1602             is_required: true
1603           floating_ip_count_required:
1604             is_required: false
1605         security_groups:
1606         - get_input: ocgapp_shared_sec_grp_id
1607         fixed_ips:
1608         - ip_address:
1609             get_input: ocgapp_oam_direct_ip_2
1610         mac_requirements:
1611           mac_count_required:
1612             is_required: false
1613         name:
1614           str_replace:
1615             template: VNF_NAME_ocgapp_oam_direct_port_2
1616             params:
1617               VNF_NAME:
1618                 get_input: vnf_name
1619         network_role_tag: oam_direct
1620         network:
1621           get_input: oam_direct_net_name
1622       requirements:
1623       - binding:
1624           capability: tosca.capabilities.network.Bindable
1625           node: ocgapp_server_2
1626           relationship: tosca.relationships.network.BindsTo
1627     ocgapp_oam_direct_port_3:
1628       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
1629       properties:
1630         ip_requirements:
1631         - ip_version: 4
1632           ip_count_required:
1633             is_required: true
1634           floating_ip_count_required:
1635             is_required: false
1636         security_groups:
1637         - get_input: ocgapp_shared_sec_grp_id
1638         fixed_ips:
1639         - ip_address:
1640             get_input: ocgapp_oam_direct_ip_3
1641         mac_requirements:
1642           mac_count_required:
1643             is_required: false
1644         name:
1645           str_replace:
1646             template: VNF_NAME_ocgapp_oam_direct_port_3
1647             params:
1648               VNF_NAME:
1649                 get_input: vnf_name
1650         network_role_tag: oam_direct
1651         network:
1652           get_input: oam_direct_net_name
1653       requirements:
1654       - binding:
1655           capability: tosca.capabilities.network.Bindable
1656           node: ocgapp_server_3
1657           relationship: tosca.relationships.network.BindsTo
1658     OCGAPP_SECURITY_GROUP:
1659       type: org.openecomp.resource.vfc.rules.nodes.heat.network.neutron.SecurityRules
1660       properties:
1661         name:
1662           str_replace:
1663             template: VF_NAME_sec_grp_OCGAPP
1664             params:
1665               VF_NAME:
1666                 get_input: vnf_name
1667         description: ocg app security group
1668         rules:
1669         - protocol: tcp
1670           ethertype: IPv4
1671           port_range_max: 65535
1672           remote_ip_prefix: 0.0.0.0/0
1673           direction: egress
1674           port_range_min: 1
1675         - protocol: udp
1676           ethertype: IPv4
1677           port_range_max: 65535
1678           remote_ip_prefix: 0.0.0.0/0
1679           direction: egress
1680           port_range_min: 1
1681         - protocol: icmp
1682           ethertype: IPv4
1683           remote_ip_prefix: 0.0.0.0/0
1684           direction: egress
1685         - protocol: tcp
1686           ethertype: IPv4
1687           port_range_max: 65535
1688           remote_ip_prefix: 0.0.0.0/0
1689           direction: ingress
1690           port_range_min: 1
1691         - protocol: udp
1692           ethertype: IPv4
1693           port_range_max: 65535
1694           remote_ip_prefix: 0.0.0.0/0
1695           direction: ingress
1696           port_range_min: 1
1697         - protocol: icmp
1698           ethertype: IPv4
1699           remote_ip_prefix: 0.0.0.0/0
1700           direction: ingress
1701         - protocol: tcp
1702           ethertype: IPv6
1703           port_range_max: 65535
1704           remote_ip_prefix: ::/0
1705           direction: egress
1706           port_range_min: 1
1707         - protocol: udp
1708           ethertype: IPv6
1709           port_range_max: 65535
1710           remote_ip_prefix: ::/0
1711           direction: egress
1712           port_range_min: 1
1713         - protocol: icmp
1714           ethertype: IPv6
1715           remote_ip_prefix: ::/0
1716           direction: egress
1717         - protocol: tcp
1718           ethertype: IPv6
1719           port_range_max: 65535
1720           remote_ip_prefix: ::/0
1721           direction: ingress
1722           port_range_min: 1
1723         - protocol: udp
1724           ethertype: IPv6
1725           port_range_max: 65535
1726           remote_ip_prefix: ::/0
1727           direction: ingress
1728           port_range_min: 1
1729         - protocol: icmp
1730           ethertype: IPv6
1731           remote_ip_prefix: ::/0
1732           direction: ingress
1733       requirements:
1734       - port:
1735           capability: tosca.capabilities.Attachment
1736           node: ocgapp_oam_protected_port_3
1737           relationship: org.openecomp.relationships.AttachesTo
1738       - port:
1739           capability: tosca.capabilities.Attachment
1740           node: ocgapp_oam_direct_port_3
1741           relationship: org.openecomp.relationships.AttachesTo
1742       - port:
1743           capability: tosca.capabilities.Attachment
1744           node: ocgapp_cor_direct_port_3
1745           relationship: org.openecomp.relationships.AttachesTo
1746       - port:
1747           capability: tosca.capabilities.Attachment
1748           node: ocgapp_oam_protected_port_0
1749           relationship: org.openecomp.relationships.AttachesTo
1750       - port:
1751           capability: tosca.capabilities.Attachment
1752           node: ocgapp_oam_direct_port_0
1753           relationship: org.openecomp.relationships.AttachesTo
1754       - port:
1755           capability: tosca.capabilities.Attachment
1756           node: ocgapp_cor_direct_port_0
1757           relationship: org.openecomp.relationships.AttachesTo
1758       - port:
1759           capability: tosca.capabilities.Attachment
1760           node: ocgapp_oam_protected_port_1
1761           relationship: org.openecomp.relationships.AttachesTo
1762       - port:
1763           capability: tosca.capabilities.Attachment
1764           node: ocgapp_oam_direct_port_1
1765           relationship: org.openecomp.relationships.AttachesTo
1766       - port:
1767           capability: tosca.capabilities.Attachment
1768           node: ocgapp_cor_direct_port_1
1769           relationship: org.openecomp.relationships.AttachesTo
1770       - port:
1771           capability: tosca.capabilities.Attachment
1772           node: ocgapp_oam_protected_port_2
1773           relationship: org.openecomp.relationships.AttachesTo
1774       - port:
1775           capability: tosca.capabilities.Attachment
1776           node: ocgapp_oam_direct_port_2
1777           relationship: org.openecomp.relationships.AttachesTo
1778       - port:
1779           capability: tosca.capabilities.Attachment
1780           node: ocgapp_cor_direct_port_2
1781           relationship: org.openecomp.relationships.AttachesTo
1782     ocgapp_volume_1:
1783       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
1784       properties:
1785         volume_type:
1786           get_input: ocgapp_volume_type_1
1787         size: '(get_input : ocgapp_volume_size_1) * 1024'
1788         name:
1789           str_replace:
1790             template: VF_NAME_STACK_NAME_volume_1
1791             params:
1792               VF_NAME:
1793                 get_input: vnf_name
1794               STACK_NAME:
1795                 get_input: OS::stack_name
1796     ocgapp_volume_0:
1797       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
1798       properties:
1799         volume_type:
1800           get_input: ocgapp_volume_type_0
1801         size: '(get_input : ocgapp_volume_size_0) * 1024'
1802         name:
1803           str_replace:
1804             template: VF_NAME_STACK_NAME_volume_1
1805             params:
1806               VF_NAME:
1807                 get_input: vnf_name
1808               STACK_NAME:
1809                 get_input: OS::stack_name
1810     ocgapp_volume_3:
1811       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
1812       properties:
1813         volume_type:
1814           get_input: ocgapp_volume_type_3
1815         size: '(get_input : ocgapp_volume_size_3) * 1024'
1816         name:
1817           str_replace:
1818             template: VF_NAME_STACK_NAME_volume_3
1819             params:
1820               VF_NAME:
1821                 get_input: vnf_name
1822               STACK_NAME:
1823                 get_input: OS::stack_name
1824     ocgapp_oam_direct_port_0:
1825       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
1826       properties:
1827         ip_requirements:
1828         - ip_version: 4
1829           ip_count_required:
1830             is_required: true
1831           floating_ip_count_required:
1832             is_required: false
1833         security_groups:
1834         - get_input: ocgapp_shared_sec_grp_id
1835         fixed_ips:
1836         - ip_address:
1837             get_input: ocgapp_oam_direct_ip_0
1838         mac_requirements:
1839           mac_count_required:
1840             is_required: false
1841         name:
1842           str_replace:
1843             template: VNF_NAME_ocgapp_oam_direct_port_0
1844             params:
1845               VNF_NAME:
1846                 get_input: vnf_name
1847         network_role_tag: oam_direct
1848         network:
1849           get_input: oam_direct_net_name
1850       requirements:
1851       - binding:
1852           capability: tosca.capabilities.network.Bindable
1853           node: ocgapp_server_0
1854           relationship: tosca.relationships.network.BindsTo
1855     ocgapp_volume_2:
1856       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
1857       properties:
1858         volume_type:
1859           get_input: ocgapp_volume_type_2
1860         size: '(get_input : ocgapp_volume_size_2) * 1024'
1861         name:
1862           str_replace:
1863             template: VF_NAME_STACK_NAME_volume_2
1864             params:
1865               VF_NAME:
1866                 get_input: vnf_name
1867               STACK_NAME:
1868                 get_input: OS::stack_name
1869     ocgapp_cor_direct_port_1:
1870       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
1871       properties:
1872         ip_requirements:
1873         - ip_version: 4
1874           ip_count_required:
1875             is_required: true
1876           floating_ip_count_required:
1877             is_required: false
1878         - ip_version: 6
1879           ip_count_required:
1880             is_required: true
1881           floating_ip_count_required:
1882             is_required: false
1883         security_groups:
1884         - get_input: ocgapp_shared_sec_grp_id
1885         fixed_ips:
1886         - ip_address:
1887             get_input: ocgapp_cor_direct_ip_1
1888         - ip_address:
1889             get_input: ocgapp_cor_direct_v6_ip_1
1890         mac_requirements:
1891           mac_count_required:
1892             is_required: false
1893         name:
1894           str_replace:
1895             template: VNF_NAME_ocgapp_cor_port_1
1896             params:
1897               VNF_NAME:
1898                 get_input: vnf_name
1899         network_role_tag: cor_direct
1900         network:
1901           get_input: cor_direct_net_name
1902       requirements:
1903       - binding:
1904           capability: tosca.capabilities.network.Bindable
1905           node: ocgapp_server_1
1906           relationship: tosca.relationships.network.BindsTo
1907     ocgapp_cor_direct_port_0:
1908       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
1909       properties:
1910         ip_requirements:
1911         - ip_version: 4
1912           ip_count_required:
1913             is_required: true
1914           floating_ip_count_required:
1915             is_required: false
1916         - ip_version: 6
1917           ip_count_required:
1918             is_required: true
1919           floating_ip_count_required:
1920             is_required: false
1921         security_groups:
1922         - get_input: ocgapp_shared_sec_grp_id
1923         fixed_ips:
1924         - ip_address:
1925             get_input: ocgapp_cor_direct_ip_0
1926         - ip_address:
1927             get_input: ocgapp_cor_direct_v6_ip_0
1928         mac_requirements:
1929           mac_count_required:
1930             is_required: false
1931         name:
1932           str_replace:
1933             template: VNF_NAME_ocgapp_cor_port_0
1934             params:
1935               VNF_NAME:
1936                 get_input: vnf_name
1937         network_role_tag: cor_direct
1938         network:
1939           get_input: cor_direct_net_name
1940       requirements:
1941       - binding:
1942           capability: tosca.capabilities.network.Bindable
1943           node: ocgapp_server_0
1944           relationship: tosca.relationships.network.BindsTo
1945     ocgapp_oam_protected_port_1:
1946       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
1947       properties:
1948         ip_requirements:
1949         - ip_version: 4
1950           ip_count_required:
1951             is_required: true
1952           floating_ip_count_required:
1953             is_required: false
1954         security_groups:
1955         - get_input: ocgapp_shared_sec_grp_id
1956         fixed_ips:
1957         - ip_address:
1958             get_input: ocgapp_oam_protected_ip_1
1959         mac_requirements:
1960           mac_count_required:
1961             is_required: false
1962         name:
1963           str_replace:
1964             template: VNF_NAME_ocgapp_oam_protected_port_1
1965             params:
1966               VNF_NAME:
1967                 get_input: vnf_name
1968         network_role_tag: oam_protected
1969         network:
1970           get_input: oam_protected_net_name
1971       requirements:
1972       - binding:
1973           capability: tosca.capabilities.network.Bindable
1974           node: ocgapp_server_1
1975           relationship: tosca.relationships.network.BindsTo
1976     ocgapp_oam_protected_port_0:
1977       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
1978       properties:
1979         ip_requirements:
1980         - ip_version: 4
1981           ip_count_required:
1982             is_required: true
1983           floating_ip_count_required:
1984             is_required: false
1985         security_groups:
1986         - get_input: ocgapp_shared_sec_grp_id
1987         fixed_ips:
1988         - ip_address:
1989             get_input: ocgapp_oam_protected_ip_0
1990         mac_requirements:
1991           mac_count_required:
1992             is_required: false
1993         name:
1994           str_replace:
1995             template: VNF_NAME_ocgapp_oam_protected_port_0
1996             params:
1997               VNF_NAME:
1998                 get_input: vnf_name
1999         network_role_tag: oam_protected
2000         network:
2001           get_input: oam_protected_net_name
2002       requirements:
2003       - binding:
2004           capability: tosca.capabilities.network.Bindable
2005           node: ocgapp_server_0
2006           relationship: tosca.relationships.network.BindsTo
2007     ocgapp_oam_protected_port_3:
2008       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
2009       properties:
2010         ip_requirements:
2011         - ip_version: 4
2012           ip_count_required:
2013             is_required: true
2014           floating_ip_count_required:
2015             is_required: false
2016         security_groups:
2017         - get_input: ocgapp_shared_sec_grp_id
2018         fixed_ips:
2019         - ip_address:
2020             get_input: ocgapp_oam_protected_ip_3
2021         mac_requirements:
2022           mac_count_required:
2023             is_required: false
2024         name:
2025           str_replace:
2026             template: VNF_NAME_ocgapp_oam_protected_port_3
2027             params:
2028               VNF_NAME:
2029                 get_input: vnf_name
2030         network_role_tag: oam_protected
2031         network:
2032           get_input: oam_protected_net_name
2033       requirements:
2034       - binding:
2035           capability: tosca.capabilities.network.Bindable
2036           node: ocgapp_server_3
2037           relationship: tosca.relationships.network.BindsTo
2038     ocgmgr_oam_protected_1_port:
2039       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
2040       properties:
2041         ip_requirements:
2042         - ip_version: 4
2043           ip_count_required:
2044             is_required: true
2045           floating_ip_count_required:
2046             is_required: false
2047         security_groups:
2048         - get_input: ocgmgr_shared_sec_grp_id
2049         fixed_ips:
2050         - ip_address:
2051             get_input:
2052             - ocgmgr_oam_protected_ips
2053             - 1
2054         mac_requirements:
2055           mac_count_required:
2056             is_required: false
2057         name:
2058           str_replace:
2059             template: VNF_NAME_ocgmgr_oam_port_1
2060             params:
2061               VNF_NAME:
2062                 get_input: vnf_name
2063         network_role_tag: oam_protected
2064         network:
2065           get_input: oam_protected_net_name
2066       requirements:
2067       - binding:
2068           capability: tosca.capabilities.network.Bindable
2069           node: ocgmgr_server_1
2070           relationship: tosca.relationships.network.BindsTo
2071     ocgapp_oam_protected_port_2:
2072       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
2073       properties:
2074         ip_requirements:
2075         - ip_version: 4
2076           ip_count_required:
2077             is_required: true
2078           floating_ip_count_required:
2079             is_required: false
2080         security_groups:
2081         - get_input: ocgapp_shared_sec_grp_id
2082         fixed_ips:
2083         - ip_address:
2084             get_input: ocgapp_oam_protected_ip_2
2085         mac_requirements:
2086           mac_count_required:
2087             is_required: false
2088         name:
2089           str_replace:
2090             template: VNF_NAME_ocgapp_oam_protected_port_2
2091             params:
2092               VNF_NAME:
2093                 get_input: vnf_name
2094         network_role_tag: oam_protected
2095         network:
2096           get_input: oam_protected_net_name
2097       requirements:
2098       - binding:
2099           capability: tosca.capabilities.network.Bindable
2100           node: ocgapp_server_2
2101           relationship: tosca.relationships.network.BindsTo
2102   relationship_templates:
2103     ocgapp_volume_attachment_3:
2104       type: org.openecomp.relationships.VolumeAttachesTo
2105       properties:
2106         volume_id: ocgapp_volume_3
2107         instance_uuid: ocgapp_server_3
2108     ocgapp_volume_attachment_2:
2109       type: org.openecomp.relationships.VolumeAttachesTo
2110       properties:
2111         volume_id: ocgapp_volume_2
2112         instance_uuid: ocgapp_server_2
2113     ocgapp_volume_attachment_1:
2114       type: org.openecomp.relationships.VolumeAttachesTo
2115       properties:
2116         volume_id: ocgapp_volume_1
2117         instance_uuid: ocgapp_server_1
2118     ocgapp_volume_attachment_0:
2119       type: org.openecomp.relationships.VolumeAttachesTo
2120       properties:
2121         volume_id: ocgapp_volume_0
2122         instance_uuid: ocgapp_server_0
2123   groups:
2124     base_ocg_group:
2125       type: org.openecomp.groups.heat.HeatStack
2126       properties:
2127         heat_file: ../Artifacts/base_ocg.yaml
2128         description: |
2129           Base HOT template to create The Security Group for the the OCG VNF
2130       members:
2131       - OCGMGR_SECURITY_GROUP
2132       - OCGAPP_SECURITY_GROUP
2133     ocgapp_04_volume_group:
2134       type: org.openecomp.groups.heat.HeatStack
2135       properties:
2136         heat_file: ../Artifacts/ocgapp_04_volume.yaml
2137       members:
2138       - ocgapp_volume_3
2139     ocgmgr_group:
2140       type: org.openecomp.groups.heat.HeatStack
2141       properties:
2142         heat_file: ../Artifacts/ocgmgr.yaml
2143         description: OCG Managers template
2144       members:
2145       - ocgmgr_oam_protected_0_port
2146       - ocgmgr_server_0
2147       - ocgmgr_server_1
2148       - ocgmgr_oam_protected_1_port
2149     ocgapp_02_group:
2150       type: org.openecomp.groups.heat.HeatStack
2151       properties:
2152         heat_file: ../Artifacts/ocgapp_02.yaml
2153         description: OCG Apps template
2154       members:
2155       - ocgapp_server_1
2156       - ocgapp_cor_direct_port_1
2157       - ocgapp_oam_direct_port_1
2158       - ocgapp_oam_protected_port_1
2159     ocgapp_03_group:
2160       type: org.openecomp.groups.heat.HeatStack
2161       properties:
2162         heat_file: ../Artifacts/ocgapp_03.yaml
2163         description: OCG Apps template
2164       members:
2165       - ocgapp_server_2
2166       - ocgapp_oam_direct_port_2
2167       - ocgapp_cor_direct_port_2
2168       - ocgapp_oam_protected_port_2
2169     ocg_RSG_group:
2170       type: tosca.groups.Root
2171       members:
2172       - ocgapp_server_3
2173       - ocgapp_server_0
2174       - ocgapp_server_1
2175       - ocgapp_server_2
2176     ocgapp_01_group:
2177       type: org.openecomp.groups.heat.HeatStack
2178       properties:
2179         heat_file: ../Artifacts/ocgapp_01.yaml
2180         description: OCG Apps template
2181       members:
2182       - ocgapp_server_0
2183       - ocgapp_cor_direct_port_0
2184       - ocgapp_oam_protected_port_0
2185       - ocgapp_oam_direct_port_0
2186     ocgapp_04_group:
2187       type: org.openecomp.groups.heat.HeatStack
2188       properties:
2189         heat_file: ../Artifacts/ocgapp_04.yaml
2190         description: OCG Apps template
2191       members:
2192       - ocgapp_cor_direct_port_3
2193       - ocgapp_oam_direct_port_3
2194       - ocgapp_oam_protected_port_3
2195       - ocgapp_server_3
2196     ocgapp_01_volume_group:
2197       type: org.openecomp.groups.heat.HeatStack
2198       properties:
2199         heat_file: ../Artifacts/ocgapp_01_volume.yaml
2200       members:
2201       - ocgapp_volume_0
2202     ocgapp_02_volume_group:
2203       type: org.openecomp.groups.heat.HeatStack
2204       properties:
2205         heat_file: ../Artifacts/ocgapp_02_volume.yaml
2206       members:
2207       - ocgapp_volume_1
2208     ocgapp_03_volume_group:
2209       type: org.openecomp.groups.heat.HeatStack
2210       properties:
2211         heat_file: ../Artifacts/ocgapp_03_volume.yaml
2212       members:
2213       - ocgapp_volume_2
2214     ocgmgr_volume_group:
2215       type: org.openecomp.groups.heat.HeatStack
2216       properties:
2217         heat_file: ../Artifacts/ocgmgr_volume.yaml
2218         description: OCG template for MGR volumes
2219       members:
2220       - ocgmgr_volume_resource_group
2221   outputs:
2222     ocgapp_volume_id_0:
2223       description: the ocgapp volume id 0
2224       value: ocgapp_volume_0
2225     ocgapp_volume_id_1:
2226       description: the ocgapp volume id 1
2227       value: ocgapp_volume_1
2228     ocgapp_volume_id_2:
2229       description: the ocgapp volume id 2
2230       value: ocgapp_volume_2
2231     ocgapp_volume_id_3:
2232       description: the ocgapp volume id 3
2233       value: ocgapp_volume_3
2234     ocgmgr_volume_ids:
2235       description: ocgmgr volume ids
2236       value:
2237         get_attribute:
2238         - ocgmgr_volume_resource_group
2239         - ocgmgr_volume_id_0
2240   policies:
2241     ocg_RSG_policy:
2242       type: org.openecomp.policies.placement.Antilocate
2243       properties:
2244         name:
2245           str_replace:
2246             template: VF_NAME_server_grp_OCG
2247             params:
2248               VF_NAME:
2249                 get_input: vnf_name
2250         container_type: host
2251       targets:
2252       - ocg_RSG_group