817d62f033a78b9a11e347e282cfcf5c9a1fe92c
[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     fabric_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: fabric_int_net_rpf
35       type: string
36       description: Reverse Path Filtering enable or disable for the fabric virtual network
37     control_int_net_rpf:
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_rpf
48       type: string
49       description: Reverse Path Filtering enable or disable for the control virtual network
50     control_int_net_forwarding_mode:
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: control_int_net_forwarding_mode
61       type: string
62       description: forwarding mode of the control virtual network
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     aap_address_mode:
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: aap_address_mode
113       type: string
114       description: Address mode for the vDBE cluster IP
115     control_int_net_shared:
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: control_int_net_shared
126       type: boolean
127       description: control virtual network shared
128     vdbe_untrusted_v6_ip_1:
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: vdbe_untrusted_v6_ip_1
139       type: string
140       description: IPV6 address of the secondary vDBE VM on the VAN untrusted network
141     vdbe_untrusted_vmac_address:
142       hidden: false
143       immutable: false
144       annotations:
145         source:
146           type: org.openecomp.annotations.Source
147           properties:
148             vf_module_label:
149             - main
150             source_type: HEAT
151             param_name: vdbe_untrusted_vmac_address
152       type: string
153       description: Virtual MAC of the primary vDBE VM on the VAN untrusted network
154     control_int_net_flood_unknown_unicast:
155       hidden: false
156       immutable: false
157       annotations:
158         source:
159           type: org.openecomp.annotations.Source
160           properties:
161             vf_module_label:
162             - main
163             source_type: HEAT
164             param_name: control_int_net_flood_unknown_unicast
165       type: boolean
166       description: forwarding mode of the control virtual network
167     vdbe_aap_sec_untrusted_ip_prefix:
168       hidden: false
169       immutable: false
170       annotations:
171         source:
172           type: org.openecomp.annotations.Source
173           properties:
174             vf_module_label:
175             - main
176             source_type: HEAT
177             param_name: vdbe_aap_sec_untrusted_ip_prefix
178       type: string
179       description: ip prefix for secondary vDBE VM aap on the VAN untrusted network
180     vnf_id:
181       hidden: false
182       immutable: false
183       annotations:
184         source:
185           type: org.openecomp.annotations.Source
186           properties:
187             vf_module_label:
188             - main
189             source_type: HEAT
190             param_name: vnf_id
191       type: string
192       description: Unique ID for this VF inst
193     vdbe_name_1:
194       hidden: false
195       immutable: false
196       annotations:
197         source:
198           type: org.openecomp.annotations.Source
199           properties:
200             vf_module_label:
201             - main
202             source_type: HEAT
203             param_name: vdbe_name_1
204       type: string
205       description: VM Name for this vdbe node 1
206     availability_zone_1:
207       hidden: false
208       immutable: false
209       annotations:
210         source:
211           type: org.openecomp.annotations.Source
212           properties:
213             vf_module_label:
214             - main
215             source_type: HEAT
216             param_name: availability_zone_1
217       type: string
218       description: The availability zone of secondary node1 vDBE vm in the local HA pair.
219     untrusted_vn_networks:
220       hidden: false
221       immutable: false
222       annotations:
223         source:
224           type: org.openecomp.annotations.Source
225           properties:
226             vf_module_label:
227             - main
228             source_type: HEAT
229             param_name: untrusted_vn_networks
230       type: list
231       description: List of subinterface virtual networks
232       entry_schema:
233         type: string
234     vdbe_image_name:
235       hidden: false
236       immutable: false
237       annotations:
238         source:
239           type: org.openecomp.annotations.Source
240           properties:
241             vf_module_label:
242             - main
243             source_type: HEAT
244             param_name: vdbe_image_name
245       type: string
246       description: Image to use for vDBE
247     oam_net_name:
248       hidden: false
249       immutable: false
250       annotations:
251         source:
252           type: org.openecomp.annotations.Source
253           properties:
254             vf_module_label:
255             - main
256             source_type: HEAT
257             param_name: oam_net_name
258       type: string
259       description: Name of NSDNet network from which the management IP addresses will be allocated
260     vdbe_aap_sec_untrusted_ip_prefix_len:
261       hidden: false
262       immutable: false
263       annotations:
264         source:
265           type: org.openecomp.annotations.Source
266           properties:
267             vf_module_label:
268             - main
269             source_type: HEAT
270             param_name: vdbe_aap_sec_untrusted_ip_prefix_len
271       type: string
272       description: ip prefix length for the secondary DBE VM aap on the VAN untrusted network
273     vdbe_aap_untrusted_v6_ip_prefix:
274       hidden: false
275       immutable: false
276       annotations:
277         source:
278           type: org.openecomp.annotations.Source
279           properties:
280             vf_module_label:
281             - main
282             source_type: HEAT
283             param_name: vdbe_aap_untrusted_v6_ip_prefix
284       type: string
285       description: ipv6 prefix for the primary vDBE VM on the VAN untrusted network
286     vdbe_aap_untrusted_v6_ip_prefix_len:
287       hidden: false
288       immutable: false
289       annotations:
290         source:
291           type: org.openecomp.annotations.Source
292           properties:
293             vf_module_label:
294             - main
295             source_type: HEAT
296             param_name: vdbe_aap_untrusted_v6_ip_prefix_len
297       type: string
298       description: ipv6 prefix length for the primary vDBE VM on the VAN untrusted network
299     fabric_int_net_flood_unknown_unicast:
300       hidden: false
301       immutable: false
302       annotations:
303         source:
304           type: org.openecomp.annotations.Source
305           properties:
306             vf_module_label:
307             - main
308             source_type: HEAT
309             param_name: fabric_int_net_flood_unknown_unicast
310       type: boolean
311       description: forwarding mode of the fabric virtual network
312     untrusted_vlan_tags:
313       hidden: false
314       immutable: false
315       annotations:
316         source:
317           type: org.openecomp.annotations.Source
318           properties:
319             vf_module_label:
320             - main
321             source_type: HEAT
322             param_name: untrusted_vlan_tags
323       type: list
324       description: List of subinterface vlan tags
325       entry_schema:
326         type: string
327     vdbe_flavor_name:
328       hidden: false
329       immutable: false
330       annotations:
331         source:
332           type: org.openecomp.annotations.Source
333           properties:
334             vf_module_label:
335             - main
336             source_type: HEAT
337             param_name: vdbe_flavor_name
338       type: string
339       description: Flavor to use for vDBE
340     counter:
341       hidden: false
342       immutable: false
343       annotations:
344         source:
345           type: org.openecomp.annotations.Source
346           properties:
347             vf_module_label:
348             - main
349             source_type: HEAT
350             param_name: counter
351       type: float
352       description: Counter.
353     fabric_int_net_forwarding_mode:
354       hidden: false
355       immutable: false
356       annotations:
357         source:
358           type: org.openecomp.annotations.Source
359           properties:
360             vf_module_label:
361             - main
362             source_type: HEAT
363             param_name: fabric_int_net_forwarding_mode
364       type: string
365       description: forwarding mode of the fabric virtual network
366     fabric_int_net_shared:
367       hidden: false
368       immutable: false
369       annotations:
370         source:
371           type: org.openecomp.annotations.Source
372           properties:
373             vf_module_label:
374             - main
375             source_type: HEAT
376             param_name: fabric_int_net_shared
377       description: fabric virtual network shared
378     vdbe_hw_untr_mac_1:
379       hidden: false
380       immutable: false
381       annotations:
382         source:
383           type: org.openecomp.annotations.Source
384           properties:
385             vf_module_label:
386             - main
387             source_type: HEAT
388             param_name: vdbe_hw_untr_mac_1
389       type: string
390       description: Secondary MAC address of the secondary vDBE VM on the VAN untrusted network
391     untrusted_net_name:
392       hidden: false
393       immutable: false
394       annotations:
395         source:
396           type: org.openecomp.annotations.Source
397           properties:
398             vf_module_label:
399             - main
400             source_type: HEAT
401             param_name: untrusted_net_name
402       type: string
403       description: Name of public untrusted network into which this vDBE HA cluster is deployed
404     vdbe_device_name:
405       hidden: false
406       immutable: false
407       annotations:
408         source:
409           type: org.openecomp.annotations.Source
410           properties:
411             vf_module_label:
412             - main
413             source_type: HEAT
414             param_name: vdbe_device_name
415       type: string
416       description: VDBE device Name for this vdbe VNF
417     vdbe_aap_untrusted_ip_prefix:
418       hidden: false
419       immutable: false
420       annotations:
421         source:
422           type: org.openecomp.annotations.Source
423           properties:
424             vf_module_label:
425             - main
426             source_type: HEAT
427             param_name: vdbe_aap_untrusted_ip_prefix
428       type: string
429       description: ip prefix for primary vDBE VM on the VAN untrusted network
430   node_templates:
431     fabric_int_net:
432       type: org.openecomp.resource.vl.nodes.heat.network.contrailV2.VirtualNetwork
433       properties:
434         network_name:
435           str_replace:
436             template:
437               get_attribute:
438               - abstract_vdbe
439               - vdbe_vdbe_untr_1_port_nested_vlan_tag_list
440             params:
441               VNF_NAME:
442                 get_input: vnf_name
443     control_int_net:
444       type: org.openecomp.resource.vl.nodes.heat.network.contrailV2.VirtualNetwork
445       properties:
446         network_name:
447           str_replace:
448             template: VNF_NAME_control_net
449             params:
450               VNF_NAME:
451                 get_input: vnf_name
452     abstract_vdbe:
453       type: org.openecomp.resource.abstract.nodes.vdbe
454       directives:
455       - substitutable
456       properties:
457         subinterface_nested_parent_interface:
458         - vdbe_untr_1_port
459         subinterface_nested_aap_address_mode:
460         - get_input: aap_address_mode
461         subinterface_nested_vlan_tag_list:
462         - get_input: untrusted_vlan_tags
463         subinterface_nested_aap_untrusted_v6_ip_prefix_len:
464         - get_input: vdbe_aap_untrusted_v6_ip_prefix_len
465         vm_flavor_name:
466           get_input: vdbe_flavor_name
467         subinterface_nested_aap_untrusted_ip_prefix:
468         - get_input: vdbe_aap_untrusted_ip_prefix
469         vm_image_name:
470           get_input: vdbe_image_name
471         subinterface_nested_vdbe_subport_network:
472         - control_int_net
473         subinterface_nested_aap_sec_untrusted_ip_prefix_len:
474         - get_input: vdbe_aap_sec_untrusted_ip_prefix_len
475         subinterface_nested_aap_sec_untrusted_ip_prefix:
476         - get_input: vdbe_aap_sec_untrusted_ip_prefix
477         subinterface_nested_aap_untrusted_v6_ip_prefix:
478         - get_input: vdbe_aap_untrusted_v6_ip_prefix
479         compute_vdbe_metadata:
480         - vf_module_id:
481             get_input: vf_module_id
482           vnf_id:
483             get_input: vnf_id
484           vnf_name:
485             get_input: vnf_name
486         subinterface_nested_mac_address:
487         - get_input: vdbe_hw_untr_mac_1
488         port_vdbe_untr_1_port_virtual_network_refs:
489         - - fabric_int_net
490         subinterface_nested_ip_address:
491         - get_input: vdbe_untrusted_ip_1
492         subinterface_nested_ip_v6_address:
493         - get_input: vdbe_untrusted_v6_ip_1
494         subinterface_nested_vmac_address:
495         - get_attribute:
496           - control_int_net
497           - fq_name
498         port_vdbe_untr_1_port_name:
499         - str_replace:
500             template: VM_NAMEDBE001p1n004
501             params:
502               DBE:
503                 get_input: vdbe_device_name
504               VM_NAME:
505                 get_input: vdbe_name_1
506         subinterface_nested_aap_untrusted_ip_prefix_len:
507         - get_input: vdbe_aap_untrusted_ip_prefix_len
508         subinterface_nested_counter:
509         - get_input: counter
510         subinterface_nested_subinterfaces_name_prefix:
511         - str_replace:
512             template: VM_NAMEDBE001p1n004
513             params:
514               DBE:
515                 get_input: vdbe_device_name
516               VM_NAME:
517                 get_input: vdbe_name_1
518         compute_vdbe_name:
519         - get_input: vdbe_name_1
520         port_vdbe_untr_1_port_virtual_machine_interface_mac_addresses:
521         - - get_input: vdbe_hw_untr_mac_1
522         service_template_filter:
523           substitute_service_template: Nested_vdbeServiceTemplate.yaml
524           count: 1
525         index_value:
526           get_property:
527           - SELF
528           - service_template_filter
529           - index_value
530       requirements:
531       - link_vdbe_vdbe_untr_1_port:
532           capability: tosca.capabilities.network.Linkable
533           node: fabric_int_net
534           relationship: tosca.relationships.network.LinksTo
535       - link_vdbe_untr_x_subport_vdbe_vdbe_untr_1_port_nested:
536           capability: tosca.capabilities.network.Linkable
537           node: control_int_net
538           relationship: tosca.relationships.network.LinksTo
539   groups:
540     main_group:
541       type: org.openecomp.groups.heat.HeatStack
542       properties:
543         heat_file: ../Artifacts/main.yml
544         description: |
545           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
546       members:
547       - fabric_int_net
548       - control_int_net
549       - abstract_vdbe
550   outputs:
551     out1:
552       description: output param connectivity
553       value:
554         get_attribute:
555         - abstract_vdbe
556         - vdbe_vdbe_untr_1_port_nested_aap_address_mode