84c2ef46a03dab518c898c804865e17b64dc6751
[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 topology_template:
8   inputs:
9     template_PortTuple_LB1:
10       hidden: false
11       immutable: false
12       annotations:
13         source:
14           type: org.openecomp.annotations.Source
15           properties:
16             vf_module_label:
17             - hot_template
18             source_type: HEAT
19             param_name: template_PortTuple_LB1
20       type: string
21       description: dummy
22     lb_st_interface_type_oam:
23       hidden: false
24       immutable: false
25       annotations:
26         source:
27           type: org.openecomp.annotations.Source
28           properties:
29             vf_module_label:
30             - hot_template
31             source_type: HEAT
32             param_name: lb_st_interface_type_oam
33       type: string
34       description: dummy
35     oam_sec_group_name:
36       hidden: false
37       immutable: false
38       annotations:
39         source:
40           type: org.openecomp.annotations.Source
41           properties:
42             vf_module_label:
43             - hot_template
44             source_type: HEAT
45             param_name: oam_sec_group_name
46       type: string
47       description: dummy
48     virtual_ip_address:
49       hidden: false
50       immutable: false
51       annotations:
52         source:
53           type: org.openecomp.annotations.Source
54           properties:
55             vf_module_label:
56             - hot_template
57             source_type: HEAT
58             param_name: virtual_ip_address
59       type: string
60     nems_traffic_name:
61       hidden: false
62       immutable: false
63       annotations:
64         source:
65           type: org.openecomp.annotations.Source
66           properties:
67             vf_module_label:
68             - hot_template
69             source_type: HEAT
70             param_name: nems_traffic_name
71       type: string
72       description: dummy
73     jsa_net_name:
74       hidden: false
75       immutable: false
76       annotations:
77         source:
78           type: org.openecomp.annotations.Source
79           properties:
80             vf_module_label:
81             - hot_template
82             source_type: HEAT
83             param_name: jsa_net_name
84       type: string
85       description: dummy
86     vlan_ids:
87       hidden: false
88       immutable: false
89       annotations:
90         source:
91           type: org.openecomp.annotations.Source
92           properties:
93             vf_module_label:
94             - hot_template
95             source_type: HEAT
96             param_name: vlan_ids
97       type: string
98     virtual_ipv6_address:
99       hidden: false
100       immutable: false
101       annotations:
102         source:
103           type: org.openecomp.annotations.Source
104           properties:
105             vf_module_label:
106             - hot_template
107             source_type: HEAT
108             param_name: virtual_ipv6_address
109       type: string
110     lb_st_vlan_type_oam:
111       hidden: false
112       immutable: false
113       annotations:
114         source:
115           type: org.openecomp.annotations.Source
116           properties:
117             vf_module_label:
118             - hot_template
119             source_type: HEAT
120             param_name: lb_st_vlan_type_oam
121       type: string
122       description: dummy
123     mac_address:
124       hidden: false
125       immutable: false
126       annotations:
127         source:
128           type: org.openecomp.annotations.Source
129           properties:
130             vf_module_label:
131             - hot_template
132             source_type: HEAT
133             param_name: mac_address
134       type: string
135     network_ipam_refs_data_ipam_subnets_addr_from_start_true:
136       hidden: false
137       immutable: false
138       annotations:
139         source:
140           type: org.openecomp.annotations.Source
141           properties:
142             vf_module_label:
143             - hot_template
144             source_type: HEAT
145             param_name: network_ipam_refs_data_ipam_subnets_addr_from_start_true
146       type: string
147       description: dummy
148     subinterface_name_prefix:
149       hidden: false
150       immutable: false
151       annotations:
152         source:
153           type: org.openecomp.annotations.Source
154           properties:
155             vf_module_label:
156             - hot_template
157             source_type: HEAT
158             param_name: subinterface_name_prefix
159       type: string
160     subinterface_instance_index:
161       hidden: false
162       immutable: false
163       annotations:
164         source:
165           type: org.openecomp.annotations.Source
166           properties:
167             vf_module_label:
168             - hot_template
169             source_type: HEAT
170             param_name: subinterface_instance_index
171       type: float
172     network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len_2:
173       hidden: false
174       immutable: false
175       annotations:
176         source:
177           type: org.openecomp.annotations.Source
178           properties:
179             vf_module_label:
180             - hot_template
181             source_type: HEAT
182             param_name: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len_2
183       type: string
184       description: dummy
185     network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_2:
186       hidden: false
187       immutable: false
188       annotations:
189         source:
190           type: org.openecomp.annotations.Source
191           properties:
192             vf_module_label:
193             - hot_template
194             source_type: HEAT
195             param_name: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_2
196       type: string
197       description: dummy
198   node_templates:
199     jsa_net3:
200       type: org.openecomp.resource.vl.nodes.heat.network.contrailV2.VirtualNetwork
201       properties:
202         network_ipam_refs_data:
203         - network_ipam_refs_data_ipam_subnets:
204           - network_ipam_refs_data_ipam_subnets_subnet:
205               network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len:
206                 get_input: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len_2
207               network_ipam_refs_data_ipam_subnets_subnet_ip_prefix:
208                 get_input: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_2
209             network_ipam_refs_data_ipam_subnets_addr_from_start:
210               get_input: network_ipam_refs_data_ipam_subnets_addr_from_start_true
211         network_name: aaa
212     jsa_net2:
213       type: org.openecomp.resource.vl.nodes.heat.network.contrailV2.VirtualNetwork
214       properties:
215         network_ipam_refs_data:
216         - network_ipam_refs_data_ipam_subnets:
217           - network_ipam_refs_data_ipam_subnets_subnet:
218               network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len:
219                 get_input: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len_2
220               network_ipam_refs_data_ipam_subnets_subnet_ip_prefix:
221                 get_input: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_2
222             network_ipam_refs_data_ipam_subnets_addr_from_start:
223               get_input: network_ipam_refs_data_ipam_subnets_addr_from_start_true
224         network_name: aaa
225     jsa_net5:
226       type: org.openecomp.resource.vl.nodes.heat.network.contrailV2.VirtualNetwork
227       properties:
228         network_ipam_refs_data:
229         - network_ipam_refs_data_ipam_subnets:
230           - network_ipam_refs_data_ipam_subnets_subnet:
231               network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len:
232                 get_input: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len_2
233               network_ipam_refs_data_ipam_subnets_subnet_ip_prefix:
234                 get_input: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_2
235             network_ipam_refs_data_ipam_subnets_addr_from_start:
236               get_input: network_ipam_refs_data_ipam_subnets_addr_from_start_true
237         network_name: aaa
238     jsa_net4:
239       type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork
240       properties:
241         network_name:
242           get_input: nems_traffic_name
243     jsa_net1:
244       type: org.openecomp.resource.vl.nodes.heat.network.contrailV2.VirtualNetwork
245       properties:
246         network_ipam_refs_data:
247         - network_ipam_refs_data_ipam_subnets:
248           - network_ipam_refs_data_ipam_subnets_subnet:
249               network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len:
250                 get_input: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len_2
251               network_ipam_refs_data_ipam_subnets_subnet_ip_prefix:
252                 get_input: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_2
253             network_ipam_refs_data_ipam_subnets_addr_from_start:
254               get_input: network_ipam_refs_data_ipam_subnets_addr_from_start_true
255         network_name: aaa
256     template_VMInt_OAM_lb_5:
257       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
258       properties:
259         security_group_refs:
260         - get_input: oam_sec_group_name
261         virtual_network_refs: [
262           ]
263         virtual_machine_interface_properties:
264           service_interface_type:
265             get_input: lb_st_interface_type_oam
266         port_tuple_refs:
267         - get_input: template_PortTuple_LB1
268     template_VMInt_OAM_lb_6:
269       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
270       properties:
271         security_group_refs:
272         - get_input: oam_sec_group_name
273         virtual_network_refs:
274           get_attribute:
275           - jsa_net3
276           - fq_name
277         virtual_machine_interface_properties:
278           service_interface_type:
279             get_input: lb_st_interface_type_oam
280         port_tuple_refs:
281         - get_input: template_PortTuple_LB1
282     template_VMInt_OAM_lb_7:
283       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
284       properties:
285         security_group_refs:
286         - get_input: oam_sec_group_name
287         virtual_machine_interface_properties:
288           service_interface_type:
289             get_input: lb_st_interface_type_oam
290         port_tuple_refs:
291         - get_input: template_PortTuple_LB1
292     template_VMInt_OAM_lb_1:
293       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
294       properties:
295         security_group_refs:
296         - get_input: oam_sec_group_name
297         virtual_network_refs:
298         - jsa_net1
299         - jsa_net5
300         virtual_machine_interface_properties:
301           service_interface_type:
302             get_input: lb_st_interface_type_oam
303         port_tuple_refs:
304         - get_input: template_PortTuple_LB1
305       requirements:
306       - link:
307           capability: tosca.capabilities.network.Linkable
308           node: jsa_net1
309           relationship: tosca.relationships.network.LinksTo
310     template_VMInt_OAM_lb_2:
311       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
312       properties:
313         security_group_refs:
314         - get_input: oam_sec_group_name
315         virtual_network_refs:
316         - list_join:
317           - ':'
318           - get_attribute:
319             - jsa_net2
320             - fq_name
321         - list_join:
322           - ':'
323           - get_attribute:
324             - jsa_net5
325             - fq_name
326         virtual_machine_interface_properties:
327           service_interface_type:
328             get_input: lb_st_interface_type_oam
329         port_tuple_refs:
330         - get_input: template_PortTuple_LB1
331       requirements:
332       - link:
333           capability: tosca.capabilities.network.Linkable
334           node: jsa_net2
335           relationship: tosca.relationships.network.LinksTo
336     template_VMInt_OAM_lb_3:
337       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
338       properties:
339         security_group_refs:
340         - get_input: oam_sec_group_name
341         virtual_network_refs:
342         - get_attribute:
343           - jsa_net3
344           - fq_name
345         - get_attribute:
346           - jsa_net5
347           - fq_name
348         virtual_machine_interface_properties:
349           service_interface_type:
350             get_input: lb_st_interface_type_oam
351         port_tuple_refs:
352         - get_input: template_PortTuple_LB1
353       requirements:
354       - link:
355           capability: tosca.capabilities.network.Linkable
356           node: jsa_net3
357           relationship: tosca.relationships.network.LinksTo
358     template_VMInt_OAM_lb_4:
359       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
360       properties:
361         security_group_refs:
362         - get_input: oam_sec_group_name
363         virtual_network_refs:
364         - get_attribute:
365           - jsa_net4
366           - fq_name
367         virtual_machine_interface_properties:
368           service_interface_type:
369             get_input: lb_st_interface_type_oam
370         port_tuple_refs:
371         - get_input: template_PortTuple_LB1
372     template_Vlan_3:
373       type: org.openecomp.resource.cp.nodes.heat.network.contrailV2.VLANSubInterface
374       properties:
375         virtual_machine_interface_refs:
376         - get_attribute:
377           - template_VMInt_OAM_lb_3
378           - fq_name
379         - get_attribute:
380           - template_VMInt_OAM_lb_1
381           - fq_name
382         name:
383           str_replace:
384             template: $NAME$VLAN
385             params:
386               $NAME:
387                 get_input: subinterface_name_prefix
388               $VLAN:
389                 get_input:
390                 - vlan_ids
391                 - get_input: subinterface_instance_index
392         virtual_network_refs:
393         - get_attribute:
394           - jsa_net3
395           - fq_name
396         - get_attribute:
397           - jsa_net5
398           - fq_name
399         virtual_machine_interface_properties:
400           sub_interface_vlan_tag:
401             get_input: lb_st_vlan_type_oam
402         virtual_machine_interface_allowed_address_pairs:
403           allowed_address_pair:
404           - address_mode: active-standby
405             ip:
406               ip_prefix:
407                 get_input: virtual_ip_address
408               ip_prefix_len: 32
409             mac:
410               get_input: mac_address
411           - address_mode: active-standby
412             ip:
413               ip_prefix:
414                 get_input: virtual_ipv6_address
415               ip_prefix_len: 128
416             mac:
417               get_input: mac_address
418         virtual_machine_interface_mac_addresses:
419           mac_address:
420           - get_input: mac_address
421       requirements:
422       - link:
423           capability: tosca.capabilities.network.Linkable
424           node: jsa_net3
425           relationship: tosca.relationships.network.LinksTo
426       - binding:
427           capability: tosca.capabilities.network.Bindable
428           node: template_VMInt_OAM_lb_3
429           relationship: tosca.relationships.network.BindsTo
430     template_Vlan_2:
431       type: org.openecomp.resource.cp.nodes.heat.network.contrailV2.VLANSubInterface
432       properties:
433         virtual_machine_interface_refs:
434         - list_join:
435           - ':'
436           - get_attribute:
437             - template_VMInt_OAM_lb_1
438             - fq_name
439         - list_join:
440           - ':'
441           - get_attribute:
442             - template_VMInt_OAM_lb_2
443             - fq_name
444         name:
445           str_replace:
446             template: $NAME$VLAN
447             params:
448               $NAME:
449                 get_input: subinterface_name_prefix
450               $VLAN:
451                 get_input:
452                 - vlan_ids
453                 - get_input: subinterface_instance_index
454         virtual_network_refs:
455         - list_join:
456           - ':'
457           - get_attribute:
458             - jsa_net2
459             - fq_name
460         - list_join:
461           - ':'
462           - get_attribute:
463             - jsa_net5
464             - fq_name
465         virtual_machine_interface_properties:
466           sub_interface_vlan_tag:
467             get_input: lb_st_vlan_type_oam
468         virtual_machine_interface_allowed_address_pairs:
469           allowed_address_pair:
470           - address_mode: active-standby
471             ip:
472               ip_prefix:
473                 get_input: virtual_ip_address
474               ip_prefix_len: 32
475             mac:
476               get_input: mac_address
477           - address_mode: active-standby
478             ip:
479               ip_prefix:
480                 get_input: virtual_ipv6_address
481               ip_prefix_len: 128
482             mac:
483               get_input: mac_address
484         virtual_machine_interface_mac_addresses:
485           mac_address:
486           - get_input: mac_address
487       requirements:
488       - link:
489           capability: tosca.capabilities.network.Linkable
490           node: jsa_net2
491           relationship: tosca.relationships.network.LinksTo
492       - binding:
493           capability: tosca.capabilities.network.Bindable
494           node: template_VMInt_OAM_lb_1
495           relationship: tosca.relationships.network.BindsTo
496     template_Vlan_1:
497       type: org.openecomp.resource.cp.nodes.heat.network.contrailV2.VLANSubInterface
498       properties:
499         virtual_machine_interface_refs:
500         - template_VMInt_OAM_lb_1
501         - template_VMInt_OAM_lb_2
502         name:
503           str_replace:
504             template: $NAME$VLAN
505             params:
506               $NAME:
507                 get_input: subinterface_name_prefix
508               $VLAN:
509                 get_input:
510                 - vlan_ids
511                 - get_input: subinterface_instance_index
512         virtual_network_refs:
513         - jsa_net1
514         - jsa_net5
515         virtual_machine_interface_properties:
516           sub_interface_vlan_tag:
517             get_input: lb_st_vlan_type_oam
518         virtual_machine_interface_allowed_address_pairs:
519           allowed_address_pair:
520           - address_mode: active-standby
521             ip:
522               ip_prefix:
523                 get_input: virtual_ip_address
524               ip_prefix_len: 32
525             mac:
526               get_input: mac_address
527           - address_mode: active-standby
528             ip:
529               ip_prefix:
530                 get_input: virtual_ipv6_address
531               ip_prefix_len: 128
532             mac:
533               get_input: mac_address
534         virtual_machine_interface_mac_addresses:
535           mac_address:
536           - get_input: mac_address
537       requirements:
538       - link:
539           capability: tosca.capabilities.network.Linkable
540           node: jsa_net1
541           relationship: tosca.relationships.network.LinksTo
542       - binding:
543           capability: tosca.capabilities.network.Bindable
544           node: template_VMInt_OAM_lb_1
545           relationship: tosca.relationships.network.BindsTo
546   groups:
547     hot_template_group:
548       type: org.openecomp.groups.heat.HeatStack
549       properties:
550         heat_file: ../Artifacts/hot_template.yml
551         description: cmaui server template for vMMSC
552       members:
553       - jsa_net3
554       - jsa_net2
555       - jsa_net5
556       - jsa_net4
557       - jsa_net1
558       - template_VMInt_OAM_lb_5
559       - template_VMInt_OAM_lb_6
560       - template_VMInt_OAM_lb_7
561       - template_VMInt_OAM_lb_1
562       - template_VMInt_OAM_lb_2
563       - template_VMInt_OAM_lb_3
564       - template_VMInt_OAM_lb_4
565       - template_Vlan_3
566       - template_Vlan_2
567       - template_Vlan_1