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