[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 / nestedMultiLevels / expectedoutputfiles / nested3ServiceTemplate.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: nested3
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.cmaui:
41     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
42 topology_template:
43   inputs:
44     cmaui_names:
45       hidden: false
46       immutable: false
47       type: list
48       description: CMAUI1, CMAUI2 server names
49       entry_schema:
50         type: string
51     p1:
52       hidden: false
53       immutable: false
54       type: string
55       description: UID of OAM network
56     p2:
57       hidden: false
58       immutable: false
59       type: string
60     template_PortTuple_LB1:
61       hidden: false
62       immutable: false
63       type: string
64     lb_st_interface_type_oam:
65       hidden: false
66       immutable: false
67       type: string
68     oam_sec_group_name:
69       hidden: false
70       immutable: false
71       type: string
72     virtual_ip_address:
73       hidden: false
74       immutable: false
75       type: string
76     indx:
77       hidden: false
78       immutable: false
79       type: float
80     security_group_name:
81       hidden: false
82       immutable: false
83       type: list
84       description: CMAUI1, CMAUI2 server names
85       entry_schema:
86         type: string
87     vlan_ids:
88       hidden: false
89       immutable: false
90       type: string
91     cmaui_image:
92       hidden: false
93       immutable: false
94       type: string
95       description: Image for CMAUI server
96     virtual_ipv6_address:
97       hidden: false
98       immutable: false
99       type: string
100     cmaui_flavor:
101       hidden: false
102       immutable: false
103       type: string
104       description: Flavor for CMAUI server
105     lb_st_vlan_type_oam:
106       hidden: false
107       immutable: false
108       type: string
109       description: dummy
110     mac_address:
111       hidden: false
112       immutable: false
113       type: string
114     availability_zone_0:
115       label: availabilityzone name
116       hidden: false
117       immutable: false
118       type: string
119       description: availabilityzone name
120     subinterface_name_prefix:
121       hidden: false
122       immutable: false
123       type: string
124     subinterface_instance_index:
125       hidden: false
126       immutable: false
127       type: float
128     cmaui_oam_ips:
129       hidden: false
130       immutable: false
131       type: string
132   node_templates:
133     template_VMInt_OAM_lb_5:
134       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
135       properties:
136         security_group_refs:
137         - get_input: oam_sec_group_name
138         virtual_network_refs:
139         - get_input: p2
140         virtual_machine_interface_properties:
141           virtual_machine_interface_properties_service_interface_type:
142             get_input: lb_st_interface_type_oam
143         port_tuple_refs:
144         - get_input: template_PortTuple_LB1
145       requirements:
146       - binding:
147           capability: tosca.capabilities.network.Bindable
148           node: server_cmaui
149           relationship: tosca.relationships.network.BindsTo
150     test_nested4Level:
151       type: org.openecomp.resource.abstract.nodes.heat.nested4
152       directives:
153       - substitutable
154       properties:
155         p1:
156           get_input: p1
157         service_template_filter:
158           substitute_service_template: nested4ServiceTemplate.yaml
159         p2:
160           get_input: p2
161     template_VMInt_OAM_lb_6:
162       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
163       properties:
164         security_group_refs:
165         - get_input: oam_sec_group_name
166         virtual_network_refs:
167         - get_input: p1
168         - get_input: p2
169         virtual_machine_interface_properties:
170           virtual_machine_interface_properties_service_interface_type:
171             get_input: lb_st_interface_type_oam
172         port_tuple_refs:
173         - get_input: template_PortTuple_LB1
174       requirements:
175       - binding:
176           capability: tosca.capabilities.network.Bindable
177           node: server_cmaui
178           relationship: tosca.relationships.network.BindsTo
179     server_cmaui:
180       type: org.openecomp.resource.vfc.nodes.heat.cmaui
181       properties:
182         flavor:
183           get_input: cmaui_flavor
184         availability_zone:
185           get_input: availability_zone_0
186         image:
187           get_input: cmaui_image
188         contrail_service_instance_ind: true
189         name:
190           get_input:
191           - cmaui_names
192           - 0
193     template_Vlan_3:
194       type: org.openecomp.resource.cp.nodes.heat.network.contrailV2.VLANSubInterface
195       properties:
196         virtual_machine_interface_refs:
197         - template_VMInt_OAM_lb_5
198         name:
199           str_replace:
200             template: $NAME$VLAN
201             params:
202               $NAME:
203                 get_input: subinterface_name_prefix
204               $VLAN:
205                 get_input:
206                 - vlan_ids
207                 - get_input: subinterface_instance_index
208         virtual_network_refs:
209         - get_input: p2
210         virtual_machine_interface_properties:
211           sub_interface_vlan_tag:
212             get_input: lb_st_vlan_type_oam
213         virtual_machine_interface_allowed_address_pairs:
214           allowed_address_pair:
215           - address_mode: active-standby
216             ip:
217               ip_prefix:
218                 get_input: virtual_ip_address
219               ip_prefix_len: 32
220             mac:
221               get_input: mac_address
222           - address_mode: active-standby
223             ip:
224               ip_prefix:
225                 get_input: virtual_ipv6_address
226               ip_prefix_len: 128
227             mac:
228               get_input: mac_address
229         virtual_machine_interface_mac_addresses:
230           mac_address:
231           - get_input: mac_address
232       requirements:
233       - binding:
234           capability: tosca.capabilities.network.Bindable
235           node: template_VMInt_OAM_lb_5
236           relationship: tosca.relationships.network.BindsTo
237   groups:
238     nested3_group:
239       type: org.openecomp.groups.heat.HeatStack
240       properties:
241         heat_file: ../Artifacts/nested3.yml
242         description: nested3
243       members:
244       - template_VMInt_OAM_lb_5
245       - test_nested4Level
246       - template_VMInt_OAM_lb_6
247       - server_cmaui
248       - template_Vlan_3
249   substitution_mappings:
250     node_type: org.openecomp.resource.abstract.nodes.heat.nested3
251     capabilities:
252       scalable_server_cmaui_test_nested4Level:
253       - test_nested4Level
254       - scalable_server_cmaui
255       os_server_cmaui:
256       - server_cmaui
257       - os
258       scalable_server_cmaui:
259       - server_cmaui
260       - scalable
261       binding_template_VMInt_OAM_lb_7_test_nested4Level:
262       - test_nested4Level
263       - binding_template_VMInt_OAM_lb_7
264       endpoint_server_cmaui_test_nested4Level:
265       - test_nested4Level
266       - endpoint_server_cmaui
267       host_server_cmaui:
268       - server_cmaui
269       - host
270       os_server_cmaui_test_nested4Level:
271       - test_nested4Level
272       - os_server_cmaui
273       host_server_cmaui_test_nested4Level:
274       - test_nested4Level
275       - host_server_cmaui
276       endpoint_server_cmaui:
277       - server_cmaui
278       - endpoint
279       binding_server_cmaui:
280       - server_cmaui
281       - binding
282       binding_template_VMInt_OAM_lb_6:
283       - template_VMInt_OAM_lb_6
284       - binding
285       binding_template_VMInt_OAM_lb_5:
286       - template_VMInt_OAM_lb_5
287       - binding
288       binding_template_VMInt_OAM_lb_8_test_nested4Level:
289       - test_nested4Level
290       - binding_template_VMInt_OAM_lb_8
291       binding_server_cmaui_test_nested4Level:
292       - test_nested4Level
293       - binding_server_cmaui
294     requirements:
295       link_template_VMInt_OAM_lb_8_test_nested4Level:
296       - test_nested4Level
297       - link_template_VMInt_OAM_lb_8
298       local_storage_server_cmaui:
299       - server_cmaui
300       - local_storage
301       link_template_VMInt_OAM_lb_5:
302       - template_VMInt_OAM_lb_5
303       - link
304       link_template_Vlan_3:
305       - template_Vlan_3
306       - link
307       link_template_VMInt_OAM_lb_6:
308       - template_VMInt_OAM_lb_6
309       - link
310       local_storage_server_cmaui_test_nested4Level:
311       - test_nested4Level
312       - local_storage_server_cmaui
313       link_template_Vlan_4_test_nested4Level:
314       - test_nested4Level
315       - link_template_Vlan_4
316       link_template_VMInt_OAM_lb_7_test_nested4Level:
317       - test_nested4Level
318       - link_template_VMInt_OAM_lb_7