1d4530863acf9221732682a8c43928346a9629c0
[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     control_int_net_rpf:
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: control_int_net_rpf
22       type: string
23       description: Reverse Path Filtering enable or disable for the control virtual network
24     control_int_net_forwarding_mode:
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_forwarding_mode
35       type: string
36       description: forwarding mode of the control virtual network
37     vnf_name_1:
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: vnf_name_1
48       type: string
49       description: Unique name for this VF instance
50     vnf_name_2:
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_2
61       type: string
62       description: Unique name for this VF instance
63     vnf_name:
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: vnf_name
74       type: string
75       description: Unique name for this VF instance
76     vdbe_untrusted_ip_1:
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_untrusted_ip_1
87       type: string
88       description: IPV4 address of the secondary vDBE VM on the VAN untrusted network
89     vdbe_aap_untrusted_ip_prefix_len:
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: vdbe_aap_untrusted_ip_prefix_len
100       type: string
101       description: ip prefix length for the primary vDBE VM on the VAN untrusted network
102     vnf_id_1:
103       hidden: false
104       immutable: false
105       annotations:
106         source:
107           type: org.openecomp.annotations.Source
108           properties:
109             vf_module_label:
110             - main
111             source_type: HEAT
112             param_name: vnf_id_1
113       type: string
114       description: Unique ID for this VF inst
115     vnf_id_2:
116       hidden: false
117       immutable: false
118       annotations:
119         source:
120           type: org.openecomp.annotations.Source
121           properties:
122             vf_module_label:
123             - main
124             source_type: HEAT
125             param_name: vnf_id_2
126       type: string
127       description: Unique ID for this VF inst
128     untrusted_num_vn:
129       hidden: false
130       immutable: false
131       annotations:
132         source:
133           type: org.openecomp.annotations.Source
134           properties:
135             vf_module_label:
136             - main
137             source_type: HEAT
138             param_name: untrusted_num_vn
139       type: float
140       description: Number of vDBE subinterface virtual Networks
141       constraints:
142       - in_range:
143         - 1
144         - 77
145     aap_address_mode:
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: aap_address_mode
156       type: string
157       description: Address mode for the vDBE cluster IP
158     control_int_net_shared:
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_shared
169       type: boolean
170       description: control virtual network shared
171     vdbe_untrusted_v6_ip_1:
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_untrusted_v6_ip_1
182       type: string
183       description: IPV6 address of the secondary vDBE VM on the VAN untrusted network
184     vdbe_untrusted_vmac_address:
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: vdbe_untrusted_vmac_address
195       type: string
196       description: Virtual MAC of the primary vDBE VM on the VAN untrusted network
197     control_int_net_flood_unknown_unicast:
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: control_int_net_flood_unknown_unicast
208       type: boolean
209       description: forwarding mode of the control virtual network
210     vdbe_aap_sec_untrusted_ip_prefix:
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: vdbe_aap_sec_untrusted_ip_prefix
221       type: string
222       description: ip prefix for secondary vDBE VM aap on the VAN untrusted network
223     vdbe_name_1:
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: vdbe_name_1
234       type: string
235       description: VM Name for this vdbe node 1
236     availability_zone_1:
237       hidden: false
238       immutable: false
239       annotations:
240         source:
241           type: org.openecomp.annotations.Source
242           properties:
243             vf_module_label:
244             - main
245             source_type: HEAT
246             param_name: availability_zone_1
247       type: string
248       description: The availability zone of secondary node1 vDBE vm in the local HA pair.
249     availability_zone_2:
250       hidden: false
251       immutable: false
252       annotations:
253         source:
254           type: org.openecomp.annotations.Source
255           properties:
256             vf_module_label:
257             - main
258             source_type: HEAT
259             param_name: availability_zone_2
260       type: string
261       description: The availability zone of secondary node2 vDBE vm in the local HA pair.
262     untrusted_vn_networks:
263       hidden: false
264       immutable: false
265       annotations:
266         source:
267           type: org.openecomp.annotations.Source
268           properties:
269             vf_module_label:
270             - main
271             source_type: HEAT
272             param_name: untrusted_vn_networks
273       type: list
274       description: List of subinterface virtual networks
275       entry_schema:
276         type: string
277     vdbe_image_name:
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_image_name
288       type: string
289       description: Image to use for vDBE
290     oam_net_name:
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: oam_net_name
301       type: string
302       description: Name of NSDNet network from which the management IP addresses will be allocated
303     vdbe_name_2:
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: vdbe_name_2
314       type: string
315       description: VM Name for this vdbe node 2
316     vdbe_aap_sec_untrusted_ip_prefix_len:
317       hidden: false
318       immutable: false
319       annotations:
320         source:
321           type: org.openecomp.annotations.Source
322           properties:
323             vf_module_label:
324             - main
325             source_type: HEAT
326             param_name: vdbe_aap_sec_untrusted_ip_prefix_len
327       type: string
328       description: ip prefix length for the secondary DBE VM aap on the VAN untrusted network
329     vdbe_aap_untrusted_v6_ip_prefix:
330       hidden: false
331       immutable: false
332       annotations:
333         source:
334           type: org.openecomp.annotations.Source
335           properties:
336             vf_module_label:
337             - main
338             source_type: HEAT
339             param_name: vdbe_aap_untrusted_v6_ip_prefix
340       type: string
341       description: ipv6 prefix for the primary vDBE VM on the VAN untrusted network
342     vdbe_aap_untrusted_v6_ip_prefix_len:
343       hidden: false
344       immutable: false
345       annotations:
346         source:
347           type: org.openecomp.annotations.Source
348           properties:
349             vf_module_label:
350             - main
351             source_type: HEAT
352             param_name: vdbe_aap_untrusted_v6_ip_prefix_len
353       type: string
354       description: ipv6 prefix length for the primary vDBE VM on the VAN untrusted network
355     untrusted_vlan_tags:
356       hidden: false
357       immutable: false
358       annotations:
359         source:
360           type: org.openecomp.annotations.Source
361           properties:
362             vf_module_label:
363             - main
364             source_type: HEAT
365             param_name: untrusted_vlan_tags
366       type: list
367       description: List of subinterface vlan tags
368       entry_schema:
369         type: string
370     vdbe_flavor_name:
371       hidden: false
372       immutable: false
373       annotations:
374         source:
375           type: org.openecomp.annotations.Source
376           properties:
377             vf_module_label:
378             - main
379             source_type: HEAT
380             param_name: vdbe_flavor_name
381       type: string
382       description: Flavor to use for vDBE
383     counter:
384       hidden: false
385       immutable: false
386       annotations:
387         source:
388           type: org.openecomp.annotations.Source
389           properties:
390             vf_module_label:
391             - main
392             source_type: HEAT
393             param_name: counter
394       type: float
395       description: Counter.
396     vf_module_id_2:
397       hidden: false
398       immutable: false
399       annotations:
400         source:
401           type: org.openecomp.annotations.Source
402           properties:
403             vf_module_label:
404             - main
405             source_type: HEAT
406             param_name: vf_module_id_2
407       type: string
408       description: Unique ID for this VF module inst
409     vf_module_id_1:
410       hidden: false
411       immutable: false
412       annotations:
413         source:
414           type: org.openecomp.annotations.Source
415           properties:
416             vf_module_label:
417             - main
418             source_type: HEAT
419             param_name: vf_module_id_1
420       type: string
421       description: Unique ID for this VF module inst
422     vdbe_hw_untr_mac_1:
423       hidden: false
424       immutable: false
425       annotations:
426         source:
427           type: org.openecomp.annotations.Source
428           properties:
429             vf_module_label:
430             - main
431             source_type: HEAT
432             param_name: vdbe_hw_untr_mac_1
433       type: string
434       description: Secondary MAC address of the secondary vDBE VM on the VAN untrusted network
435     untrusted_net_name:
436       hidden: false
437       immutable: false
438       annotations:
439         source:
440           type: org.openecomp.annotations.Source
441           properties:
442             vf_module_label:
443             - main
444             source_type: HEAT
445             param_name: untrusted_net_name
446       type: string
447       description: Name of public untrusted network into which this vDBE HA cluster is deployed
448     vdbe_device_name:
449       hidden: false
450       immutable: false
451       annotations:
452         source:
453           type: org.openecomp.annotations.Source
454           properties:
455             vf_module_label:
456             - main
457             source_type: HEAT
458             param_name: vdbe_device_name
459       type: string
460       description: VDBE device Name for this vdbe VNF
461     vdbe_aap_untrusted_ip_prefix:
462       hidden: false
463       immutable: false
464       annotations:
465         source:
466           type: org.openecomp.annotations.Source
467           properties:
468             vf_module_label:
469             - main
470             source_type: HEAT
471             param_name: vdbe_aap_untrusted_ip_prefix
472       type: string
473       description: ip prefix for primary vDBE VM on the VAN untrusted network
474   node_templates:
475     control_int_net:
476       type: org.openecomp.resource.vl.nodes.heat.network.contrailV2.VirtualNetwork
477       properties:
478         network_name:
479           str_replace:
480             template: VNF_NAME_control_net
481             params:
482               VNF_NAME:
483                 get_input: vnf_name
484     abstract_vdbe:
485       type: org.openecomp.resource.abstract.nodes.vdbe
486       directives:
487       - substitutable
488       properties:
489         subinterface_nested_parent_interface:
490         - vdbe_untr_port_1
491         - vdbe_untr_port_2
492         subinterface_nested_aap_address_mode:
493         - get_input: aap_address_mode
494         - get_input: aap_address_mode
495         subinterface_nested_vlan_tag_list:
496         - get_input: untrusted_vlan_tags
497         - get_input: untrusted_vlan_tags
498         compute_vdbe_availability_zone:
499         - get_input: availability_zone_1
500         - get_input: availability_zone_2
501         subinterface_nested_service_template_filter_count:
502         - 5
503         - 5
504         subinterface_nested_aap_untrusted_v6_ip_prefix_len:
505         - get_input: vdbe_aap_untrusted_v6_ip_prefix_len
506         - get_input: vdbe_aap_untrusted_v6_ip_prefix_len
507         vm_flavor_name:
508           get_input: vdbe_flavor_name
509         subinterface_nested_aap_untrusted_ip_prefix:
510         - get_input: vdbe_aap_untrusted_ip_prefix
511         - get_input: vdbe_aap_untrusted_ip_prefix
512         vm_image_name:
513           get_input: vdbe_image_name
514         subinterface_nested_aap_sec_untrusted_ip_prefix_len:
515         - get_input: vdbe_aap_sec_untrusted_ip_prefix_len
516         - get_input: vdbe_aap_sec_untrusted_ip_prefix_len
517         subinterface_nested_aap_sec_untrusted_ip_prefix:
518         - get_input: vdbe_aap_sec_untrusted_ip_prefix
519         - get_input: vdbe_aap_sec_untrusted_ip_prefix
520         subinterface_nested_aap_untrusted_v6_ip_prefix:
521         - get_input: vdbe_aap_untrusted_v6_ip_prefix
522         - get_input: vdbe_aap_untrusted_v6_ip_prefix
523         compute_vdbe_metadata:
524         - vf_module_id:
525             get_input: vf_module_id_1
526           vnf_id:
527             get_input: vnf_id_1
528           vnf_name:
529             get_input: vnf_name_1
530         - vf_module_id:
531             get_input: vf_module_id_2
532           vnf_id:
533             get_input: vnf_id_2
534           vnf_name:
535             get_input: vnf_name_2
536         subinterface_nested_mac_address:
537         - get_input: vdbe_hw_untr_mac_1
538         - get_input: vdbe_hw_untr_mac_1
539         subinterface_nested_ip_address:
540         - get_input: vdbe_untrusted_ip_1
541         - get_input: vdbe_untrusted_ip_1
542         port_vdbe_untr_port_virtual_network_refs:
543         - - control_int_net
544         - - control_int_net
545         subinterface_nested_ip_v6_address:
546         - get_input: vdbe_untrusted_v6_ip_1
547         - get_input: vdbe_untrusted_v6_ip_1
548         port_vdbe_untr_port_subinterface_indicator:
549         - true
550         - true
551         subinterface_nested_vmac_address:
552         - get_input: vdbe_untrusted_vmac_address
553         - get_input: vdbe_untrusted_vmac_address
554         subinterface_nested_vn_network_list:
555         - get_input: untrusted_vn_networks
556         - get_input: untrusted_vn_networks
557         port_vdbe_untr_port_name:
558         - Untr_Port_1
559         - Untr_Port_2
560         port_vdbe_untr_port_virtual_machine_interface_mac_addresses:
561         - - get_input: vdbe_hw_untr_mac_1
562         - - get_input: vdbe_hw_untr_mac_1
563         subinterface_nested_aap_untrusted_ip_prefix_len:
564         - get_input: vdbe_aap_untrusted_ip_prefix_len
565         - get_input: vdbe_aap_untrusted_ip_prefix_len
566         subinterface_nested_counter:
567         - get_property:
568           - SELF
569           - service_template_filter
570           - index_value
571         - get_input: counter
572         subinterface_nested_subinterfaces_name_prefix:
573         - str_replace:
574             template: VM_NAMEDBE001p1n004
575             params:
576               DBE:
577                 get_input: vdbe_device_name
578               VM_NAME:
579                 get_input: vdbe_name_1
580         - str_replace:
581             template: VM_NAMEDBE001p1n004
582             params:
583               DBE:
584                 get_input: vdbe_device_name
585               VM_NAME:
586                 get_input: vdbe_name_1
587         compute_vdbe_name:
588         - get_input: vdbe_name_1
589         - get_input: vdbe_name_2
590         service_template_filter:
591           substitute_service_template: Nested_vdbeServiceTemplate.yaml
592           count: 2
593         index_value:
594           get_property:
595           - SELF
596           - service_template_filter
597           - index_value
598       requirements:
599       - link_vdbe_vdbe_untr_port:
600           capability: tosca.capabilities.network.Linkable
601           node: control_int_net
602           relationship: tosca.relationships.network.LinksTo
603   groups:
604     main_group:
605       type: org.openecomp.groups.heat.HeatStack
606       properties:
607         heat_file: ../Artifacts/main.yml
608         description: |
609           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
610       members:
611       - control_int_net
612       - abstract_vdbe