4744837987636363734cfbbb2ae1219f88623002
[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 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     IMS_RRG:
512       type: org.openecomp.resource.abstract.nodes.heat.LCP-PairGroup.template
513       directives:
514       - substitutable
515       properties:
516         total_pair_count:
517           get_attribute:
518           - NOKIA-LCP-Base
519           - TotalPairCount
520         ssh_access_key:
521           get_attribute:
522           - FORMATXLATE
523           - ssh_access_key
524         stack:
525           get_input: OS::stack_name
526         int_net_info:
527           get_attribute:
528           - NOKIA-LCP-Base
529           - IntNetInfo
530         ext_net_info:
531           get_attribute:
532           - FORMATXLATE
533           - ext_net_info
534         sec_group:
535           get_attribute:
536           - NOKIA-LCP-Base
537           - OpenSec
538         usage_info:
539           get_attribute:
540           - FORMATXLATE
541           - usage_info
542         group_index:
543           get_property:
544           - SELF
545           - service_template_filter
546           - index_value
547         config_info:
548           '0':
549             vnic_info:
550               '0':
551               - binding_type: normal
552                 count: '0'
553                 subnet_count: '1'
554                 allowed_subnets:
555                 - INTERNALnet0
556               - subnet: INTERNALnet0
557                 label: connectivity_ip;subnet=INTERNALnet0
558               '1':
559               - binding_type: normal
560                 count: '0'
561                 subnet_count: '1'
562                 allowed_subnets:
563                 - INTERNALnet1
564               - subnet: INTERNALnet1
565                 label: connectivity_ip;subnet=INTERNALnet1
566               '2':
567               - binding_type: normal
568                 count: '1'
569                 subnet_count: '1'
570                 allowed_subnets:
571                 - access
572               - subnet: access
573                 label: servicetype=ims-0;float;nitype=published;subnet=access
574           v6_static_routes: '{}'
575           '1':
576             vnic_info:
577               '0':
578               - binding_type: normal
579                 count: '0'
580                 subnet_count: '1'
581                 allowed_subnets:
582                 - INTERNALnet0
583               - subnet: INTERNALnet0
584                 label: connectivity_ip;subnet=INTERNALnet0
585               '1':
586               - binding_type: normal
587                 count: '0'
588                 subnet_count: '1'
589                 allowed_subnets:
590                 - INTERNALnet1
591               - subnet: INTERNALnet1
592                 label: connectivity_ip;subnet=INTERNALnet1
593               '2':
594               - binding_type: normal
595                 count: '1'
596                 subnet_count: '1'
597                 allowed_subnets:
598                 - access
599               - subnet: access
600                 label: servicetype=ims-1;float;nitype=published;subnet=access
601           v6_default_gateway: ''
602           vnic_count: 3
603           v4_static_routes: '{ "ims-0": {"subnet": "access", "dest_subnet": "2.2.2.0",
604             "mask": "255.255.255.0"}, "ims-1": {"subnet": "access", "dest_subnet":
605             "2.2.2.0", "mask": "255.255.255.0"} }'
606           v4_default_gateway: access
607           poolinfo: '["ims-0", "ims-1", "gos-0"]'
608         ssh_private_key:
609           get_attribute:
610           - NOKIA-LCP-Base
611           - PrivateKey
612         default_action:
613           get_attribute:
614           - FORMATXLATE
615           - default_action
616         ssh_public_key:
617           get_attribute:
618           - NOKIA-LCP-Base
619           - PublicKey
620         name_delimiter:
621           get_attribute:
622           - FORMATXLATE
623           - usage_info
624           - cloud_name_delimiter
625         service_template_filter:
626           substitute_service_template: LCP-PairGroup.templateServiceTemplate.yaml
627           count:
628             get_attribute:
629             - FORMATXLATE
630             - vm_counts
631             - ims
632           mandatory: false
633         default_name_base:
634           str_replace:
635             template:
636               concat:
637               - '{"": "ims$delimiter'
638               - get_property:
639                 - SELF
640                 - service_template_filter
641                 - index_value
642               - |
643                 $delimiter"}
644             params:
645               $delimiter:
646                 get_attribute:
647                 - FORMATXLATE
648                 - usage_info
649                 - cloud_name_delimiter
650         int_net_count: 2
651         group_id: '1'
652         install_config:
653           get_attribute:
654           - FORMATXLATE
655           - install_config
656         lcm_keypair:
657           get_attribute:
658           - FORMATXLATE
659           - lcm_keypair
660         current_group_count:
661           get_attribute:
662           - FORMATXLATE
663           - vm_counts
664           - ims
665         storage_size: 4
666         group_tag: ims
667         net_info_str:
668           get_attribute:
669           - NOKIA-LCP-Base
670           - NetInfoStr
671       requirements:
672       - dependency:
673           capability: tosca.capabilities.Node
674           node: NOKIA-LCP-Base
675           relationship: tosca.relationships.DependsOn
676   groups:
677     base_mso_group:
678       type: org.openecomp.groups.heat.HeatStack
679       properties:
680         heat_file: ../Artifacts/base_mso.yml
681         description: |
682           Example HOT file illustrating elasticity groups.
683       members:
684       - OAM_RRG
685       - IMS_RRG
686   outputs:
687     oam_management_v4_address:
688       description: IPV4 of the active MI service.
689       value:
690         get_input:
691         - get_input: oam_management_v4_source
692         - get_input: oam_management_v4_index
693     internal_net_info:
694       description: |
695         Internal network IDs, CIDR etc. for use by modular additions to
696         this stack.
697       value:
698         get_attribute:
699         - NOKIA-LCP-Base
700         - IntNetInfo
701     oam_management_v6_address:
702       description: IPV6 of the active MI service.
703       value:
704         get_input:
705         - get_input: oam_management_v6_source
706         - get_input: oam_management_v6_index