db624ba8194fa5760341c7c7b34c09a3de62c11e
[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       type: string
13       description: dummy
14     lb_st_interface_type_oam:
15       hidden: false
16       immutable: false
17       type: string
18       description: dummy
19     oam_sec_group_name:
20       hidden: false
21       immutable: false
22       type: string
23       description: dummy
24     virtual_ip_address:
25       hidden: false
26       immutable: false
27       type: string
28     nems_traffic_name:
29       hidden: false
30       immutable: false
31       type: string
32       description: dummy
33     jsa_net_name:
34       hidden: false
35       immutable: false
36       type: string
37       description: dummy
38     vlan_ids:
39       hidden: false
40       immutable: false
41       type: string
42     virtual_ipv6_address:
43       hidden: false
44       immutable: false
45       type: string
46     lb_st_vlan_type_oam:
47       hidden: false
48       immutable: false
49       type: string
50       description: dummy
51     mac_address:
52       hidden: false
53       immutable: false
54       type: string
55     network_ipam_refs_data_ipam_subnets_addr_from_start_true:
56       hidden: false
57       immutable: false
58       type: string
59       description: dummy
60     subinterface_name_prefix:
61       hidden: false
62       immutable: false
63       type: string
64     subinterface_instance_index:
65       hidden: false
66       immutable: false
67       type: float
68     network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len_2:
69       hidden: false
70       immutable: false
71       type: string
72       description: dummy
73     network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_2:
74       hidden: false
75       immutable: false
76       type: string
77       description: dummy
78   node_templates:
79     jsa_net3:
80       type: org.openecomp.resource.vl.nodes.heat.network.contrailV2.VirtualNetwork
81       properties:
82         network_ipam_refs_data:
83         - network_ipam_refs_data_ipam_subnets:
84           - network_ipam_refs_data_ipam_subnets_subnet:
85               network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len:
86                 get_input: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len_2
87               network_ipam_refs_data_ipam_subnets_subnet_ip_prefix:
88                 get_input: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_2
89             network_ipam_refs_data_ipam_subnets_addr_from_start:
90               get_input: network_ipam_refs_data_ipam_subnets_addr_from_start_true
91         network_name: aaa
92     jsa_net2:
93       type: org.openecomp.resource.vl.nodes.heat.network.contrailV2.VirtualNetwork
94       properties:
95         network_ipam_refs_data:
96         - network_ipam_refs_data_ipam_subnets:
97           - network_ipam_refs_data_ipam_subnets_subnet:
98               network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len:
99                 get_input: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len_2
100               network_ipam_refs_data_ipam_subnets_subnet_ip_prefix:
101                 get_input: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_2
102             network_ipam_refs_data_ipam_subnets_addr_from_start:
103               get_input: network_ipam_refs_data_ipam_subnets_addr_from_start_true
104         network_name: aaa
105     jsa_net5:
106       type: org.openecomp.resource.vl.nodes.heat.network.contrailV2.VirtualNetwork
107       properties:
108         network_ipam_refs_data:
109         - network_ipam_refs_data_ipam_subnets:
110           - network_ipam_refs_data_ipam_subnets_subnet:
111               network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len:
112                 get_input: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len_2
113               network_ipam_refs_data_ipam_subnets_subnet_ip_prefix:
114                 get_input: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_2
115             network_ipam_refs_data_ipam_subnets_addr_from_start:
116               get_input: network_ipam_refs_data_ipam_subnets_addr_from_start_true
117         network_name: aaa
118     jsa_net4:
119       type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork
120       properties:
121         network_name:
122           get_input: nems_traffic_name
123     jsa_net1:
124       type: org.openecomp.resource.vl.nodes.heat.network.contrailV2.VirtualNetwork
125       properties:
126         network_ipam_refs_data:
127         - network_ipam_refs_data_ipam_subnets:
128           - network_ipam_refs_data_ipam_subnets_subnet:
129               network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len:
130                 get_input: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len_2
131               network_ipam_refs_data_ipam_subnets_subnet_ip_prefix:
132                 get_input: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_2
133             network_ipam_refs_data_ipam_subnets_addr_from_start:
134               get_input: network_ipam_refs_data_ipam_subnets_addr_from_start_true
135         network_name: aaa
136     template_VMInt_OAM_lb_5:
137       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
138       properties:
139         security_group_refs:
140         - get_input: oam_sec_group_name
141         virtual_network_refs: [
142           ]
143         virtual_machine_interface_properties:
144           service_interface_type:
145             get_input: lb_st_interface_type_oam
146         port_tuple_refs:
147         - get_input: template_PortTuple_LB1
148     template_VMInt_OAM_lb_6:
149       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
150       properties:
151         security_group_refs:
152         - get_input: oam_sec_group_name
153         virtual_network_refs:
154           get_attribute:
155           - jsa_net3
156           - fq_name
157         virtual_machine_interface_properties:
158           service_interface_type:
159             get_input: lb_st_interface_type_oam
160         port_tuple_refs:
161         - get_input: template_PortTuple_LB1
162     template_VMInt_OAM_lb_7:
163       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
164       properties:
165         security_group_refs:
166         - get_input: oam_sec_group_name
167         virtual_machine_interface_properties:
168           service_interface_type:
169             get_input: lb_st_interface_type_oam
170         port_tuple_refs:
171         - get_input: template_PortTuple_LB1
172     template_VMInt_OAM_lb_1:
173       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
174       properties:
175         security_group_refs:
176         - get_input: oam_sec_group_name
177         virtual_network_refs:
178         - jsa_net1
179         - jsa_net5
180         virtual_machine_interface_properties:
181           service_interface_type:
182             get_input: lb_st_interface_type_oam
183         port_tuple_refs:
184         - get_input: template_PortTuple_LB1
185       requirements:
186       - link:
187           capability: tosca.capabilities.network.Linkable
188           node: jsa_net1
189           relationship: tosca.relationships.network.LinksTo
190     template_VMInt_OAM_lb_2:
191       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
192       properties:
193         security_group_refs:
194         - get_input: oam_sec_group_name
195         virtual_network_refs:
196         - list_join:
197           - ':'
198           - get_attribute:
199             - jsa_net2
200             - fq_name
201         - list_join:
202           - ':'
203           - get_attribute:
204             - jsa_net5
205             - fq_name
206         virtual_machine_interface_properties:
207           service_interface_type:
208             get_input: lb_st_interface_type_oam
209         port_tuple_refs:
210         - get_input: template_PortTuple_LB1
211       requirements:
212       - link:
213           capability: tosca.capabilities.network.Linkable
214           node: jsa_net2
215           relationship: tosca.relationships.network.LinksTo
216     template_VMInt_OAM_lb_3:
217       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
218       properties:
219         security_group_refs:
220         - get_input: oam_sec_group_name
221         virtual_network_refs:
222         - get_attribute:
223           - jsa_net3
224           - fq_name
225         - get_attribute:
226           - jsa_net5
227           - fq_name
228         virtual_machine_interface_properties:
229           service_interface_type:
230             get_input: lb_st_interface_type_oam
231         port_tuple_refs:
232         - get_input: template_PortTuple_LB1
233       requirements:
234       - link:
235           capability: tosca.capabilities.network.Linkable
236           node: jsa_net3
237           relationship: tosca.relationships.network.LinksTo
238     template_VMInt_OAM_lb_4:
239       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
240       properties:
241         security_group_refs:
242         - get_input: oam_sec_group_name
243         virtual_network_refs:
244         - get_attribute:
245           - jsa_net4
246           - fq_name
247         virtual_machine_interface_properties:
248           service_interface_type:
249             get_input: lb_st_interface_type_oam
250         port_tuple_refs:
251         - get_input: template_PortTuple_LB1
252     template_Vlan_3:
253       type: org.openecomp.resource.cp.nodes.heat.network.contrailV2.VLANSubInterface
254       properties:
255         virtual_machine_interface_refs:
256         - get_attribute:
257           - template_VMInt_OAM_lb_3
258           - fq_name
259         - get_attribute:
260           - template_VMInt_OAM_lb_1
261           - fq_name
262         name:
263           str_replace:
264             template: $NAME$VLAN
265             params:
266               $NAME:
267                 get_input: subinterface_name_prefix
268               $VLAN:
269                 get_input:
270                 - vlan_ids
271                 - get_input: subinterface_instance_index
272         virtual_network_refs:
273         - get_attribute:
274           - jsa_net3
275           - fq_name
276         - get_attribute:
277           - jsa_net5
278           - fq_name
279         virtual_machine_interface_properties:
280           sub_interface_vlan_tag:
281             get_input: lb_st_vlan_type_oam
282         virtual_machine_interface_allowed_address_pairs:
283           allowed_address_pair:
284           - address_mode: active-standby
285             ip:
286               ip_prefix:
287                 get_input: virtual_ip_address
288               ip_prefix_len: 32
289             mac:
290               get_input: mac_address
291           - address_mode: active-standby
292             ip:
293               ip_prefix:
294                 get_input: virtual_ipv6_address
295               ip_prefix_len: 128
296             mac:
297               get_input: mac_address
298         virtual_machine_interface_mac_addresses:
299           mac_address:
300           - get_input: mac_address
301       requirements:
302       - link:
303           capability: tosca.capabilities.network.Linkable
304           node: jsa_net3
305           relationship: tosca.relationships.network.LinksTo
306       - binding:
307           capability: tosca.capabilities.network.Bindable
308           node: template_VMInt_OAM_lb_3
309           relationship: tosca.relationships.network.BindsTo
310     template_Vlan_2:
311       type: org.openecomp.resource.cp.nodes.heat.network.contrailV2.VLANSubInterface
312       properties:
313         virtual_machine_interface_refs:
314         - list_join:
315           - ':'
316           - get_attribute:
317             - template_VMInt_OAM_lb_1
318             - fq_name
319         - list_join:
320           - ':'
321           - get_attribute:
322             - template_VMInt_OAM_lb_2
323             - fq_name
324         name:
325           str_replace:
326             template: $NAME$VLAN
327             params:
328               $NAME:
329                 get_input: subinterface_name_prefix
330               $VLAN:
331                 get_input:
332                 - vlan_ids
333                 - get_input: subinterface_instance_index
334         virtual_network_refs:
335         - list_join:
336           - ':'
337           - get_attribute:
338             - jsa_net2
339             - fq_name
340         - list_join:
341           - ':'
342           - get_attribute:
343             - jsa_net5
344             - fq_name
345         virtual_machine_interface_properties:
346           sub_interface_vlan_tag:
347             get_input: lb_st_vlan_type_oam
348         virtual_machine_interface_allowed_address_pairs:
349           allowed_address_pair:
350           - address_mode: active-standby
351             ip:
352               ip_prefix:
353                 get_input: virtual_ip_address
354               ip_prefix_len: 32
355             mac:
356               get_input: mac_address
357           - address_mode: active-standby
358             ip:
359               ip_prefix:
360                 get_input: virtual_ipv6_address
361               ip_prefix_len: 128
362             mac:
363               get_input: mac_address
364         virtual_machine_interface_mac_addresses:
365           mac_address:
366           - get_input: mac_address
367       requirements:
368       - link:
369           capability: tosca.capabilities.network.Linkable
370           node: jsa_net2
371           relationship: tosca.relationships.network.LinksTo
372       - binding:
373           capability: tosca.capabilities.network.Bindable
374           node: template_VMInt_OAM_lb_1
375           relationship: tosca.relationships.network.BindsTo
376     template_Vlan_1:
377       type: org.openecomp.resource.cp.nodes.heat.network.contrailV2.VLANSubInterface
378       properties:
379         virtual_machine_interface_refs:
380         - template_VMInt_OAM_lb_1
381         - template_VMInt_OAM_lb_2
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         - jsa_net1
394         - jsa_net5
395         virtual_machine_interface_properties:
396           sub_interface_vlan_tag:
397             get_input: lb_st_vlan_type_oam
398         virtual_machine_interface_allowed_address_pairs:
399           allowed_address_pair:
400           - address_mode: active-standby
401             ip:
402               ip_prefix:
403                 get_input: virtual_ip_address
404               ip_prefix_len: 32
405             mac:
406               get_input: mac_address
407           - address_mode: active-standby
408             ip:
409               ip_prefix:
410                 get_input: virtual_ipv6_address
411               ip_prefix_len: 128
412             mac:
413               get_input: mac_address
414         virtual_machine_interface_mac_addresses:
415           mac_address:
416           - get_input: mac_address
417       requirements:
418       - link:
419           capability: tosca.capabilities.network.Linkable
420           node: jsa_net1
421           relationship: tosca.relationships.network.LinksTo
422       - binding:
423           capability: tosca.capabilities.network.Bindable
424           node: template_VMInt_OAM_lb_1
425           relationship: tosca.relationships.network.BindsTo
426   groups:
427     hot_template_group:
428       type: org.openecomp.groups.heat.HeatStack
429       properties:
430         heat_file: ../Artifacts/hot_template.yml
431         description: cmaui server template for vMMSC
432       members:
433       - jsa_net3
434       - jsa_net2
435       - jsa_net5
436       - jsa_net4
437       - jsa_net1
438       - template_VMInt_OAM_lb_5
439       - template_VMInt_OAM_lb_6
440       - template_VMInt_OAM_lb_7
441       - template_VMInt_OAM_lb_1
442       - template_VMInt_OAM_lb_2
443       - template_VMInt_OAM_lb_3
444       - template_VMInt_OAM_lb_4
445       - template_Vlan_3
446       - template_Vlan_2
447       - template_Vlan_1