8f9138efecefd58409681074ad9b457e178cae7e
[sdc.git] /
1 tosca_definitions_version: tosca_simple_yaml_1_0_0\r
2 metadata:\r
3   template_name: Main\r
4 imports:\r
5 - openecomp_heat_index:\r
6     file: openecomp-heat/_index.yml\r
7 - GlobalSubstitutionTypes:\r
8     file: GlobalSubstitutionTypesServiceTemplate.yaml\r
9 node_types:\r
10   org.openecomp.resource.vfc.nodes.heat.vdbe:\r
11     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server\r
12 topology_template:\r
13   inputs:\r
14     vf_module_id:\r
15       hidden: false\r
16       immutable: false\r
17       annotations:\r
18         source:\r
19           type: org.openecomp.annotations.Source\r
20           properties:\r
21             vf_module_label:\r
22             - main\r
23             source_type: HEAT\r
24             param_name: vf_module_id\r
25       type: string\r
26       description: Unique ID for this VF module inst\r
27     control_int_net_rpf:\r
28       hidden: false\r
29       immutable: false\r
30       annotations:\r
31         source:\r
32           type: org.openecomp.annotations.Source\r
33           properties:\r
34             vf_module_label:\r
35             - main\r
36             source_type: HEAT\r
37             param_name: control_int_net_rpf\r
38       type: string\r
39       description: Reverse Path Filtering enable or disable for the control virtual network\r
40     control_int_net_forwarding_mode:\r
41       hidden: false\r
42       immutable: false\r
43       annotations:\r
44         source:\r
45           type: org.openecomp.annotations.Source\r
46           properties:\r
47             vf_module_label:\r
48             - main\r
49             source_type: HEAT\r
50             param_name: control_int_net_forwarding_mode\r
51       type: string\r
52       description: forwarding mode of the control virtual network\r
53     vnf_name:\r
54       hidden: false\r
55       immutable: false\r
56       annotations:\r
57         source:\r
58           type: org.openecomp.annotations.Source\r
59           properties:\r
60             vf_module_label:\r
61             - main\r
62             source_type: HEAT\r
63             param_name: vnf_name\r
64       type: string\r
65       description: Unique name for this VF instance\r
66     vdbe_untrusted_ip_1:\r
67       hidden: false\r
68       immutable: false\r
69       annotations:\r
70         source:\r
71           type: org.openecomp.annotations.Source\r
72           properties:\r
73             vf_module_label:\r
74             - main\r
75             source_type: HEAT\r
76             param_name: vdbe_untrusted_ip_1\r
77       type: string\r
78       description: IPV4 address of the secondary vDBE VM on the VAN untrusted network\r
79     vdbe_aap_untrusted_ip_prefix_len:\r
80       hidden: false\r
81       immutable: false\r
82       annotations:\r
83         source:\r
84           type: org.openecomp.annotations.Source\r
85           properties:\r
86             vf_module_label:\r
87             - main\r
88             source_type: HEAT\r
89             param_name: vdbe_aap_untrusted_ip_prefix_len\r
90       type: string\r
91       description: ip prefix length for the primary vDBE VM on the VAN untrusted network\r
92     untrusted_num_vn:\r
93       hidden: false\r
94       immutable: false\r
95       annotations:\r
96         source:\r
97           type: org.openecomp.annotations.Source\r
98           properties:\r
99             vf_module_label:\r
100             - main\r
101             source_type: HEAT\r
102             param_name: untrusted_num_vn\r
103       type: float\r
104       description: Number of vDBE subinterface virtual Networks\r
105       constraints:\r
106       - in_range:\r
107         - 1\r
108         - 77\r
109     aap_address_mode:\r
110       hidden: false\r
111       immutable: false\r
112       annotations:\r
113         source:\r
114           type: org.openecomp.annotations.Source\r
115           properties:\r
116             vf_module_label:\r
117             - main\r
118             source_type: HEAT\r
119             param_name: aap_address_mode\r
120       type: string\r
121       description: Address mode for the vDBE cluster IP\r
122     control_int_net_shared:\r
123       hidden: false\r
124       immutable: false\r
125       annotations:\r
126         source:\r
127           type: org.openecomp.annotations.Source\r
128           properties:\r
129             vf_module_label:\r
130             - main\r
131             source_type: HEAT\r
132             param_name: control_int_net_shared\r
133       type: boolean\r
134       description: control virtual network shared\r
135     vdbe_untrusted_v6_ip_1:\r
136       hidden: false\r
137       immutable: false\r
138       annotations:\r
139         source:\r
140           type: org.openecomp.annotations.Source\r
141           properties:\r
142             vf_module_label:\r
143             - main\r
144             source_type: HEAT\r
145             param_name: vdbe_untrusted_v6_ip_1\r
146       type: string\r
147       description: IPV6 address of the secondary vDBE VM on the VAN untrusted network\r
148     vdbe_untrusted_vmac_address:\r
149       hidden: false\r
150       immutable: false\r
151       annotations:\r
152         source:\r
153           type: org.openecomp.annotations.Source\r
154           properties:\r
155             vf_module_label:\r
156             - main\r
157             source_type: HEAT\r
158             param_name: vdbe_untrusted_vmac_address\r
159       type: string\r
160       description: Virtual MAC of the primary vDBE VM on the VAN untrusted network\r
161     control_int_net_flood_unknown_unicast:\r
162       hidden: false\r
163       immutable: false\r
164       annotations:\r
165         source:\r
166           type: org.openecomp.annotations.Source\r
167           properties:\r
168             vf_module_label:\r
169             - main\r
170             source_type: HEAT\r
171             param_name: control_int_net_flood_unknown_unicast\r
172       type: boolean\r
173       description: forwarding mode of the control virtual network\r
174     vdbe_aap_sec_untrusted_ip_prefix:\r
175       hidden: false\r
176       immutable: false\r
177       annotations:\r
178         source:\r
179           type: org.openecomp.annotations.Source\r
180           properties:\r
181             vf_module_label:\r
182             - main\r
183             source_type: HEAT\r
184             param_name: vdbe_aap_sec_untrusted_ip_prefix\r
185       type: string\r
186       description: ip prefix for secondary vDBE VM aap on the VAN untrusted network\r
187     vnf_id:\r
188       hidden: false\r
189       immutable: false\r
190       annotations:\r
191         source:\r
192           type: org.openecomp.annotations.Source\r
193           properties:\r
194             vf_module_label:\r
195             - main\r
196             source_type: HEAT\r
197             param_name: vnf_id\r
198       type: string\r
199       description: Unique ID for this VF inst\r
200     vdbe_name_1:\r
201       hidden: false\r
202       immutable: false\r
203       annotations:\r
204         source:\r
205           type: org.openecomp.annotations.Source\r
206           properties:\r
207             vf_module_label:\r
208             - main\r
209             source_type: HEAT\r
210             param_name: vdbe_name_1\r
211       type: string\r
212       description: VM Name for this vdbe node 1\r
213     availability_zone_1:\r
214       hidden: false\r
215       immutable: false\r
216       annotations:\r
217         source:\r
218           type: org.openecomp.annotations.Source\r
219           properties:\r
220             vf_module_label:\r
221             - main\r
222             source_type: HEAT\r
223             param_name: availability_zone_1\r
224       type: string\r
225       description: The availability zone of secondary node1 vDBE vm in the local HA pair.\r
226     untrusted_vn_networks:\r
227       hidden: false\r
228       immutable: false\r
229       annotations:\r
230         source:\r
231           type: org.openecomp.annotations.Source\r
232           properties:\r
233             vf_module_label:\r
234             - main\r
235             source_type: HEAT\r
236             param_name: untrusted_vn_networks\r
237       type: list\r
238       description: List of subinterface virtual networks\r
239       entry_schema:\r
240         type: string\r
241     vdbe_image_name:\r
242       hidden: false\r
243       immutable: false\r
244       annotations:\r
245         source:\r
246           type: org.openecomp.annotations.Source\r
247           properties:\r
248             vf_module_label:\r
249             - main\r
250             source_type: HEAT\r
251             param_name: vdbe_image_name\r
252       type: string\r
253       description: Image to use for vDBE\r
254     oam_net_name:\r
255       hidden: false\r
256       immutable: false\r
257       annotations:\r
258         source:\r
259           type: org.openecomp.annotations.Source\r
260           properties:\r
261             vf_module_label:\r
262             - main\r
263             source_type: HEAT\r
264             param_name: oam_net_name\r
265       type: string\r
266       description: Name of NSDNet network from which the management IP addresses will be allocated\r
267     vdbe_aap_sec_untrusted_ip_prefix_len:\r
268       hidden: false\r
269       immutable: false\r
270       annotations:\r
271         source:\r
272           type: org.openecomp.annotations.Source\r
273           properties:\r
274             vf_module_label:\r
275             - main\r
276             source_type: HEAT\r
277             param_name: vdbe_aap_sec_untrusted_ip_prefix_len\r
278       type: string\r
279       description: ip prefix length for the secondary DBE VM aap on the VAN untrusted network\r
280     vdbe_aap_untrusted_v6_ip_prefix:\r
281       hidden: false\r
282       immutable: false\r
283       annotations:\r
284         source:\r
285           type: org.openecomp.annotations.Source\r
286           properties:\r
287             vf_module_label:\r
288             - main\r
289             source_type: HEAT\r
290             param_name: vdbe_aap_untrusted_v6_ip_prefix\r
291       type: string\r
292       description: ipv6 prefix for the primary vDBE VM on the VAN untrusted network\r
293     vdbe_aap_untrusted_v6_ip_prefix_len:\r
294       hidden: false\r
295       immutable: false\r
296       annotations:\r
297         source:\r
298           type: org.openecomp.annotations.Source\r
299           properties:\r
300             vf_module_label:\r
301             - main\r
302             source_type: HEAT\r
303             param_name: vdbe_aap_untrusted_v6_ip_prefix_len\r
304       type: string\r
305       description: ipv6 prefix length for the primary vDBE VM on the VAN untrusted network\r
306     untrusted_vlan_tags:\r
307       hidden: false\r
308       immutable: false\r
309       annotations:\r
310         source:\r
311           type: org.openecomp.annotations.Source\r
312           properties:\r
313             vf_module_label:\r
314             - main\r
315             source_type: HEAT\r
316             param_name: untrusted_vlan_tags\r
317       type: list\r
318       description: List of subinterface vlan tags\r
319       entry_schema:\r
320         type: string\r
321     vdbe_flavor_name:\r
322       hidden: false\r
323       immutable: false\r
324       annotations:\r
325         source:\r
326           type: org.openecomp.annotations.Source\r
327           properties:\r
328             vf_module_label:\r
329             - main\r
330             source_type: HEAT\r
331             param_name: vdbe_flavor_name\r
332       type: string\r
333       description: Flavor to use for vDBE\r
334     vdbe_hw_untr_mac_1:\r
335       hidden: false\r
336       immutable: false\r
337       annotations:\r
338         source:\r
339           type: org.openecomp.annotations.Source\r
340           properties:\r
341             vf_module_label:\r
342             - main\r
343             source_type: HEAT\r
344             param_name: vdbe_hw_untr_mac_1\r
345       type: string\r
346       description: Secondary MAC address of the secondary vDBE VM on the VAN untrusted network\r
347     untrusted_net_name:\r
348       hidden: false\r
349       immutable: false\r
350       annotations:\r
351         source:\r
352           type: org.openecomp.annotations.Source\r
353           properties:\r
354             vf_module_label:\r
355             - main\r
356             source_type: HEAT\r
357             param_name: untrusted_net_name\r
358       type: string\r
359       description: Name of public untrusted network into which this vDBE HA cluster is deployed\r
360     vdbe_device_name:\r
361       hidden: false\r
362       immutable: false\r
363       annotations:\r
364         source:\r
365           type: org.openecomp.annotations.Source\r
366           properties:\r
367             vf_module_label:\r
368             - main\r
369             source_type: HEAT\r
370             param_name: vdbe_device_name\r
371       type: string\r
372       description: VDBE device Name for this vdbe VNF\r
373     vdbe_aap_untrusted_ip_prefix:\r
374       hidden: false\r
375       immutable: false\r
376       annotations:\r
377         source:\r
378           type: org.openecomp.annotations.Source\r
379           properties:\r
380             vf_module_label:\r
381             - main\r
382             source_type: HEAT\r
383             param_name: vdbe_aap_untrusted_ip_prefix\r
384       type: string\r
385       description: ip prefix for primary vDBE VM on the VAN untrusted network\r
386   node_templates:\r
387     vdbe_node_1:\r
388       type: org.openecomp.resource.vfc.nodes.heat.vdbe\r
389       properties:\r
390         flavor:\r
391           get_input: vdbe_flavor_name\r
392         availability_zone:\r
393           get_input: availability_zone_1\r
394         image:\r
395           get_input: vdbe_image_name\r
396         metadata:\r
397           vf_module_id:\r
398             get_input: vf_module_id\r
399           vnf_id:\r
400             get_input: vnf_id\r
401           vnf_name:\r
402             get_input: vnf_name\r
403         name:\r
404           get_input: vdbe_name_1\r
405     vdbe_untr_1_port:\r
406       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface\r
407       properties:\r
408         name:\r
409           str_replace:\r
410             template: VM_NAMEDBE001p1n004\r
411             params:\r
412               DBE:\r
413                 get_input: vdbe_device_name\r
414               VM_NAME:\r
415                 get_input: vdbe_name_1\r
416         virtual_network_refs:\r
417         - get_input: untrusted_net_name\r
418         virtual_machine_interface_allowed_address_pairs:\r
419           allowed_address_pair:\r
420           - address_mode:\r
421               get_input: aap_address_mode\r
422             ip:\r
423               ip_prefix:\r
424                 get_input: vdbe_aap_untrusted_ip_prefix\r
425               ip_prefix_len:\r
426                 get_input: vdbe_aap_untrusted_ip_prefix_len\r
427             mac:\r
428               get_input: vdbe_untrusted_vmac_address\r
429           - address_mode:\r
430               get_input: aap_address_mode\r
431             ip:\r
432               ip_prefix:\r
433                 get_input: vdbe_aap_sec_untrusted_ip_prefix\r
434               ip_prefix_len:\r
435                 get_input: vdbe_aap_sec_untrusted_ip_prefix_len\r
436             mac:\r
437               get_input: vdbe_hw_untr_mac_1\r
438           - address_mode:\r
439               get_input: aap_address_mode\r
440             ip:\r
441               ip_prefix:\r
442                 get_input: vdbe_aap_untrusted_v6_ip_prefix\r
443               ip_prefix_len:\r
444                 get_input: vdbe_aap_untrusted_v6_ip_prefix_len\r
445             mac:\r
446               get_input: vdbe_untrusted_vmac_address\r
447         virtual_machine_interface_mac_addresses:\r
448         - get_input: vdbe_hw_untr_mac_1\r
449       requirements:\r
450       - binding:\r
451           capability: tosca.capabilities.network.Bindable\r
452           node: vdbe_node_1\r
453           relationship: tosca.relationships.network.BindsTo\r
454     vdbe_untr_1_subports:\r
455       type: org.openecomp.resource.abstract.nodes.heat.subinterface.nested\r
456       directives:\r
457       - substitutable\r
458       properties:\r
459         aap_untrusted_ip_prefix:\r
460           get_input: vdbe_aap_untrusted_ip_prefix\r
461         attr_test:\r
462           get_attribute:\r
463           - vdbe_untr_1_port\r
464           - name\r
465         aap_sec_untrusted_ip_prefix:\r
466           get_input: vdbe_aap_sec_untrusted_ip_prefix\r
467         vdbe_subport_network: control_int_net\r
468         ip_v6_address:\r
469           get_input: vdbe_untrusted_v6_ip_1\r
470         counter:\r
471           get_input: vnf_id\r
472         ip_address:\r
473           get_input: vdbe_untrusted_ip_1\r
474         subinterfaces_name_prefix:\r
475           str_replace:\r
476             template: VM_NAMEDBE001p1n004\r
477             params:\r
478               DBE:\r
479                 get_input: vdbe_device_name\r
480               VM_NAME:\r
481                 get_input: vdbe_name_1\r
482         aap_address_mode:\r
483           get_input: aap_address_mode\r
484         service_template_filter:\r
485           substitute_service_template: nestedServiceTemplate.yaml\r
486           count:\r
487             get_input: untrusted_num_vn\r
488           mandatory: false\r
489         aap_untrusted_v6_ip_prefix:\r
490           get_input: vdbe_aap_untrusted_v6_ip_prefix\r
491         parent_interface: vdbe_untr_1_port\r
492         mac_address:\r
493           get_input: vdbe_hw_untr_mac_1\r
494         vlan_tag_list:\r
495           get_input: untrusted_vlan_tags\r
496         aap_sec_untrusted_ip_prefix_len:\r
497           get_input: vdbe_aap_sec_untrusted_ip_prefix_len\r
498         vmac_address:\r
499           get_input: vdbe_untrusted_vmac_address\r
500         aap_untrusted_v6_ip_prefix_len:\r
501           get_input: vdbe_aap_untrusted_v6_ip_prefix_len\r
502         aap_untrusted_ip_prefix_len:\r
503           get_input: vdbe_aap_untrusted_ip_prefix_len\r
504       requirements:\r
505       - link_vdbe_0_subint_untr_vmi_0:\r
506           capability: tosca.capabilities.network.Linkable\r
507           node: control_int_net\r
508           relationship: tosca.relationships.network.LinksTo\r
509       - binding_vdbe_0_subint_untr_vmi_0:\r
510           capability: tosca.capabilities.network.Bindable\r
511           node: vdbe_untr_1_port\r
512           relationship: tosca.relationships.network.BindsTo\r
513       - dependency:\r
514           capability: tosca.capabilities.Node\r
515           node: control_int_net\r
516           relationship: tosca.relationships.DependsOn\r
517     control_int_net:\r
518       type: org.openecomp.resource.vl.nodes.heat.network.contrailV2.VirtualNetwork\r
519       properties:\r
520         network_name:\r
521           str_replace:\r
522             template: VNF_NAME_control_net\r
523             params:\r
524               VNF_NAME:\r
525                 get_input: vnf_name\r
526         network_ipam_refs:\r
527           get_attribute:\r
528           - vdbe_untr_1_subports\r
529           - count\r
530       requirements:\r
531       - dependency:\r
532           capability: tosca.capabilities.Node\r
533           node: vdbe_untr_1_subports\r
534           relationship: tosca.relationships.DependsOn\r
535   groups:\r
536     main_group:\r
537       type: org.openecomp.groups.heat.HeatStack\r
538       properties:\r
539         heat_file: ../Artifacts/main.yml\r
540         description: |\r
541           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)\r
542       members:\r
543       - vdbe_node_1\r
544       - vdbe_untr_1_port\r
545       - vdbe_untr_1_subports\r
546       - control_int_net\r
547   outputs:\r
548     out1:\r
549       description: output_test\r
550       value:\r
551         get_attribute:\r
552         - vdbe_untr_1_subports\r
553         - name\r