[SDC-29] Amdocs OnBoard 1707 initial commit.
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / getAttrDynamicParamEmptyMap / expectedoutputfiles / MainServiceTemplate.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: Main
4 imports:
5 - openecomp_heat_index:
6     file: openecomp-heat/_index.yml
7 - GlobalSubstitutionTypes:
8     file: GlobalSubstitutionTypesServiceTemplate.yaml
9 topology_template:
10   inputs:
11     access_cidr:
12       hidden: false
13       immutable: false
14       type: string
15       description: CIDR associated with tag "access".
16       default: 37.9.0.32/27
17       constraints: [
18         ]
19     oam_default_gateway:
20       hidden: false
21       immutable: false
22       type: string
23       description: Default gateway IP address  associated with tag "oam".
24       default: 127.0.0.1
25     int_vlan_id:
26       hidden: false
27       immutable: false
28       type: string
29       description: Optional VLAN associated with the (0th) internal network.
30       default: ''
31       constraints:
32       - pattern: '[0-9]*'
33     v4_ntp_server:
34       hidden: false
35       immutable: false
36       type: string
37       description: |
38         (optional) IPV4 NTP server list.
39         It is passed as a string instead of a CDL because
40         of how it is handled internally.
41       default: 127.0.0.1
42     access_subnet_id:
43       hidden: false
44       immutable: false
45       type: string
46       description: ID of the subnet associated with tag "access".
47       default: 050ad34a-47a3-48a9-9761-12eff354fd4f
48     vnf_name:
49       hidden: false
50       immutable: false
51       type: string
52       description: Unique name for this VNF instance.
53       default: MYvnf_name
54     access_default_gateway:
55       hidden: false
56       immutable: false
57       type: string
58       description: Default gateway IP address  associated with tag "access".
59       default: 37.9.0.62
60     ims_flavor_name:
61       hidden: false
62       immutable: false
63       type: string
64       description: CDL of IMS flavor values.
65       default: LCP-1-4-15x2-4
66       constraints: [
67         ]
68     oam_cidr:
69       hidden: false
70       immutable: false
71       type: string
72       description: CIDR associated with tag "oam".
73       default: 127.0.0.1/27
74       constraints: [
75         ]
76     vm_counts:
77       hidden: false
78       immutable: false
79       type: json
80       description: |
81         Maps VM type tags to the number of pairs of that type.
82       default:
83         oam: '1'
84         ims: '1'
85     oam_oam_ips:
86       hidden: false
87       immutable: false
88       type: list
89       description: List of IP addresses for this VMtype_NETtype combination.
90       default:
91       - 127.0.0.1
92       - 127.0.0.1
93       - 127.0.0.1
94       - 127.0.0.1
95       entry_schema:
96         type: string
97     v6_dns_server:
98       hidden: false
99       immutable: false
100       type: string
101       description: |
102         (optional) IPV6 DNS server list.
103         It is passed as a string instead of a CDL because
104         of how it is handled internally.
105       default: ''
106     v6_ntp_server:
107       hidden: false
108       immutable: false
109       type: string
110       description: |
111         (optional) IPV6 NTP server list.
112         It is passed as a string instead of a CDL because
113         of how it is handled internally.
114       default: ''
115     vnf_id:
116       hidden: false
117       immutable: false
118       type: string
119       description: Unique ID for this VNF instance.
120       default: MYvnf_id
121     lcm_keypair:
122       hidden: false
123       immutable: false
124       type: string
125       description: Keypair used for lifecycle management access.
126       default: ''
127       constraints: [
128         ]
129     oam_management_v6_index:
130       hidden: false
131       immutable: false
132       type: float
133       description: Index to the V6 management IP address.
134       default: 0
135     oam_management_v4_index:
136       hidden: false
137       immutable: false
138       type: float
139       description: Index to the V4 management IP address.
140       default: 1
141     availability_zone_0:
142       hidden: false
143       immutable: false
144       type: string
145       description: Availability zone name.
146       default: zone2
147     availability_zone_1:
148       hidden: false
149       immutable: false
150       type: string
151       description: Availability zone name.
152       default: zone1
153     OS::stack_name:
154       type: string
155       required: false
156     oam_subnet_id:
157       hidden: false
158       immutable: false
159       type: string
160       description: ID of the subnet associated with tag "oam".
161       default: 37d36cb0-54b7-4fbf-bc45-4879da03a0db
162     oam_image_name:
163       hidden: false
164       immutable: false
165       type: string
166       description: Image for this VMtype.
167       default: drew34.20
168     net_types:
169       hidden: false
170       immutable: false
171       type: list
172       description: CDL of subnet tags.
173       default:
174       - oam
175       - access
176       entry_schema:
177         type: string
178     ssh_access_key:
179       hidden: false
180       immutable: false
181       type: string
182       description: |
183         Optional SSH public key value for lifecycle management
184         administrative access.
185       default: ''
186     ims_access_ips:
187       hidden: false
188       immutable: false
189       type: list
190       description: List of IP addresses for this VMtype_NETtype combination.
191       default:
192       - 37.9.0.36
193       - 37.9.0.61
194       entry_schema:
195         type: string
196     v4_enum_server:
197       hidden: false
198       immutable: false
199       type: string
200       description: |
201         (optional) IPV4 ENUM server list.
202         It is passed as a string instead of a CDL because
203         of how it is handled internally.
204       default: ''
205     oam_flavor_name:
206       hidden: false
207       immutable: false
208       type: string
209       description: CDL of OAM flavor values.
210       default: LCP-2-4-25x2-4
211       constraints: [
212         ]
213     vnf_module_id:
214       hidden: false
215       immutable: false
216       type: string
217       description: Unique ID for this VNF Module instance.
218       default: MYvnf_module_id
219     access_net_id:
220       hidden: false
221       immutable: false
222       type: string
223       description: ID of the network associated with tag "access".
224       default: 870909b5-d933-4a95-9aff-df38523c37ed
225       constraints: [
226         ]
227     backup_file:
228       hidden: false
229       immutable: false
230       type: string
231       description: |
232         <cURL path>/<backup file>
233         This is only used for restore (aka "disaster recovery").
234         The value only needs to go to the OAM pair.
235         Note that there is a 255 character limit on this value.
236       default: ''
237     v6_enum_server:
238       hidden: false
239       immutable: false
240       type: string
241       description: |
242         (optional) IPV6 ENUM server list.
243         It is passed as a string instead of a CDL because
244         of how it is handled internally.
245       default: ''
246     ims_names:
247       hidden: false
248       immutable: false
249       type: list
250       description: CDL of IMS VM names.
251       default:
252       - ims0
253       - ims1
254       entry_schema:
255         type: string
256     default_action:
257       hidden: false
258       immutable: false
259       type: string
260       description: |
261         Default action for all VMs. This may be overridden for
262         specific VM groups, pairs or VMs via the ENV file.
263       default: install
264       constraints:
265       - valid_values:
266         - install
267         - recreate
268         - scale-in
269         - scale-out
270         - heal
271         - update
272     v4_dns_server:
273       hidden: false
274       immutable: false
275       type: string
276       description: |
277         (optional) IPV4 DNS server list.
278         It is passed as a string instead of a CDL because
279         of how it is handled internally.
280       default: 127.0.0.1/.,127.0.0.1/.
281     oam_management_v6_source:
282       hidden: false
283       immutable: false
284       type: string
285       description: Name of the OAM IP parameter to use.
286       default: ''
287     oam_net_id:
288       hidden: false
289       immutable: false
290       type: string
291       description: ID of the network associated with tag "oam".
292       default: 7410cc1d-c421-41b3-adef-d46cf79cb8d9
293       constraints: [
294         ]
295     oam_management_v4_source:
296       hidden: false
297       immutable: false
298       type: string
299       description: Name of the OAM IP parameter to use.
300       default: oam_oam_ips
301     ims_image_name:
302       hidden: false
303       immutable: false
304       type: string
305       description: Image for this VMtype.
306       default: drew34.20
307     install_config:
308       hidden: false
309       immutable: false
310       type: string
311       description: JSON formatted string of install config values.
312       default: ' "application_name": "5450_isc", "license_reference": "test_license",
313         "default_remote_dns_domain": "./default", "default_remote_enum_domain": "e164.arpa/default",
314         "local_dns_domain": "drew2.lucentlab.com", "local_enum_domain": "", "naming_delimiter":
315         "-", "naming_parsing": "flexible", "naming_type": "flexible3", "other_remote_dns_domain":
316         "", "other_remote_enum_domain": "", "remote_query_only": "", "snmp_community":
317         "public", "subnet_info": { "INTERNALnet0": { "interface_label": "int0", "redundancy_mode":
318         "iipm", "vlan_tag": "" }, "INTERNALnet1": { "interface_label": "int1", "redundancy_mode":
319         "iipm", "vlan_tag": "" }, "oam": { "interface_label": "oam2", "redundancy_mode":
320         "eipm_arpndp", "vlan_tag": "", "connectivity_address": "", "detect_multiplier":
321         "3", "desired_minimum_tx_interval": "300", "required_minimum_rx_interval":
322         "300" }, "access": { "interface_label": "acc4", "redundancy_mode": "eipm_arpndp",
323         "vlan_tag": "", "connectivity_address": "", "detect_multiplier": "3", "desired_minimum_tx_interval":
324         "300", "required_minimum_rx_interval": "300" } }, "system_name": "isc01",
325         "system_prefix": "isc01", "time_zone": "UTC", "use_sbpr": "yes" '
326     cloud_name_delimiter:
327       hidden: false
328       immutable: false
329       type: string
330       description: Separator for cloud resource naming.
331       default: '-'
332     oam_names:
333       hidden: false
334       immutable: false
335       type: list
336       description: CDL of OAM VM names.
337       default:
338       - oam0
339       - oam1
340       entry_schema:
341         type: string
342     vnf_module_name:
343       hidden: false
344       immutable: false
345       type: string
346       description: Unique name for this VNF module instance.
347       default: base_module
348     vm_info:
349       hidden: false
350       immutable: false
351       type: json
352       description: Provides keys into type-specific parameters and vnic info.
353       default: {
354         }
355   node_templates:
356     OAM_RRG:
357       type: org.openecomp.resource.abstract.nodes.heat.LCP-PairGroup.template
358       directives:
359       - substitutable
360       properties:
361         stack:
362           get_input: OS::stack_name
363         role: oam
364         ext_net_info:
365           get_attribute:
366           - FORMATXLATE
367           - ext_net_info
368         sec_group:
369           get_attribute:
370           - NOKIA-LCP-Base
371           - OpenSec
372         usage_info:
373           get_attribute:
374           - FORMATXLATE
375           - usage_info
376         group_index: '0'
377         config_info:
378           '0':
379             vnic_info:
380               '0':
381               - binding_type: direct
382                 count: '0'
383                 subnet_count: '1'
384                 allowed_subnets:
385                 - INTERNALnet0
386               - subnet: INTERNALnet0
387                 label: connectivity_ip;subnet=INTERNALnet0
388               '1':
389               - binding_type: direct
390                 count: '0'
391                 subnet_count: '1'
392                 allowed_subnets:
393                 - INTERNALnet1
394               - subnet: INTERNALnet1
395                 label: connectivity_ip;subnet=INTERNALnet1
396               '2':
397               - binding_type: normal
398                 count: '3'
399                 subnet_count: '1'
400                 allowed_subnets:
401                 - oam
402               - subnet: oam
403                 label: servicetype=cnfg-0;float;nitype=default;subnet=oam
404               - subnet: oam
405                 label: servicetype=mi-0;float;nitype=default;subnet=oam
406               - subnet: oam
407                 label: servicetype=mi-0;fixed;nitype=default;subnet=oam
408           v6_static_routes: '{}'
409           '1':
410             vnic_info:
411               '0':
412               - binding_type: direct
413                 count: '0'
414                 subnet_count: '1'
415                 allowed_subnets:
416                 - INTERNALnet0
417               - subnet: INTERNALnet0
418                 label: connectivity_ip;subnet=INTERNALnet0
419               '1':
420               - binding_type: direct
421                 count: '0'
422                 subnet_count: '1'
423                 allowed_subnets:
424                 - INTERNALnet1
425               - subnet: INTERNALnet1
426                 label: connectivity_ip;subnet=INTERNALnet1
427               '2':
428               - binding_type: normal
429                 count: '1'
430                 subnet_count: '1'
431                 allowed_subnets:
432                 - oam
433               - subnet: oam
434                 label: servicetype=mi-0;fixed;nitype=default;subnet=oam
435           v6_default_gateway: ''
436           vnic_count: 3
437           v4_static_routes: '{}'
438           v4_default_gateway: oam
439           poolinfo: '["mi-0", "cnfg-0", "sns-0"]'
440         ssh_private_key:
441           get_attribute:
442           - NOKIA-LCP-Base
443           - PrivateKey
444         service_template_filter:
445           substitute_service_template: LCP-PairGroup.templateServiceTemplate.yaml
446         default_name_base:
447           str_replace:
448             template: |
449               {"": "oam$delimiter0$delimiter"}
450             params:
451               $delimiter:
452                 get_attribute:
453                 - FORMATXLATE
454                 - usage_info
455                 - cloud_name_delimiter
456         int_net_count: 2
457         lcm_keypair:
458           get_attribute:
459           - FORMATXLATE
460           - lcm_keypair
461         current_group_count:
462           get_attribute:
463           - FORMATXLATE
464           - vm_counts
465           - oam
466         net_info_str:
467           get_attribute:
468           - NOKIA-LCP-Base
469           - NetInfoStr
470         total_pair_count:
471           get_attribute:
472           - NOKIA-LCP-Base
473           - TotalPairCount
474         ssh_access_key:
475           get_attribute:
476           - FORMATXLATE
477           - ssh_access_key
478         int_net_info:
479           get_attribute:
480           - NOKIA-LCP-Base
481           - IntNetInfo
482         backup_file:
483           get_attribute:
484           - FORMATXLATE
485           - backup_file
486         default_action:
487           get_attribute:
488           - FORMATXLATE
489           - default_action
490         ssh_public_key:
491           get_attribute:
492           - NOKIA-LCP-Base
493           - PublicKey
494         name_delimiter:
495           get_attribute:
496           - FORMATXLATE
497           - usage_info
498           - cloud_name_delimiter
499         group_id: '0'
500         install_config:
501           get_attribute:
502           - FORMATXLATE
503           - install_config
504         storage_size: 68
505         group_tag: oam
506       requirements:
507       - dependency:
508           capability: tosca.capabilities.Node
509           node: NOKIA-LCP-Base
510           relationship: tosca.relationships.DependsOn
511     FORMATXLATE:
512       type: org.openecomp.resource.abstract.nodes.heat.LCP-OPENECOMP.template
513       directives:
514       - substitutable
515       properties:
516         net_ids:
517           ? ''
518           : null
519           access:
520             get_input: access_net_id
521           oam:
522             get_input: oam_net_id
523         flavors:
524           ? ''
525           : ''
526           oam:
527             get_input: oam_flavor_name
528           ims:
529             get_input: ims_flavor_name
530         v4_ntp_server:
531           get_input: v4_ntp_server
532         vnf_name:
533           get_input: vnf_name
534         vmtype_list:
535         - oam
536         - ims
537         name_lists:
538           ? ''
539           : [
540             ]
541           oam:
542             get_input: oam_names
543           ims:
544             get_input: ims_names
545         service_template_filter:
546           substitute_service_template: LCP-OPENECOMP.templateServiceTemplate.yaml
547         vm_counts:
548           get_input: vm_counts
549         v6_dns_server:
550           get_input: v6_dns_server
551         v6_ntp_server:
552           get_input: v6_ntp_server
553         vnf_id:
554           get_input: vnf_id
555         lcm_keypair:
556           get_input: lcm_keypair
557         subnet_ids:
558           ? ''
559           : null
560           access:
561             get_input: access_subnet_id
562           oam:
563             get_input: oam_subnet_id
564         cidrs:
565           ? ''
566           : null
567           access:
568             get_input: access_cidr
569           oam:
570             get_input: oam_cidr
571         default_gateways:
572           ? ''
573           : null
574           access:
575             get_input: access_default_gateway
576           oam:
577             get_input: oam_default_gateway
578         net_types:
579           get_input: net_types
580         ssh_access_key:
581           get_input: ssh_access_key
582         images:
583           ? ''
584           : ''
585           oam:
586             get_input: oam_image_name
587           ims:
588             get_input: ims_image_name
589         v4_enum_server:
590           get_input: v4_enum_server
591         availability_zones:
592         - get_input: availability_zone_0
593         - get_input: availability_zone_1
594         ip_lists:
595           ? ''
596           : [
597             ]
598           ims_access_ips:
599             get_input: ims_access_ips
600           oam_oam_ips:
601             get_input: oam_oam_ips
602         vnf_module_id:
603           get_input: vnf_module_id
604         backup_file:
605           get_input: backup_file
606         v6_enum_server:
607           get_input: v6_enum_server
608         default_action:
609           get_input: default_action
610         v4_dns_server:
611           get_input: v4_dns_server
612         install_config:
613           get_input: install_config
614         cloud_name_delimiter:
615           get_input: cloud_name_delimiter
616         vnf_module_name:
617           get_input: vnf_module_name
618         vm_info:
619           get_input: vm_info
620         vmtype_count: 2
621     NOKIA-LCP-Base:
622       type: org.openecomp.resource.abstract.nodes.heat.LCP-Base.template
623       directives:
624       - substitutable
625       properties:
626         default_prefix:
627           str_replace:
628             template: |
629               {"": "$stk$delimiter"}
630             params:
631               $stk:
632                 get_input: OS::stack_name
633               $delimiter:
634                 get_attribute:
635                 - FORMATXLATE
636                 - usage_info
637                 - cloud_name_delimiter
638         total_vm_pairs:
639           get_attribute:
640           - FORMATXLATE
641           - total_vm_pairs
642         service_template_filter:
643           substitute_service_template: LCP-Base.templateServiceTemplate.yaml
644         ext_net_list:
645         - oam
646         - access
647         int_net_count: 2
648         ext_net_info:
649           get_attribute:
650           - FORMATXLATE
651           - ext_net_info
652       requirements:
653       - dependency:
654           capability: tosca.capabilities.Node
655           node: FORMATXLATE
656           relationship: tosca.relationships.DependsOn
657     IMS_RRG:
658       type: org.openecomp.resource.abstract.nodes.heat.LCP-PairGroup.template
659       directives:
660       - substitutable
661       properties:
662         total_pair_count:
663           get_attribute:
664           - NOKIA-LCP-Base
665           - TotalPairCount
666         ssh_access_key:
667           get_attribute:
668           - FORMATXLATE
669           - ssh_access_key
670         stack:
671           get_input: OS::stack_name
672         int_net_info:
673           get_attribute:
674           - NOKIA-LCP-Base
675           - IntNetInfo
676         ext_net_info:
677           get_attribute:
678           - FORMATXLATE
679           - ext_net_info
680         sec_group:
681           get_attribute:
682           - NOKIA-LCP-Base
683           - OpenSec
684         usage_info:
685           get_attribute:
686           - FORMATXLATE
687           - usage_info
688         group_index:
689           get_property:
690           - SELF
691           - service_template_filter
692           - index_value
693         config_info:
694           '0':
695             vnic_info:
696               '0':
697               - binding_type: normal
698                 count: '0'
699                 subnet_count: '1'
700                 allowed_subnets:
701                 - INTERNALnet0
702               - subnet: INTERNALnet0
703                 label: connectivity_ip;subnet=INTERNALnet0
704               '1':
705               - binding_type: normal
706                 count: '0'
707                 subnet_count: '1'
708                 allowed_subnets:
709                 - INTERNALnet1
710               - subnet: INTERNALnet1
711                 label: connectivity_ip;subnet=INTERNALnet1
712               '2':
713               - binding_type: normal
714                 count: '1'
715                 subnet_count: '1'
716                 allowed_subnets:
717                 - access
718               - subnet: access
719                 label: servicetype=ims-0;float;nitype=published;subnet=access
720           v6_static_routes: '{}'
721           '1':
722             vnic_info:
723               '0':
724               - binding_type: normal
725                 count: '0'
726                 subnet_count: '1'
727                 allowed_subnets:
728                 - INTERNALnet0
729               - subnet: INTERNALnet0
730                 label: connectivity_ip;subnet=INTERNALnet0
731               '1':
732               - binding_type: normal
733                 count: '0'
734                 subnet_count: '1'
735                 allowed_subnets:
736                 - INTERNALnet1
737               - subnet: INTERNALnet1
738                 label: connectivity_ip;subnet=INTERNALnet1
739               '2':
740               - binding_type: normal
741                 count: '1'
742                 subnet_count: '1'
743                 allowed_subnets:
744                 - access
745               - subnet: access
746                 label: servicetype=ims-1;float;nitype=published;subnet=access
747           v6_default_gateway: ''
748           vnic_count: 3
749           v4_static_routes: '{ "ims-0": {"subnet": "access", "dest_subnet": "2.2.2.0",
750             "mask": "255.255.255.0"}, "ims-1": {"subnet": "access", "dest_subnet":
751             "2.2.2.0", "mask": "255.255.255.0"} }'
752           v4_default_gateway: access
753           poolinfo: '["ims-0", "ims-1", "gos-0"]'
754         ssh_private_key:
755           get_attribute:
756           - NOKIA-LCP-Base
757           - PrivateKey
758         default_action:
759           get_attribute:
760           - FORMATXLATE
761           - default_action
762         ssh_public_key:
763           get_attribute:
764           - NOKIA-LCP-Base
765           - PublicKey
766         name_delimiter:
767           get_attribute:
768           - FORMATXLATE
769           - usage_info
770           - cloud_name_delimiter
771         service_template_filter:
772           substitute_service_template: LCP-PairGroup.templateServiceTemplate.yaml
773           count:
774             get_attribute:
775             - FORMATXLATE
776             - vm_counts
777             - ims
778           mandatory: false
779         default_name_base:
780           str_replace:
781             template:
782               concat:
783               - '{"": "ims$delimiter'
784               - get_property:
785                 - SELF
786                 - service_template_filter
787                 - index_value
788               - |
789                 $delimiter"}
790             params:
791               $delimiter:
792                 get_attribute:
793                 - FORMATXLATE
794                 - usage_info
795                 - cloud_name_delimiter
796         int_net_count: 2
797         group_id: '1'
798         install_config:
799           get_attribute:
800           - FORMATXLATE
801           - install_config
802         lcm_keypair:
803           get_attribute:
804           - FORMATXLATE
805           - lcm_keypair
806         current_group_count:
807           get_attribute:
808           - FORMATXLATE
809           - vm_counts
810           - ims
811         storage_size: 4
812         group_tag: ims
813         net_info_str:
814           get_attribute:
815           - NOKIA-LCP-Base
816           - NetInfoStr
817       requirements:
818       - dependency:
819           capability: tosca.capabilities.Node
820           node: NOKIA-LCP-Base
821           relationship: tosca.relationships.DependsOn
822   groups:
823     base_mso_group:
824       type: org.openecomp.groups.heat.HeatStack
825       properties:
826         heat_file: ../Artifacts/base_mso.yml
827         description: |
828           Example HOT file illustrating elasticity groups.
829       members:
830       - OAM_RRG
831       - FORMATXLATE
832       - NOKIA-LCP-Base
833       - IMS_RRG
834   outputs:
835     oam_management_v4_address:
836       description: IPV4 of the active MI service.
837       value:
838         get_input:
839         - get_input: oam_management_v4_source
840         - get_input: oam_management_v4_index
841     internal_net_info:
842       description: |
843         Internal network IDs, CIDR etc. for use by modular additions to
844         this stack.
845       value:
846         get_attribute:
847         - NOKIA-LCP-Base
848         - IntNetInfo
849     oam_management_v6_address:
850       description: IPV6 of the active MI service.
851       value:
852         get_input:
853         - get_input: oam_management_v6_source
854         - get_input: oam_management_v6_index