[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 / 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.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       description: UID of OAM network
61     template_PortTuple_LB1:
62       hidden: false
63       immutable: false
64       type: string
65     lb_st_interface_type_oam:
66       hidden: false
67       immutable: false
68       type: string
69     oam_sec_group_name:
70       hidden: false
71       immutable: false
72       type: string
73     virtual_ip_address:
74       hidden: false
75       immutable: false
76       type: string
77     security_group_name:
78       hidden: false
79       immutable: false
80       type: list
81       description: CMAUI1, CMAUI2 server names
82       entry_schema:
83         type: string
84     vlan_ids:
85       hidden: false
86       immutable: false
87       type: string
88     cmaui_image:
89       hidden: false
90       immutable: false
91       type: string
92       description: Image for CMAUI server
93     virtual_ipv6_address:
94       hidden: false
95       immutable: false
96       type: string
97     cmaui_flavor:
98       hidden: false
99       immutable: false
100       type: string
101       description: Flavor for CMAUI server
102     lb_st_vlan_type_oam:
103       hidden: false
104       immutable: false
105       type: string
106       description: dummy
107     mac_address:
108       hidden: false
109       immutable: false
110       type: string
111     availability_zone_0:
112       label: availabilityzone name
113       hidden: false
114       immutable: false
115       type: string
116       description: availabilityzone name
117     subinterface_name_prefix:
118       hidden: false
119       immutable: false
120       type: string
121     subinterface_instance_index:
122       hidden: false
123       immutable: false
124       type: float
125     cmaui_oam_ips:
126       hidden: false
127       immutable: false
128       type: string
129   node_templates:
130     template_VMInt_OAM_lb_1:
131       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
132       properties:
133         security_group_refs:
134         - get_input: oam_sec_group_name
135         virtual_network_refs:
136         - get_input: p1
137         virtual_machine_interface_properties:
138           virtual_machine_interface_properties_service_interface_type:
139             get_input: lb_st_interface_type_oam
140         port_tuple_refs:
141         - get_input: template_PortTuple_LB1
142       requirements:
143       - binding:
144           capability: tosca.capabilities.network.Bindable
145           node: server_cmaui
146           relationship: tosca.relationships.network.BindsTo
147     template_VMInt_OAM_lb_2:
148       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
149       properties:
150         security_group_refs:
151         - get_input: oam_sec_group_name
152         virtual_network_refs:
153         - get_input: p2
154         - get_input: p1
155         virtual_machine_interface_properties:
156           virtual_machine_interface_properties_service_interface_type:
157             get_input: lb_st_interface_type_oam
158         port_tuple_refs:
159         - get_input: template_PortTuple_LB1
160       requirements:
161       - binding:
162           capability: tosca.capabilities.network.Bindable
163           node: server_cmaui
164           relationship: tosca.relationships.network.BindsTo
165     server_cmaui:
166       type: org.openecomp.resource.vfc.nodes.heat.cmaui
167       properties:
168         flavor:
169           get_input: cmaui_flavor
170         availability_zone:
171           get_input: availability_zone_0
172         image:
173           get_input: cmaui_image
174         contrail_service_instance_ind: true
175         name:
176           get_input:
177           - cmaui_names
178           - 0
179     template_Vlan_1:
180       type: org.openecomp.resource.cp.nodes.heat.network.contrailV2.VLANSubInterface
181       properties:
182         virtual_machine_interface_refs:
183         - template_VMInt_OAM_lb_1
184         name:
185           str_replace:
186             template: $NAME$VLAN
187             params:
188               $NAME:
189                 get_input: subinterface_name_prefix
190               $VLAN:
191                 get_input:
192                 - vlan_ids
193                 - get_input: subinterface_instance_index
194         virtual_network_refs:
195         - get_input: p1
196         virtual_machine_interface_properties:
197           sub_interface_vlan_tag:
198             get_input: lb_st_vlan_type_oam
199         virtual_machine_interface_allowed_address_pairs:
200           allowed_address_pair:
201           - address_mode: active-standby
202             ip:
203               ip_prefix:
204                 get_input: virtual_ip_address
205               ip_prefix_len: 32
206             mac:
207               get_input: mac_address
208           - address_mode: active-standby
209             ip:
210               ip_prefix:
211                 get_input: virtual_ipv6_address
212               ip_prefix_len: 128
213             mac:
214               get_input: mac_address
215         virtual_machine_interface_mac_addresses:
216           mac_address:
217           - get_input: mac_address
218       requirements:
219       - binding:
220           capability: tosca.capabilities.network.Bindable
221           node: template_VMInt_OAM_lb_1
222           relationship: tosca.relationships.network.BindsTo
223     test_nested2Level:
224       type: org.openecomp.resource.abstract.nodes.heat.nested2
225       directives:
226       - substitutable
227       properties:
228         p1:
229           get_input: p1
230         service_template_filter:
231           substitute_service_template: nested2ServiceTemplate.yaml
232         p2:
233           get_input: p2
234   groups:
235     nested1_group:
236       type: org.openecomp.groups.heat.HeatStack
237       properties:
238         heat_file: ../Artifacts/nested1.yml
239         description: nested1
240       members:
241       - template_VMInt_OAM_lb_1
242       - template_VMInt_OAM_lb_2
243       - server_cmaui
244       - template_Vlan_1
245       - test_nested2Level
246   substitution_mappings:
247     node_type: org.openecomp.resource.abstract.nodes.heat.nested1
248     capabilities:
249       os_server_cmaui_test_nested2Level:
250       - test_nested2Level
251       - os_server_cmaui
252       os_server_cmaui:
253       - server_cmaui
254       - os
255       os_server_cmaui_test_nested4Level_test_nested3Level_test_nested2Level:
256       - test_nested2Level
257       - os_server_cmaui_test_nested4Level_test_nested3Level
258       endpoint_server_cmaui_test_nested2Level:
259       - test_nested2Level
260       - endpoint_server_cmaui
261       scalable_server_cmaui_test_nested4Level_test_nested3Level_test_nested2Level:
262       - test_nested2Level
263       - scalable_server_cmaui_test_nested4Level_test_nested3Level
264       endpoint_server_cmaui_test_nested4Level_test_nested3Level_test_nested2Level:
265       - test_nested2Level
266       - endpoint_server_cmaui_test_nested4Level_test_nested3Level
267       host_server_cmaui_test_nested4Level_test_nested3Level_test_nested2Level:
268       - test_nested2Level
269       - host_server_cmaui_test_nested4Level_test_nested3Level
270       host_server_cmaui_test_nested3Level_test_nested2Level:
271       - test_nested2Level
272       - host_server_cmaui_test_nested3Level
273       binding_template_VMInt_OAM_lb_8_test_nested4Level_test_nested3Level_test_nested2Level:
274       - test_nested2Level
275       - binding_template_VMInt_OAM_lb_8_test_nested4Level_test_nested3Level
276       scalable_server_cmaui:
277       - server_cmaui
278       - scalable
279       scalable_server_cmaui_test_nested3Level_test_nested2Level:
280       - test_nested2Level
281       - scalable_server_cmaui_test_nested3Level
282       host_server_cmaui:
283       - server_cmaui
284       - host
285       binding_template_VMInt_OAM_lb_4_test_nested2Level:
286       - test_nested2Level
287       - binding_template_VMInt_OAM_lb_4
288       binding_template_VMInt_OAM_lb_5_test_nested3Level_test_nested2Level:
289       - test_nested2Level
290       - binding_template_VMInt_OAM_lb_5_test_nested3Level
291       host_server_cmaui_test_nested2Level:
292       - test_nested2Level
293       - host_server_cmaui
294       endpoint_server_cmaui_test_nested3Level_test_nested2Level:
295       - test_nested2Level
296       - endpoint_server_cmaui_test_nested3Level
297       binding_server_cmaui_test_nested4Level_test_nested3Level_test_nested2Level:
298       - test_nested2Level
299       - binding_server_cmaui_test_nested4Level_test_nested3Level
300       binding_server_cmaui_test_nested3Level_test_nested2Level:
301       - test_nested2Level
302       - binding_server_cmaui_test_nested3Level
303       binding_template_VMInt_OAM_lb_2:
304       - template_VMInt_OAM_lb_2
305       - binding
306       binding_template_VMInt_OAM_lb_1:
307       - template_VMInt_OAM_lb_1
308       - binding
309       os_server_cmaui_test_nested3Level_test_nested2Level:
310       - test_nested2Level
311       - os_server_cmaui_test_nested3Level
312       binding_template_VMInt_OAM_lb_6_test_nested3Level_test_nested2Level:
313       - test_nested2Level
314       - binding_template_VMInt_OAM_lb_6_test_nested3Level
315       binding_template_VMInt_OAM_lb_3_test_nested2Level:
316       - test_nested2Level
317       - binding_template_VMInt_OAM_lb_3
318       endpoint_server_cmaui:
319       - server_cmaui
320       - endpoint
321       scalable_server_cmaui_test_nested2Level:
322       - test_nested2Level
323       - scalable_server_cmaui
324       binding_server_cmaui:
325       - server_cmaui
326       - binding
327       binding_server_cmaui_test_nested2Level:
328       - test_nested2Level
329       - binding_server_cmaui
330       binding_template_VMInt_OAM_lb_7_test_nested4Level_test_nested3Level_test_nested2Level:
331       - test_nested2Level
332       - binding_template_VMInt_OAM_lb_7_test_nested4Level_test_nested3Level
333     requirements:
334       link_template_VMInt_OAM_lb_5_test_nested3Level_test_nested2Level:
335       - test_nested2Level
336       - link_template_VMInt_OAM_lb_5_test_nested3Level
337       link_template_Vlan_2_test_nested2Level:
338       - test_nested2Level
339       - link_template_Vlan_2
340       link_template_VMInt_OAM_lb_4_test_nested2Level:
341       - test_nested2Level
342       - link_template_VMInt_OAM_lb_4
343       link_template_VMInt_OAM_lb_7_test_nested4Level_test_nested3Level_test_nested2Level:
344       - test_nested2Level
345       - link_template_VMInt_OAM_lb_7_test_nested4Level_test_nested3Level
346       link_template_Vlan_3_test_nested3Level_test_nested2Level:
347       - test_nested2Level
348       - link_template_Vlan_3_test_nested3Level
349       link_template_VMInt_OAM_lb_6_test_nested3Level_test_nested2Level:
350       - test_nested2Level
351       - link_template_VMInt_OAM_lb_6_test_nested3Level
352       link_template_VMInt_OAM_lb_1:
353       - template_VMInt_OAM_lb_1
354       - link
355       local_storage_server_cmaui:
356       - server_cmaui
357       - local_storage
358       link_template_VMInt_OAM_lb_3_test_nested2Level:
359       - test_nested2Level
360       - link_template_VMInt_OAM_lb_3
361       local_storage_server_cmaui_test_nested2Level:
362       - test_nested2Level
363       - local_storage_server_cmaui
364       link_template_VMInt_OAM_lb_2:
365       - template_VMInt_OAM_lb_2
366       - link
367       link_template_Vlan_1:
368       - template_Vlan_1
369       - link
370       link_template_Vlan_4_test_nested4Level_test_nested3Level_test_nested2Level:
371       - test_nested2Level
372       - link_template_Vlan_4_test_nested4Level_test_nested3Level
373       local_storage_server_cmaui_test_nested3Level_test_nested2Level:
374       - test_nested2Level
375       - local_storage_server_cmaui_test_nested3Level
376       link_template_VMInt_OAM_lb_8_test_nested4Level_test_nested3Level_test_nested2Level:
377       - test_nested2Level
378       - link_template_VMInt_OAM_lb_8_test_nested4Level_test_nested3Level
379       local_storage_server_cmaui_test_nested4Level_test_nested3Level_test_nested2Level:
380       - test_nested2Level
381       - local_storage_server_cmaui_test_nested4Level_test_nested3Level