031731079b155ecdabae951cc04a61a421bce813
[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     vf_module_id:
12       hidden: false
13       immutable: false
14       annotations:
15         source:
16           type: org.openecomp.annotations.Source
17           properties:
18             vf_module_label:
19             - main
20             source_type: HEAT
21             param_name: vf_module_id
22       type: string
23       description: Unique ID for this VF module inst
24     control_int_net_rpf:
25       hidden: false
26       immutable: false
27       annotations:
28         source:
29           type: org.openecomp.annotations.Source
30           properties:
31             vf_module_label:
32             - main
33             source_type: HEAT
34             param_name: control_int_net_rpf
35       type: string
36       description: Reverse Path Filtering enable or disable for the control virtual network
37     control_int_net_forwarding_mode:
38       hidden: false
39       immutable: false
40       annotations:
41         source:
42           type: org.openecomp.annotations.Source
43           properties:
44             vf_module_label:
45             - main
46             source_type: HEAT
47             param_name: control_int_net_forwarding_mode
48       type: string
49       description: forwarding mode of the control virtual network
50     vnf_name:
51       hidden: false
52       immutable: false
53       annotations:
54         source:
55           type: org.openecomp.annotations.Source
56           properties:
57             vf_module_label:
58             - main
59             source_type: HEAT
60             param_name: vnf_name
61       type: string
62       description: Unique name for this VF instance
63     vdbe_untrusted_ip_1:
64       hidden: false
65       immutable: false
66       annotations:
67         source:
68           type: org.openecomp.annotations.Source
69           properties:
70             vf_module_label:
71             - main
72             source_type: HEAT
73             param_name: vdbe_untrusted_ip_1
74       type: string
75       description: IPV4 address of the secondary vDBE VM on the VAN untrusted network
76     vdbe_aap_untrusted_ip_prefix_len:
77       hidden: false
78       immutable: false
79       annotations:
80         source:
81           type: org.openecomp.annotations.Source
82           properties:
83             vf_module_label:
84             - main
85             source_type: HEAT
86             param_name: vdbe_aap_untrusted_ip_prefix_len
87       type: string
88       description: ip prefix length for the primary vDBE VM on the VAN untrusted network
89     untrusted_num_vn:
90       hidden: false
91       immutable: false
92       annotations:
93         source:
94           type: org.openecomp.annotations.Source
95           properties:
96             vf_module_label:
97             - main
98             source_type: HEAT
99             param_name: untrusted_num_vn
100       type: float
101       description: Number of vDBE subinterface virtual Networks
102       constraints:
103       - in_range:
104         - 1
105         - 77
106     aap_address_mode:
107       hidden: false
108       immutable: false
109       annotations:
110         source:
111           type: org.openecomp.annotations.Source
112           properties:
113             vf_module_label:
114             - main
115             source_type: HEAT
116             param_name: aap_address_mode
117       type: string
118       description: Address mode for the vDBE cluster IP
119     control_int_net_shared:
120       hidden: false
121       immutable: false
122       annotations:
123         source:
124           type: org.openecomp.annotations.Source
125           properties:
126             vf_module_label:
127             - main
128             source_type: HEAT
129             param_name: control_int_net_shared
130       type: boolean
131       description: control virtual network shared
132     vdbe_untrusted_v6_ip_1:
133       hidden: false
134       immutable: false
135       annotations:
136         source:
137           type: org.openecomp.annotations.Source
138           properties:
139             vf_module_label:
140             - main
141             source_type: HEAT
142             param_name: vdbe_untrusted_v6_ip_1
143       type: string
144       description: IPV6 address of the secondary vDBE VM on the VAN untrusted network
145     vdbe_untrusted_vmac_address:
146       hidden: false
147       immutable: false
148       annotations:
149         source:
150           type: org.openecomp.annotations.Source
151           properties:
152             vf_module_label:
153             - main
154             source_type: HEAT
155             param_name: vdbe_untrusted_vmac_address
156       type: string
157       description: Virtual MAC of the primary vDBE VM on the VAN untrusted network
158     control_int_net_flood_unknown_unicast:
159       hidden: false
160       immutable: false
161       annotations:
162         source:
163           type: org.openecomp.annotations.Source
164           properties:
165             vf_module_label:
166             - main
167             source_type: HEAT
168             param_name: control_int_net_flood_unknown_unicast
169       type: boolean
170       description: forwarding mode of the control virtual network
171     vdbe_aap_sec_untrusted_ip_prefix:
172       hidden: false
173       immutable: false
174       annotations:
175         source:
176           type: org.openecomp.annotations.Source
177           properties:
178             vf_module_label:
179             - main
180             source_type: HEAT
181             param_name: vdbe_aap_sec_untrusted_ip_prefix
182       type: string
183       description: ip prefix for secondary vDBE VM aap on the VAN untrusted network
184     vnf_id:
185       hidden: false
186       immutable: false
187       annotations:
188         source:
189           type: org.openecomp.annotations.Source
190           properties:
191             vf_module_label:
192             - main
193             source_type: HEAT
194             param_name: vnf_id
195       type: string
196       description: Unique ID for this VF inst
197     vdbe_name_1:
198       hidden: false
199       immutable: false
200       annotations:
201         source:
202           type: org.openecomp.annotations.Source
203           properties:
204             vf_module_label:
205             - main
206             source_type: HEAT
207             param_name: vdbe_name_1
208       type: string
209       description: VM Name for this vdbe node 1
210     availability_zone_1:
211       hidden: false
212       immutable: false
213       annotations:
214         source:
215           type: org.openecomp.annotations.Source
216           properties:
217             vf_module_label:
218             - main
219             source_type: HEAT
220             param_name: availability_zone_1
221       type: string
222       description: The availability zone of secondary node1 vDBE vm in the local HA pair.
223     untrusted_vn_networks:
224       hidden: false
225       immutable: false
226       annotations:
227         source:
228           type: org.openecomp.annotations.Source
229           properties:
230             vf_module_label:
231             - main
232             source_type: HEAT
233             param_name: untrusted_vn_networks
234       type: list
235       description: List of subinterface virtual networks
236       entry_schema:
237         type: string
238     vdbe_image_name:
239       hidden: false
240       immutable: false
241       annotations:
242         source:
243           type: org.openecomp.annotations.Source
244           properties:
245             vf_module_label:
246             - main
247             source_type: HEAT
248             param_name: vdbe_image_name
249       type: string
250       description: Image to use for vDBE
251     oam_net_name:
252       hidden: false
253       immutable: false
254       annotations:
255         source:
256           type: org.openecomp.annotations.Source
257           properties:
258             vf_module_label:
259             - main
260             source_type: HEAT
261             param_name: oam_net_name
262       type: string
263       description: Name of NSDNet network from which the management IP addresses will be allocated
264     vdbe_aap_sec_untrusted_ip_prefix_len:
265       hidden: false
266       immutable: false
267       annotations:
268         source:
269           type: org.openecomp.annotations.Source
270           properties:
271             vf_module_label:
272             - main
273             source_type: HEAT
274             param_name: vdbe_aap_sec_untrusted_ip_prefix_len
275       type: string
276       description: ip prefix length for the secondary DBE VM aap on the VAN untrusted network
277     vdbe_aap_untrusted_v6_ip_prefix:
278       hidden: false
279       immutable: false
280       annotations:
281         source:
282           type: org.openecomp.annotations.Source
283           properties:
284             vf_module_label:
285             - main
286             source_type: HEAT
287             param_name: vdbe_aap_untrusted_v6_ip_prefix
288       type: string
289       description: ipv6 prefix for the primary vDBE VM on the VAN untrusted network
290     vdbe_aap_untrusted_v6_ip_prefix_len:
291       hidden: false
292       immutable: false
293       annotations:
294         source:
295           type: org.openecomp.annotations.Source
296           properties:
297             vf_module_label:
298             - main
299             source_type: HEAT
300             param_name: vdbe_aap_untrusted_v6_ip_prefix_len
301       type: string
302       description: ipv6 prefix length for the primary vDBE VM on the VAN untrusted network
303     untrusted_vlan_tags:
304       hidden: false
305       immutable: false
306       annotations:
307         source:
308           type: org.openecomp.annotations.Source
309           properties:
310             vf_module_label:
311             - main
312             source_type: HEAT
313             param_name: untrusted_vlan_tags
314       type: list
315       description: List of subinterface vlan tags
316       entry_schema:
317         type: string
318     untr_network_collection_function:
319       type: string
320       required: true
321     untr_vfc_instance_group_function:
322       type: string
323       required: true
324     vdbe_flavor_name:
325       hidden: false
326       immutable: false
327       annotations:
328         source:
329           type: org.openecomp.annotations.Source
330           properties:
331             vf_module_label:
332             - main
333             source_type: HEAT
334             param_name: vdbe_flavor_name
335       type: string
336       description: Flavor to use for vDBE
337     counter:
338       hidden: false
339       immutable: false
340       annotations:
341         source:
342           type: org.openecomp.annotations.Source
343           properties:
344             vf_module_label:
345             - main
346             source_type: HEAT
347             param_name: counter
348       type: float
349       description: Counter.
350     vdbe_hw_untr_mac_1:
351       hidden: false
352       immutable: false
353       annotations:
354         source:
355           type: org.openecomp.annotations.Source
356           properties:
357             vf_module_label:
358             - main
359             source_type: HEAT
360             param_name: vdbe_hw_untr_mac_1
361       type: string
362       description: Secondary MAC address of the secondary vDBE VM on the VAN untrusted network
363     untrusted_net_name:
364       hidden: false
365       immutable: false
366       annotations:
367         source:
368           type: org.openecomp.annotations.Source
369           properties:
370             vf_module_label:
371             - main
372             source_type: HEAT
373             param_name: untrusted_net_name
374       type: string
375       description: Name of public untrusted network into which this vDBE HA cluster is deployed
376     vdbe_device_name:
377       hidden: false
378       immutable: false
379       annotations:
380         source:
381           type: org.openecomp.annotations.Source
382           properties:
383             vf_module_label:
384             - main
385             source_type: HEAT
386             param_name: vdbe_device_name
387       type: string
388       description: VDBE device Name for this vdbe VNF
389     vdbe_aap_untrusted_ip_prefix:
390       hidden: false
391       immutable: false
392       annotations:
393         source:
394           type: org.openecomp.annotations.Source
395           properties:
396             vf_module_label:
397             - main
398             source_type: HEAT
399             param_name: vdbe_aap_untrusted_ip_prefix
400       type: string
401       description: ip prefix for primary vDBE VM on the VAN untrusted network
402   node_templates:
403     abstract_vdbe_0:
404       type: org.openecomp.resource.abstract.nodes.vdbe
405       directives:
406       - substitutable
407       properties:
408         subinterface_nested_parent_interface:
409         - vdbe_1_untr_port_1
410         subinterface_nested_aap_address_mode:
411         - get_input: aap_address_mode
412         subinterface_nested_vlan_tag_list:
413         - get_input: untrusted_vlan_tags
414         compute_vdbe_availability_zone:
415         - get_input: availability_zone_1
416         subinterface_nested_service_template_filter_count:
417         - get_input: untrusted_num_vn
418         subinterface_nested_aap_untrusted_v6_ip_prefix_len:
419         - get_input: vdbe_aap_untrusted_v6_ip_prefix_len
420         vm_flavor_name:
421           get_input: vdbe_flavor_name
422         subinterface_nested_aap_untrusted_ip_prefix:
423         - get_input: vdbe_aap_untrusted_ip_prefix
424         vm_image_name:
425           get_input: vdbe_image_name
426         subinterface_nested_aap_sec_untrusted_ip_prefix_len:
427         - get_input: vdbe_aap_sec_untrusted_ip_prefix_len
428         subinterface_nested_aap_sec_untrusted_ip_prefix:
429         - get_input: vdbe_aap_sec_untrusted_ip_prefix
430         subinterface_nested_aap_untrusted_v6_ip_prefix:
431         - get_input: vdbe_aap_untrusted_v6_ip_prefix
432         compute_vdbe_metadata:
433         - vf_module_id:
434             get_input: vf_module_id
435           vnf_id:
436             get_input: vnf_id
437           vnf_name:
438             get_input: vnf_name
439         subinterface_nested_mac_address:
440         - get_input: vdbe_hw_untr_mac_1
441         subinterface_nested_ip_address:
442         - get_input: vdbe_untrusted_ip_1
443         subinterface_nested_ip_v6_address:
444         - get_input: vdbe_untrusted_v6_ip_1
445         port_vdbe_untr_port_mac_requirements:
446           mac_count_required:
447             is_required: false
448         port_vdbe_untr_port_subinterface_indicator:
449         - true
450         subinterface_nested_vmac_address:
451         - get_input: vdbe_untrusted_vmac_address
452         subinterface_nested_vn_network_list:
453         - get_input: untrusted_vn_networks
454         port_vdbe_untr_port_name:
455         - str_replace:
456             template: VM_NAMEDBE001p1n004
457             params:
458               DBE:
459                 get_input: vdbe_device_name
460               VM_NAME:
461                 get_input: vdbe_name_1
462         subinterface_nested_aap_untrusted_ip_prefix_len:
463         - get_input: vdbe_aap_untrusted_ip_prefix_len
464         subinterface_nested_counter:
465         - get_property:
466           - SELF
467           - service_template_filter
468           - index_value
469         subinterface_nested_subinterfaces_name_prefix:
470         - str_replace:
471             template: VM_NAMEDBE001p1n004
472             params:
473               DBE:
474                 get_input: vdbe_device_name
475               VM_NAME:
476                 get_input: vdbe_name_1
477         compute_vdbe_name:
478         - get_input: vdbe_name_1
479         port_vdbe_untr_port_ip_requirements:
480         - ip_version: 4
481           ip_count_required:
482             is_required: false
483           floating_ip_count_required:
484             is_required: false
485         service_template_filter:
486           substitute_service_template: Nested_vdbeServiceTemplate.yaml
487           count: 1
488         index_value:
489           get_property:
490           - SELF
491           - service_template_filter
492           - index_value
493     control_int_net:
494       type: org.openecomp.resource.vl.nodes.heat.network.contrailV2.VirtualNetwork
495       properties:
496         network_name:
497           str_replace:
498             template: VNF_NAME_control_net
499             params:
500               VNF_NAME:
501                 get_input: vnf_name
502     abstract_vdbe_1:
503       type: org.openecomp.resource.abstract.nodes.vdbe
504       directives:
505       - substitutable
506       properties:
507         subinterface_nested_parent_interface:
508         - vdbe_2_untr_port_2
509         subinterface_nested_aap_address_mode:
510         - get_input: aap_address_mode
511         subinterface_nested_vlan_tag_list:
512         - get_input: untrusted_vlan_tags
513         compute_vdbe_availability_zone:
514         - get_input: availability_zone_1
515         subinterface_nested_service_template_filter_count:
516         - 5
517         subinterface_nested_aap_untrusted_v6_ip_prefix_len:
518         - get_input: vdbe_aap_untrusted_v6_ip_prefix_len
519         vm_flavor_name:
520           get_input: vdbe_flavor_name
521         subinterface_nested_aap_untrusted_ip_prefix:
522         - get_input: vdbe_aap_untrusted_ip_prefix
523         vm_image_name:
524           get_input: vdbe_image_name
525         subinterface_nested_aap_sec_untrusted_ip_prefix_len:
526         - get_input: vdbe_aap_sec_untrusted_ip_prefix_len
527         subinterface_nested_aap_sec_untrusted_ip_prefix:
528         - get_input: vdbe_aap_sec_untrusted_ip_prefix
529         subinterface_nested_aap_untrusted_v6_ip_prefix:
530         - get_input: vdbe_aap_untrusted_v6_ip_prefix
531         compute_vdbe_metadata:
532         - vf_module_id:
533             get_input: vf_module_id
534           vnf_id:
535             get_input: vnf_id
536           vnf_name:
537             get_input: vnf_name
538         subinterface_nested_mac_address:
539         - get_input: vdbe_hw_untr_mac_1
540         subinterface_nested_ip_address:
541         - get_input: vdbe_untrusted_ip_1
542         subinterface_nested_ip_v6_address:
543         - get_input: vdbe_untrusted_v6_ip_1
544         port_vdbe_untr_port_mac_requirements:
545           mac_count_required:
546             is_required: false
547         port_vdbe_untr_port_subinterface_indicator:
548         - true
549         subinterface_nested_vmac_address:
550         - get_input: vdbe_untrusted_vmac_address
551         subinterface_nested_vn_network_list:
552         - get_input: untrusted_vn_networks
553         port_vdbe_untr_port_name:
554         - str_replace:
555             template: VM_NAMEDBE001p1n004
556             params:
557               DBE:
558                 get_input: vdbe_device_name
559               VM_NAME:
560                 get_input: vdbe_name_1
561         subinterface_nested_aap_untrusted_ip_prefix_len:
562         - get_input: vdbe_aap_untrusted_ip_prefix_len
563         subinterface_nested_counter:
564         - get_input: counter
565         subinterface_nested_subinterfaces_name_prefix:
566         - str_replace:
567             template: VM_NAMEDBE001p1n004
568             params:
569               DBE:
570                 get_input: vdbe_device_name
571               VM_NAME:
572                 get_input: vdbe_name_1
573         compute_vdbe_name:
574         - get_input: vdbe_name_1
575         port_vdbe_untr_port_ip_requirements:
576         - ip_version: 4
577           ip_count_required:
578             is_required: false
579           floating_ip_count_required:
580             is_required: false
581         service_template_filter:
582           substitute_service_template: Nested_vdbeServiceTemplate.yaml
583           count: 1
584         index_value:
585           get_property:
586           - SELF
587           - service_template_filter
588           - index_value
589   groups:
590     main_group:
591       type: org.openecomp.groups.heat.HeatStack
592       properties:
593         heat_file: ../Artifacts/main.yml
594         description: |
595           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
596       members:
597       - control_int_net
598       - abstract_vdbe_0
599       - abstract_vdbe_1
600     untr_group:
601       type: org.openecomp.groups.VfcInstanceGroup
602       properties:
603         vfc_parent_port_role: untr
604         network_collection_function:
605           get_input: untr_network_collection_function
606         vfc_instance_group_function:
607           get_input: untr_vfc_instance_group_function
608         subinterface_role: untr
609       members:
610       - abstract_vdbe_0
611       - abstract_vdbe_1