6d4cbf9dd96528554582634c802d73e3080d23f4
[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     aap_address_mode:
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: aap_address_mode
100       type: string
101       description: Address mode for the vDBE cluster IP
102     control_int_net_shared:
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: control_int_net_shared
113       type: boolean
114       description: control virtual network shared
115     vdbe_untrusted_v6_ip_1:
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: vdbe_untrusted_v6_ip_1
126       type: string
127       description: IPV6 address of the secondary vDBE VM on the VAN untrusted network
128     vdbe_untrusted_vmac_address:
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_vmac_address
139       type: string
140       description: Virtual MAC of the primary vDBE VM on the VAN untrusted network
141     control_int_net_flood_unknown_unicast:
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: control_int_net_flood_unknown_unicast
152       type: boolean
153       description: forwarding mode of the control virtual network
154     vdbe_aap_sec_untrusted_ip_prefix:
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: vdbe_aap_sec_untrusted_ip_prefix
165       type: string
166       description: ip prefix for secondary vDBE VM aap on the VAN untrusted network
167     vnf_id:
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: vnf_id
178       type: string
179       description: Unique ID for this VF inst
180     vdbe_name_1:
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: vdbe_name_1
191       type: string
192       description: VM Name for this vdbe node 1
193     availability_zone_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: availability_zone_1
204       type: string
205       description: The availability zone of secondary node1 vDBE vm in the local HA pair.
206     untrusted_vn_networks:
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: untrusted_vn_networks
217       type: list
218       description: List of subinterface virtual networks
219       entry_schema:
220         type: string
221     vdbe_image_name:
222       hidden: false
223       immutable: false
224       annotations:
225         source:
226           type: org.openecomp.annotations.Source
227           properties:
228             vf_module_label:
229             - main
230             source_type: HEAT
231             param_name: vdbe_image_name
232       type: string
233       description: Image to use for vDBE
234     oam_net_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: oam_net_name
245       type: string
246       description: Name of NSDNet network from which the management IP addresses will be allocated
247     vdbe_aap_sec_untrusted_ip_prefix_len:
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: vdbe_aap_sec_untrusted_ip_prefix_len
258       type: string
259       description: ip prefix length for the secondary DBE VM aap on the VAN untrusted network
260     vdbe_aap_untrusted_v6_ip_prefix:
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_untrusted_v6_ip_prefix
271       type: string
272       description: ipv6 prefix for the primary vDBE VM on the VAN untrusted network
273     vdbe_aap_untrusted_v6_ip_prefix_len:
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_len
284       type: string
285       description: ipv6 prefix length for the primary vDBE VM on the VAN untrusted network
286     untrusted_vlan_tags:
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: untrusted_vlan_tags
297       type: list
298       description: List of subinterface vlan tags
299       entry_schema:
300         type: string
301     untr_network_collection_function:
302       type: string
303       required: true
304     untr_vfc_instance_group_function:
305       type: string
306       required: true
307     vdbe_flavor_name:
308       hidden: false
309       immutable: false
310       annotations:
311         source:
312           type: org.openecomp.annotations.Source
313           properties:
314             vf_module_label:
315             - main
316             source_type: HEAT
317             param_name: vdbe_flavor_name
318       type: string
319       description: Flavor to use for vDBE
320     vdbe_hw_untr_mac_1:
321       hidden: false
322       immutable: false
323       annotations:
324         source:
325           type: org.openecomp.annotations.Source
326           properties:
327             vf_module_label:
328             - main
329             source_type: HEAT
330             param_name: vdbe_hw_untr_mac_1
331       type: string
332       description: Secondary MAC address of the secondary vDBE VM on the VAN untrusted network
333     untrusted_net_name:
334       hidden: false
335       immutable: false
336       annotations:
337         source:
338           type: org.openecomp.annotations.Source
339           properties:
340             vf_module_label:
341             - main
342             source_type: HEAT
343             param_name: untrusted_net_name
344       type: string
345       description: Name of public untrusted network into which this vDBE HA cluster is deployed
346     vdbe_device_name:
347       hidden: false
348       immutable: false
349       annotations:
350         source:
351           type: org.openecomp.annotations.Source
352           properties:
353             vf_module_label:
354             - main
355             source_type: HEAT
356             param_name: vdbe_device_name
357       type: string
358       description: VDBE device Name for this vdbe VNF
359     vdbe_aap_untrusted_ip_prefix:
360       hidden: false
361       immutable: false
362       annotations:
363         source:
364           type: org.openecomp.annotations.Source
365           properties:
366             vf_module_label:
367             - main
368             source_type: HEAT
369             param_name: vdbe_aap_untrusted_ip_prefix
370       type: string
371       description: ip prefix for primary vDBE VM on the VAN untrusted network
372   node_templates:
373     control_int_net:
374       type: org.openecomp.resource.vl.nodes.heat.network.contrailV2.VirtualNetwork
375       properties:
376         network_name:
377           str_replace:
378             template: VNF_NAME_control_net
379             params:
380               VNF_NAME:
381                 get_input: vnf_name
382     abstract_vdbe:
383       type: org.openecomp.resource.abstract.nodes.vdbe
384       directives:
385       - substitutable
386       properties:
387         subinterface_nested_parent_interface:
388         - vdbe_1_untr_vmi_1
389         subinterface_nested_aap_address_mode:
390         - get_input: aap_address_mode
391         subinterface_nested_vlan_tag_list:
392         - get_input: untrusted_vlan_tags
393         compute_vdbe_availability_zone:
394         - get_input: availability_zone_1
395         subinterface_nested_aap_untrusted_v6_ip_prefix_len:
396         - get_input: vdbe_aap_untrusted_v6_ip_prefix_len
397         vm_flavor_name:
398           get_input: vdbe_flavor_name
399         port_vdbe_untr_vmi_virtual_machine_interface_mac_addresses:
400         - - get_input: vdbe_hw_untr_mac_1
401         subinterface_nested_aap_untrusted_ip_prefix:
402         - get_input: vdbe_aap_untrusted_ip_prefix
403         vm_image_name:
404           get_input: vdbe_image_name
405         subinterface_nested_aap_sec_untrusted_ip_prefix_len:
406         - get_input: vdbe_aap_sec_untrusted_ip_prefix_len
407         subinterface_nested_aap_sec_untrusted_ip_prefix:
408         - get_input: vdbe_aap_sec_untrusted_ip_prefix
409         subinterface_nested_aap_untrusted_v6_ip_prefix:
410         - get_input: vdbe_aap_untrusted_v6_ip_prefix
411         compute_vdbe_metadata:
412         - vf_module_id:
413             get_input: vf_module_id
414           vnf_id:
415             get_input: vnf_id
416           vnf_name:
417             get_input: vnf_name
418         subinterface_nested_mac_address:
419         - get_input: vdbe_hw_untr_mac_1
420         port_vdbe_untr_vmi_virtual_network_refs:
421         - - control_int_net
422         subinterface_nested_ip_address:
423         - get_input: vdbe_untrusted_ip_1
424         subinterface_nested_ip_v6_address:
425         - get_input: vdbe_untrusted_v6_ip_1
426         subinterface_nested_vmac_address:
427         - get_input: vdbe_untrusted_vmac_address
428         subinterface_nested_vn_network_list:
429         - get_input: untrusted_vn_networks
430         subinterface_nested_aap_untrusted_ip_prefix_len:
431         - get_input: vdbe_aap_untrusted_ip_prefix_len
432         port_vdbe_untr_vmi_name:
433         - str_replace:
434             template: VM_NAMEDBE001p1n004
435             params:
436               DBE:
437                 get_input: vdbe_device_name
438               VM_NAME:
439                 get_input: vdbe_name_1
440         subinterface_nested_subinterfaces_name_prefix:
441         - str_replace:
442             template: VM_NAMEDBE001p1n004
443             params:
444               DBE:
445                 get_input: vdbe_device_name
446               VM_NAME:
447                 get_input: vdbe_name_1
448         compute_vdbe_name:
449         - get_input: vdbe_name_1
450         service_template_filter:
451           substitute_service_template: Nested_vdbeServiceTemplate.yaml
452           count: 1
453         index_value:
454           get_property:
455           - SELF
456           - service_template_filter
457           - index_value
458       requirements:
459       - link_vdbe_vdbe_untr_vmi:
460           capability: tosca.capabilities.network.Linkable
461           node: control_int_net
462           relationship: tosca.relationships.network.LinksTo
463   groups:
464     main_group:
465       type: org.openecomp.groups.heat.HeatStack
466       properties:
467         heat_file: ../Artifacts/main.yml
468         description: |
469           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
470       members:
471       - control_int_net
472       - abstract_vdbe
473     untr_group:
474       type: org.openecomp.groups.VfcInstanceGroup
475       properties:
476         vfc_parent_port_role: untr
477         network_collection_function:
478           get_input: untr_network_collection_function
479         vfc_instance_group_function:
480           get_input: untr_vfc_instance_group_function
481         subinterface_role: untr
482       members:
483       - abstract_vdbe