[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 / VlanToNetConnection / shared / expectedoutputfiles / nested1ServiceTemplate.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: nested1
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 - GlobalSubstitutionTypes:
38     file: GlobalSubstitutionTypesServiceTemplate.yaml
39 node_types:
40   org.openecomp.resource.vfc.nodes.heat.abc:
41     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
42   org.openecomp.resource.vfc.nodes.heat.cmaui:
43     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
44 topology_template:
45   inputs:
46     cmaui_names:
47       hidden: false
48       immutable: false
49       type: list
50       description: CMAUI1, CMAUI2 server names
51       entry_schema:
52         type: string
53     p2:
54       hidden: false
55       immutable: false
56       type: string
57       description: UID of OAM network
58     abc_flavor:
59       hidden: false
60       immutable: false
61       type: string
62       description: Flavor for CMAUI server
63     template_PortTuple_LB1:
64       hidden: false
65       immutable: false
66       type: string
67     oam_sec_group_name:
68       hidden: false
69       immutable: false
70       type: string
71     lb_st_interface_type_oam:
72       hidden: false
73       immutable: false
74       type: string
75     virtual_ip_address:
76       hidden: false
77       immutable: false
78       type: string
79     abc_names:
80       hidden: false
81       immutable: false
82       type: list
83       description: CMAUI1, CMAUI2 server names
84       entry_schema:
85         type: string
86     security_group_name:
87       hidden: false
88       immutable: false
89       description: not impotrtant
90     vlan_ids:
91       hidden: false
92       immutable: false
93       type: string
94     shared_network_id1:
95       hidden: false
96       immutable: false
97       type: string
98       description: UID of OAM network
99     cmaui_image:
100       hidden: false
101       immutable: false
102       type: string
103       description: Image for CMAUI server
104     virtual_ipv6_address:
105       hidden: false
106       immutable: false
107       type: string
108     cmaui_flavor:
109       hidden: false
110       immutable: false
111       type: string
112       description: Flavor for CMAUI server
113     lb_st_vlan_type_oam:
114       hidden: false
115       immutable: false
116       type: string
117       description: dummy
118     mac_address:
119       hidden: false
120       immutable: false
121       type: string
122     availability_zone_0:
123       label: availabilityzone name
124       hidden: false
125       immutable: false
126       type: string
127       description: availabilityzone name
128     abc_oam_ips:
129       hidden: false
130       immutable: false
131       type: string
132     subinterface_name_prefix:
133       hidden: false
134       immutable: false
135       type: string
136     subinterface_instance_index:
137       hidden: false
138       immutable: false
139       type: float
140     cmaui_oam_ips:
141       hidden: false
142       immutable: false
143       type: string
144     abc_image:
145       hidden: false
146       immutable: false
147       type: string
148       description: Image for CMAUI server
149   node_templates:
150     template_VMInt_OAM_lb_1:
151       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
152       properties:
153         security_group_refs:
154         - get_input: oam_sec_group_name
155         virtual_network_refs:
156         - get_input: shared_network_id1
157         virtual_machine_interface_properties:
158           virtual_machine_interface_properties_service_interface_type:
159             get_input: lb_st_interface_type_oam
160         port_tuple_refs:
161         - get_input: template_PortTuple_LB1
162       requirements:
163       - binding:
164           capability: tosca.capabilities.network.Bindable
165           node: server_cmaui
166           relationship: tosca.relationships.network.BindsTo
167     template_VMInt_OAM_lb_2:
168       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
169       properties:
170         security_group_refs:
171         - get_input: oam_sec_group_name
172         virtual_network_refs:
173         - get_input: p2
174         virtual_machine_interface_properties:
175           virtual_machine_interface_properties_service_interface_type:
176             get_input: lb_st_interface_type_oam
177         port_tuple_refs:
178         - get_input: template_PortTuple_LB1
179       requirements:
180       - binding:
181           capability: tosca.capabilities.network.Bindable
182           node: server_cmaui
183           relationship: tosca.relationships.network.BindsTo
184     template_VMInt_OAM_lb_3:
185       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
186       properties:
187         security_group_refs:
188         - get_input: oam_sec_group_name
189         virtual_network_refs:
190         - get_input: p2
191         - get_input: shared_network_id1
192         virtual_machine_interface_properties:
193           virtual_machine_interface_properties_service_interface_type:
194             get_input: lb_st_interface_type_oam
195         port_tuple_refs:
196         - get_input: template_PortTuple_LB1
197       requirements:
198       - binding:
199           capability: tosca.capabilities.network.Bindable
200           node: server_cmaui
201           relationship: tosca.relationships.network.BindsTo
202     server_cmaui:
203       type: org.openecomp.resource.vfc.nodes.heat.cmaui
204       properties:
205         flavor:
206           get_input: cmaui_flavor
207         availability_zone:
208           get_input: availability_zone_0
209         image:
210           get_input: cmaui_image
211         contrail_service_instance_ind: true
212         name:
213           get_input:
214           - cmaui_names
215           - 0
216     server_abc:
217       type: org.openecomp.resource.vfc.nodes.heat.abc
218       properties:
219         flavor:
220           get_input: abc_flavor
221         availability_zone:
222           get_input: availability_zone_0
223         image:
224           get_input: abc_image
225         name:
226           get_input:
227           - abc_names
228           - 0
229     template_Vlan_3:
230       type: org.openecomp.resource.cp.nodes.heat.network.contrailV2.VLANSubInterface
231       properties:
232         virtual_machine_interface_refs:
233         - template_VMInt_OAM_lb_3
234         name:
235           str_replace:
236             template: $NAME$VLAN
237             params:
238               $NAME:
239                 get_input: subinterface_name_prefix
240               $VLAN:
241                 get_input:
242                 - vlan_ids
243                 - get_input: subinterface_instance_index
244         virtual_network_refs:
245         - get_input: p2
246         - get_input: shared_network_id1
247         virtual_machine_interface_properties:
248           sub_interface_vlan_tag:
249             get_input: lb_st_vlan_type_oam
250         virtual_machine_interface_allowed_address_pairs:
251           allowed_address_pair:
252           - address_mode: active-standby
253             ip:
254               ip_prefix:
255                 get_input: virtual_ip_address
256               ip_prefix_len: 32
257             mac:
258               get_input: mac_address
259           - address_mode: active-standby
260             ip:
261               ip_prefix:
262                 get_input: virtual_ipv6_address
263               ip_prefix_len: 128
264             mac:
265               get_input: mac_address
266         virtual_machine_interface_mac_addresses:
267           mac_address:
268           - get_input: mac_address
269       requirements:
270       - binding:
271           capability: tosca.capabilities.network.Bindable
272           node: template_VMInt_OAM_lb_3
273           relationship: tosca.relationships.network.BindsTo
274     abc_port_1:
275       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
276       properties:
277         replacement_policy: AUTO
278         security_groups:
279         - get_input: security_group_name
280         fixed_ips:
281         - ip_address:
282             get_input:
283             - abc_oam_ips
284             - 0
285         network:
286           get_input: p2
287       requirements:
288       - binding:
289           capability: tosca.capabilities.network.Bindable
290           node: server_abc
291           relationship: tosca.relationships.network.BindsTo
292     template_Vlan_2:
293       type: org.openecomp.resource.cp.nodes.heat.network.contrailV2.VLANSubInterface
294       properties:
295         virtual_machine_interface_refs:
296         - template_VMInt_OAM_lb_2
297         name:
298           str_replace:
299             template: $NAME$VLAN
300             params:
301               $NAME:
302                 get_input: subinterface_name_prefix
303               $VLAN:
304                 get_input:
305                 - vlan_ids
306                 - get_input: subinterface_instance_index
307         virtual_network_refs:
308         - get_input: p2
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       - binding:
333           capability: tosca.capabilities.network.Bindable
334           node: template_VMInt_OAM_lb_2
335           relationship: tosca.relationships.network.BindsTo
336     template_Vlan_1:
337       type: org.openecomp.resource.cp.nodes.heat.network.contrailV2.VLANSubInterface
338       properties:
339         virtual_machine_interface_refs:
340         - template_VMInt_OAM_lb_1
341         name:
342           str_replace:
343             template: $NAME$VLAN
344             params:
345               $NAME:
346                 get_input: subinterface_name_prefix
347               $VLAN:
348                 get_input:
349                 - vlan_ids
350                 - get_input: subinterface_instance_index
351         virtual_network_refs:
352         - get_input: shared_network_id1
353         virtual_machine_interface_properties:
354           sub_interface_vlan_tag:
355             get_input: lb_st_vlan_type_oam
356         virtual_machine_interface_allowed_address_pairs:
357           allowed_address_pair:
358           - address_mode: active-standby
359             ip:
360               ip_prefix:
361                 get_input: virtual_ip_address
362               ip_prefix_len: 32
363             mac:
364               get_input: mac_address
365           - address_mode: active-standby
366             ip:
367               ip_prefix:
368                 get_input: virtual_ipv6_address
369               ip_prefix_len: 128
370             mac:
371               get_input: mac_address
372         virtual_machine_interface_mac_addresses:
373           mac_address:
374           - get_input: mac_address
375       requirements:
376       - binding:
377           capability: tosca.capabilities.network.Bindable
378           node: template_VMInt_OAM_lb_1
379           relationship: tosca.relationships.network.BindsTo
380   groups:
381     nested1_group:
382       type: org.openecomp.groups.heat.HeatStack
383       properties:
384         heat_file: ../Artifacts/nested1.yml
385         description: cmaui server template for vMMSC
386       members:
387       - template_VMInt_OAM_lb_1
388       - template_VMInt_OAM_lb_2
389       - template_VMInt_OAM_lb_3
390       - server_cmaui
391       - server_abc
392       - template_Vlan_3
393       - abc_port_1
394       - template_Vlan_2
395       - template_Vlan_1
396   substitution_mappings:
397     node_type: org.openecomp.resource.abstract.nodes.heat.nested1
398     capabilities:
399       scalable_server_abc:
400       - server_abc
401       - scalable
402       os_server_cmaui:
403       - server_cmaui
404       - os
405       binding_template_VMInt_OAM_lb_2:
406       - template_VMInt_OAM_lb_2
407       - binding
408       binding_template_VMInt_OAM_lb_1:
409       - template_VMInt_OAM_lb_1
410       - binding
411       attachment_abc_port_1:
412       - abc_port_1
413       - attachment
414       scalable_server_cmaui:
415       - server_cmaui
416       - scalable
417       host_server_abc:
418       - server_abc
419       - host
420       os_server_abc:
421       - server_abc
422       - os
423       host_server_cmaui:
424       - server_cmaui
425       - host
426       binding_server_abc:
427       - server_abc
428       - binding
429       endpoint_server_cmaui:
430       - server_cmaui
431       - endpoint
432       binding_abc_port_1:
433       - abc_port_1
434       - binding
435       binding_server_cmaui:
436       - server_cmaui
437       - binding
438       endpoint_server_abc:
439       - server_abc
440       - endpoint
441       binding_template_VMInt_OAM_lb_3:
442       - template_VMInt_OAM_lb_3
443       - binding
444     requirements:
445       link_template_VMInt_OAM_lb_1:
446       - template_VMInt_OAM_lb_1
447       - link
448       local_storage_server_cmaui:
449       - server_cmaui
450       - local_storage
451       link_template_VMInt_OAM_lb_3:
452       - template_VMInt_OAM_lb_3
453       - link
454       link_template_VMInt_OAM_lb_2:
455       - template_VMInt_OAM_lb_2
456       - link
457       link_template_Vlan_1:
458       - template_Vlan_1
459       - link
460       link_template_Vlan_2:
461       - template_Vlan_2
462       - link
463       link_template_Vlan_3:
464       - template_Vlan_3
465       - link
466       link_abc_port_1:
467       - abc_port_1
468       - link
469       local_storage_server_abc:
470       - server_abc
471       - local_storage