9c92c8d3bf7955d7cebeb46580647a65c3756ff2
[sdc.git] /
1 tosca_definitions_version: tosca_simple_yaml_1_0_0\r
2 metadata:\r
3   template_name: hot_template\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 topology_template:\r
10   inputs:\r
11     template_PortTuple_LB1:\r
12       hidden: false\r
13       immutable: false\r
14       type: string\r
15       description: dummy\r
16     lb_st_interface_type_oam:\r
17       hidden: false\r
18       immutable: false\r
19       type: string\r
20       description: dummy\r
21     oam_sec_group_name:\r
22       hidden: false\r
23       immutable: false\r
24       type: string\r
25       description: dummy\r
26     virtual_ip_address:\r
27       hidden: false\r
28       immutable: false\r
29       type: string\r
30     nems_traffic_name:\r
31       hidden: false\r
32       immutable: false\r
33       type: string\r
34       description: dummy\r
35     security_group_name:\r
36       hidden: false\r
37       immutable: false\r
38       description: not impotrtant\r
39     jsa_net_name:\r
40       hidden: false\r
41       immutable: false\r
42       type: string\r
43       description: dummy\r
44     vlan_ids:\r
45       hidden: false\r
46       immutable: false\r
47       type: string\r
48     virtual_ipv6_address:\r
49       hidden: false\r
50       immutable: false\r
51       type: string\r
52     lb_st_vlan_type_oam:\r
53       hidden: false\r
54       immutable: false\r
55       type: string\r
56       description: dummy\r
57     mac_address:\r
58       hidden: false\r
59       immutable: false\r
60       type: string\r
61     network_ipam_refs_data_ipam_subnets_addr_from_start_true:\r
62       hidden: false\r
63       immutable: false\r
64       type: string\r
65       description: dummy\r
66     subinterface_name_prefix:\r
67       hidden: false\r
68       immutable: false\r
69       type: string\r
70     subinterface_instance_index:\r
71       hidden: false\r
72       immutable: false\r
73       type: float\r
74     cmaui_oam_ips:\r
75       hidden: false\r
76       immutable: false\r
77       type: string\r
78     network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len_2:\r
79       hidden: false\r
80       immutable: false\r
81       type: string\r
82       description: dummy\r
83     network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_2:\r
84       hidden: false\r
85       immutable: false\r
86       type: string\r
87       description: dummy\r
88   node_templates:\r
89     jsa_net3:\r
90       type: org.openecomp.resource.vl.nodes.heat.network.contrailV2.VirtualNetwork\r
91       properties:\r
92         network_ipam_refs_data:\r
93         - network_ipam_refs_data_ipam_subnets:\r
94           - network_ipam_refs_data_ipam_subnets_subnet:\r
95               network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len:\r
96                 get_input: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len_2\r
97               network_ipam_refs_data_ipam_subnets_subnet_ip_prefix:\r
98                 get_input: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_2\r
99             network_ipam_refs_data_ipam_subnets_addr_from_start:\r
100               get_input: network_ipam_refs_data_ipam_subnets_addr_from_start_true\r
101         network_name: aaa\r
102     jsa_net2:\r
103       type: org.openecomp.resource.vl.nodes.heat.network.contrailV2.VirtualNetwork\r
104       properties:\r
105         network_ipam_refs_data:\r
106         - network_ipam_refs_data_ipam_subnets:\r
107           - network_ipam_refs_data_ipam_subnets_subnet:\r
108               network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len:\r
109                 get_input: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len_2\r
110               network_ipam_refs_data_ipam_subnets_subnet_ip_prefix:\r
111                 get_input: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_2\r
112             network_ipam_refs_data_ipam_subnets_addr_from_start:\r
113               get_input: network_ipam_refs_data_ipam_subnets_addr_from_start_true\r
114         network_name:\r
115           get_attribute:\r
116           - template_VMInt_OAM_lb_2\r
117           - virtual_machine_interface_properties\r
118           - virtual_machine_interface_properties_service_interface_type\r
119     jsa_net4:\r
120       type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork\r
121       properties:\r
122         network_name:\r
123           get_input: nems_traffic_name\r
124     template_VMInt_OAM_lb_1:\r
125       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface\r
126       properties:\r
127         name:\r
128         - UNSUPPORTED_RESOURCE_template_Vlan_1\r
129         security_group_refs:\r
130         - get_input: oam_sec_group_name\r
131         virtual_network_refs:\r
132         - jsa_net1\r
133         virtual_machine_interface_properties:\r
134           service_interface_type:\r
135             get_input: lb_st_interface_type_oam\r
136         port_tuple_refs:\r
137         - get_input: template_PortTuple_LB1\r
138       requirements:\r
139       - link:\r
140           capability: tosca.capabilities.network.Linkable\r
141           node: jsa_net1\r
142           relationship: tosca.relationships.network.LinksTo\r
143     template_VMInt_OAM_lb_2:\r
144       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface\r
145       properties:\r
146         security_group_refs:\r
147         - get_input: oam_sec_group_name\r
148         virtual_network_refs:\r
149         - list_join:\r
150           - ':'\r
151           - get_attribute:\r
152             - jsa_net2\r
153             - fq_name\r
154         virtual_machine_interface_properties:\r
155           service_interface_type:\r
156             get_input: lb_st_interface_type_oam\r
157         port_tuple_refs:\r
158         - get_input: template_PortTuple_LB1\r
159       requirements:\r
160       - link:\r
161           capability: tosca.capabilities.network.Linkable\r
162           node: jsa_net2\r
163           relationship: tosca.relationships.network.LinksTo\r
164     jsa_net1:\r
165       type: org.openecomp.resource.vl.nodes.heat.network.contrailV2.VirtualNetwork\r
166       properties:\r
167         network_ipam_refs_data:\r
168         - network_ipam_refs_data_ipam_subnets:\r
169           - network_ipam_refs_data_ipam_subnets_subnet:\r
170               network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len:\r
171                 get_input: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len_2\r
172               network_ipam_refs_data_ipam_subnets_subnet_ip_prefix:\r
173                 get_input: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_2\r
174             network_ipam_refs_data_ipam_subnets_addr_from_start:\r
175               get_input: network_ipam_refs_data_ipam_subnets_addr_from_start_true\r
176         network_name:\r
177         - UNSUPPORTED_RESOURCE_template_Vlan_1\r
178     template_VMInt_OAM_lb_3:\r
179       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface\r
180       properties:\r
181         security_group_refs:\r
182         - get_input: oam_sec_group_name\r
183         virtual_network_refs:\r
184         - get_attribute:\r
185           - jsa_net3\r
186           - fq_name\r
187         virtual_machine_interface_properties:\r
188           service_interface_type:\r
189             get_input: lb_st_interface_type_oam\r
190         port_tuple_refs:\r
191         - get_input: template_PortTuple_LB1\r
192       requirements:\r
193       - link:\r
194           capability: tosca.capabilities.network.Linkable\r
195           node: jsa_net3\r
196           relationship: tosca.relationships.network.LinksTo\r
197     template_VMInt_OAM_lb_4:\r
198       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface\r
199       properties:\r
200         security_group_refs:\r
201         - get_input: oam_sec_group_name\r
202         virtual_network_refs:\r
203         - get_attribute:\r
204           - jsa_net4\r
205           - fq_name\r
206         virtual_machine_interface_properties:\r
207           service_interface_type:\r
208             get_input: lb_st_interface_type_oam\r
209         port_tuple_refs:\r
210         - get_input: template_PortTuple_LB1\r
211     cmaui_port_1:\r
212       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port\r
213       properties:\r
214         replacement_policy: AUTO\r
215         ip_requirements:\r
216         - ip_version: 4\r
217           ip_count_required:\r
218             is_required: true\r
219           floating_ip_count_required:\r
220             is_required: false\r
221         - ip_version: 6\r
222           ip_count_required:\r
223             is_required: false\r
224           floating_ip_count_required:\r
225             is_required: false\r
226         security_groups:\r
227         - get_input: security_group_name\r
228         fixed_ips:\r
229         - ip_address:\r
230             get_input:\r
231             - cmaui_oam_ips\r
232             - 0\r
233         mac_requirements:\r
234           mac_count_required:\r
235             is_required: false\r
236         network: jsa_net1\r
237       requirements:\r
238       - link:\r
239           capability: tosca.capabilities.network.Linkable\r
240           node: jsa_net1\r
241           relationship: tosca.relationships.network.LinksTo\r
242   groups:\r
243     hot_template_group:\r
244       type: org.openecomp.groups.heat.HeatStack\r
245       properties:\r
246         heat_file: ../Artifacts/hot_template.yml\r
247         description: cmaui server template for vMMSC\r
248       members:\r
249       - jsa_net3\r
250       - jsa_net2\r
251       - jsa_net4\r
252       - template_VMInt_OAM_lb_1\r
253       - template_VMInt_OAM_lb_2\r
254       - jsa_net1\r
255       - template_VMInt_OAM_lb_3\r
256       - template_VMInt_OAM_lb_4\r
257       - cmaui_port_1\r
258   substitution_mappings:\r
259     node_type: org.openecomp.resource.abstract.nodes.heat.hot_template\r
260     capabilities:\r
261       network.incoming.packets.rate_cmaui_port_1:\r
262       - cmaui_port_1\r
263       - network.incoming.packets.rate\r
264       feature_cmaui_port_1:\r
265       - cmaui_port_1\r
266       - feature\r
267       forwarder_template_VMInt_OAM_lb_1:\r
268       - template_VMInt_OAM_lb_1\r
269       - forwarder\r
270       feature_jsa_net1:\r
271       - jsa_net1\r
272       - feature\r
273       feature_jsa_net2:\r
274       - jsa_net2\r
275       - feature\r
276       feature_jsa_net3:\r
277       - jsa_net3\r
278       - feature\r
279       binding_template_VMInt_OAM_lb_4:\r
280       - template_VMInt_OAM_lb_4\r
281       - binding\r
282       feature_jsa_net4:\r
283       - jsa_net4\r
284       - feature\r
285       binding_template_VMInt_OAM_lb_3:\r
286       - template_VMInt_OAM_lb_3\r
287       - binding\r
288       link_jsa_net2:\r
289       - jsa_net2\r
290       - link\r
291       network.outgoing.bytes.rate_template_VMInt_OAM_lb_1:\r
292       - template_VMInt_OAM_lb_1\r
293       - network.outgoing.bytes.rate\r
294       network.incoming.bytes_template_VMInt_OAM_lb_4:\r
295       - template_VMInt_OAM_lb_4\r
296       - network.incoming.bytes\r
297       network.outgoing.bytes.rate_template_VMInt_OAM_lb_2:\r
298       - template_VMInt_OAM_lb_2\r
299       - network.outgoing.bytes.rate\r
300       link_jsa_net1:\r
301       - jsa_net1\r
302       - link\r
303       network.incoming.bytes_template_VMInt_OAM_lb_3:\r
304       - template_VMInt_OAM_lb_3\r
305       - network.incoming.bytes\r
306       forwarder_template_VMInt_OAM_lb_4:\r
307       - template_VMInt_OAM_lb_4\r
308       - forwarder\r
309       network.outgoing.packets.rate_cmaui_port_1:\r
310       - cmaui_port_1\r
311       - network.outgoing.packets.rate\r
312       link_jsa_net4:\r
313       - jsa_net4\r
314       - link\r
315       network.incoming.bytes_template_VMInt_OAM_lb_2:\r
316       - template_VMInt_OAM_lb_2\r
317       - network.incoming.bytes\r
318       forwarder_template_VMInt_OAM_lb_3:\r
319       - template_VMInt_OAM_lb_3\r
320       - forwarder\r
321       network.outgoing.bytes_cmaui_port_1:\r
322       - cmaui_port_1\r
323       - network.outgoing.bytes\r
324       link_jsa_net3:\r
325       - jsa_net3\r
326       - link\r
327       network.incoming.bytes_template_VMInt_OAM_lb_1:\r
328       - template_VMInt_OAM_lb_1\r
329       - network.incoming.bytes\r
330       forwarder_template_VMInt_OAM_lb_2:\r
331       - template_VMInt_OAM_lb_2\r
332       - forwarder\r
333       attachment_cmaui_port_1:\r
334       - cmaui_port_1\r
335       - attachment\r
336       network.incoming.packets.rate_template_VMInt_OAM_lb_4:\r
337       - template_VMInt_OAM_lb_4\r
338       - network.incoming.packets.rate\r
339       network.incoming.packets.rate_template_VMInt_OAM_lb_3:\r
340       - template_VMInt_OAM_lb_3\r
341       - network.incoming.packets.rate\r
342       end_point_jsa_net3:\r
343       - jsa_net3\r
344       - end_point\r
345       network.incoming.packets.rate_template_VMInt_OAM_lb_2:\r
346       - template_VMInt_OAM_lb_2\r
347       - network.incoming.packets.rate\r
348       end_point_jsa_net4:\r
349       - jsa_net4\r
350       - end_point\r
351       network.incoming.packets.rate_template_VMInt_OAM_lb_1:\r
352       - template_VMInt_OAM_lb_1\r
353       - network.incoming.packets.rate\r
354       feature_template_VMInt_OAM_lb_4:\r
355       - template_VMInt_OAM_lb_4\r
356       - feature\r
357       feature_template_VMInt_OAM_lb_2:\r
358       - template_VMInt_OAM_lb_2\r
359       - feature\r
360       feature_template_VMInt_OAM_lb_3:\r
361       - template_VMInt_OAM_lb_3\r
362       - feature\r
363       attachment_jsa_net3:\r
364       - jsa_net3\r
365       - attachment\r
366       attachment_jsa_net2:\r
367       - jsa_net2\r
368       - attachment\r
369       feature_template_VMInt_OAM_lb_1:\r
370       - template_VMInt_OAM_lb_1\r
371       - feature\r
372       network.outgoing.packets.rate_template_VMInt_OAM_lb_2:\r
373       - template_VMInt_OAM_lb_2\r
374       - network.outgoing.packets.rate\r
375       attachment_jsa_net4:\r
376       - jsa_net4\r
377       - attachment\r
378       network.outgoing.packets.rate_template_VMInt_OAM_lb_1:\r
379       - template_VMInt_OAM_lb_1\r
380       - network.outgoing.packets.rate\r
381       forwarder_cmaui_port_1:\r
382       - cmaui_port_1\r
383       - forwarder\r
384       end_point_jsa_net1:\r
385       - jsa_net1\r
386       - end_point\r
387       end_point_jsa_net2:\r
388       - jsa_net2\r
389       - end_point\r
390       attachment_jsa_net1:\r
391       - jsa_net1\r
392       - attachment\r
393       network.outpoing.packets_template_VMInt_OAM_lb_1:\r
394       - template_VMInt_OAM_lb_1\r
395       - network.outpoing.packets\r
396       network.outpoing.packets_template_VMInt_OAM_lb_3:\r
397       - template_VMInt_OAM_lb_3\r
398       - network.outpoing.packets\r
399       network.outpoing.packets_template_VMInt_OAM_lb_2:\r
400       - template_VMInt_OAM_lb_2\r
401       - network.outpoing.packets\r
402       network.incoming.packets_cmaui_port_1:\r
403       - cmaui_port_1\r
404       - network.incoming.packets\r
405       network.outpoing.packets_template_VMInt_OAM_lb_4:\r
406       - template_VMInt_OAM_lb_4\r
407       - network.outpoing.packets\r
408       network.outgoing.packets.rate_template_VMInt_OAM_lb_4:\r
409       - template_VMInt_OAM_lb_4\r
410       - network.outgoing.packets.rate\r
411       network.outgoing.packets.rate_template_VMInt_OAM_lb_3:\r
412       - template_VMInt_OAM_lb_3\r
413       - network.outgoing.packets.rate\r
414       network.incoming.packets_template_VMInt_OAM_lb_1:\r
415       - template_VMInt_OAM_lb_1\r
416       - network.incoming.packets\r
417       network.incoming.packets_template_VMInt_OAM_lb_2:\r
418       - template_VMInt_OAM_lb_2\r
419       - network.incoming.packets\r
420       network.outgoing.bytes_template_VMInt_OAM_lb_3:\r
421       - template_VMInt_OAM_lb_3\r
422       - network.outgoing.bytes\r
423       network.incoming.packets_template_VMInt_OAM_lb_3:\r
424       - template_VMInt_OAM_lb_3\r
425       - network.incoming.packets\r
426       network.outgoing.bytes_template_VMInt_OAM_lb_4:\r
427       - template_VMInt_OAM_lb_4\r
428       - network.outgoing.bytes\r
429       network.incoming.packets_template_VMInt_OAM_lb_4:\r
430       - template_VMInt_OAM_lb_4\r
431       - network.incoming.packets\r
432       network.outgoing.bytes_template_VMInt_OAM_lb_1:\r
433       - template_VMInt_OAM_lb_1\r
434       - network.outgoing.bytes\r
435       network.outgoing.bytes_template_VMInt_OAM_lb_2:\r
436       - template_VMInt_OAM_lb_2\r
437       - network.outgoing.bytes\r
438       binding_cmaui_port_1:\r
439       - cmaui_port_1\r
440       - binding\r
441       network.outgoing.bytes.rate_template_VMInt_OAM_lb_3:\r
442       - template_VMInt_OAM_lb_3\r
443       - network.outgoing.bytes.rate\r
444       network.outgoing.bytes.rate_template_VMInt_OAM_lb_4:\r
445       - template_VMInt_OAM_lb_4\r
446       - network.outgoing.bytes.rate\r
447       network.incoming.bytes.rate_cmaui_port_1:\r
448       - cmaui_port_1\r
449       - network.incoming.bytes.rate\r
450       network.incoming.bytes.rate_template_VMInt_OAM_lb_1:\r
451       - template_VMInt_OAM_lb_1\r
452       - network.incoming.bytes.rate\r
453       binding_template_VMInt_OAM_lb_2:\r
454       - template_VMInt_OAM_lb_2\r
455       - binding\r
456       binding_template_VMInt_OAM_lb_1:\r
457       - template_VMInt_OAM_lb_1\r
458       - binding\r
459       network.incoming.bytes.rate_template_VMInt_OAM_lb_2:\r
460       - template_VMInt_OAM_lb_2\r
461       - network.incoming.bytes.rate\r
462       network.incoming.bytes.rate_template_VMInt_OAM_lb_3:\r
463       - template_VMInt_OAM_lb_3\r
464       - network.incoming.bytes.rate\r
465       network.incoming.bytes.rate_template_VMInt_OAM_lb_4:\r
466       - template_VMInt_OAM_lb_4\r
467       - network.incoming.bytes.rate\r
468       network.outpoing.packets_cmaui_port_1:\r
469       - cmaui_port_1\r
470       - network.outpoing.packets\r
471       network.outgoing.bytes.rate_cmaui_port_1:\r
472       - cmaui_port_1\r
473       - network.outgoing.bytes.rate\r
474       network.incoming.bytes_cmaui_port_1:\r
475       - cmaui_port_1\r
476       - network.incoming.bytes\r
477     requirements:\r
478       binding_cmaui_port_1:\r
479       - cmaui_port_1\r
480       - binding\r
481       dependency_jsa_net3:\r
482       - jsa_net3\r
483       - dependency\r
484       binding_template_VMInt_OAM_lb_2:\r
485       - template_VMInt_OAM_lb_2\r
486       - binding\r
487       dependency_jsa_net2:\r
488       - jsa_net2\r
489       - dependency\r
490       binding_template_VMInt_OAM_lb_1:\r
491       - template_VMInt_OAM_lb_1\r
492       - binding\r
493       dependency_jsa_net4:\r
494       - jsa_net4\r
495       - dependency\r
496       dependency_template_VMInt_OAM_lb_1:\r
497       - template_VMInt_OAM_lb_1\r
498       - dependency\r
499       dependency_template_VMInt_OAM_lb_2:\r
500       - template_VMInt_OAM_lb_2\r
501       - dependency\r
502       dependency_template_VMInt_OAM_lb_3:\r
503       - template_VMInt_OAM_lb_3\r
504       - dependency\r
505       dependency_template_VMInt_OAM_lb_4:\r
506       - template_VMInt_OAM_lb_4\r
507       - dependency\r
508       link_template_VMInt_OAM_lb_4:\r
509       - template_VMInt_OAM_lb_4\r
510       - link\r
511       dependency_cmaui_port_1:\r
512       - cmaui_port_1\r
513       - dependency\r
514       dependency_jsa_net1:\r
515       - jsa_net1\r
516       - dependency\r
517       binding_template_VMInt_OAM_lb_4:\r
518       - template_VMInt_OAM_lb_4\r
519       - binding\r
520       binding_template_VMInt_OAM_lb_3:\r
521       - template_VMInt_OAM_lb_3\r
522       - binding\r