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