[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 / nested2ServiceTemplate.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: nested2
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     test_nested3Level:
131       type: org.openecomp.resource.abstract.nodes.heat.nested3
132       directives:
133       - substitutable
134       properties:
135         p1:
136           get_input: p1
137         service_template_filter:
138           substitute_service_template: nested3ServiceTemplate.yaml
139           count: 3
140           mandatory: true
141         p2:
142           get_input: p1
143         indx:
144           get_property:
145           - SELF
146           - service_template_filter
147           - index_value
148     template_VMInt_OAM_lb_3:
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_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     template_VMInt_OAM_lb_4:
166       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
167       properties:
168         security_group_refs:
169         - get_input: oam_sec_group_name
170         virtual_network_refs:
171         - get_input: p2
172         - get_input: p1
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       requirements:
179       - binding:
180           capability: tosca.capabilities.network.Bindable
181           node: server_cmaui
182           relationship: tosca.relationships.network.BindsTo
183     server_cmaui:
184       type: org.openecomp.resource.vfc.nodes.heat.cmaui
185       properties:
186         flavor:
187           get_input: cmaui_flavor
188         availability_zone:
189           get_input: availability_zone_0
190         image:
191           get_input: cmaui_image
192         contrail_service_instance_ind: true
193         name:
194           get_input:
195           - cmaui_names
196           - 0
197     template_Vlan_2:
198       type: org.openecomp.resource.cp.nodes.heat.network.contrailV2.VLANSubInterface
199       properties:
200         virtual_machine_interface_refs:
201         - template_VMInt_OAM_lb_4
202         name:
203           str_replace:
204             template: $NAME$VLAN
205             params:
206               $NAME:
207                 get_input: subinterface_name_prefix
208               $VLAN:
209                 get_input:
210                 - vlan_ids
211                 - get_input: subinterface_instance_index
212         virtual_network_refs:
213         - get_input: p2
214         - get_input: p1
215         virtual_machine_interface_properties:
216           sub_interface_vlan_tag:
217             get_input: lb_st_vlan_type_oam
218         virtual_machine_interface_allowed_address_pairs:
219           allowed_address_pair:
220           - address_mode: active-standby
221             ip:
222               ip_prefix:
223                 get_input: virtual_ip_address
224               ip_prefix_len: 32
225             mac:
226               get_input: mac_address
227           - address_mode: active-standby
228             ip:
229               ip_prefix:
230                 get_input: virtual_ipv6_address
231               ip_prefix_len: 128
232             mac:
233               get_input: mac_address
234         virtual_machine_interface_mac_addresses:
235           mac_address:
236           - get_input: mac_address
237       requirements:
238       - binding:
239           capability: tosca.capabilities.network.Bindable
240           node: template_VMInt_OAM_lb_4
241           relationship: tosca.relationships.network.BindsTo
242   groups:
243     nested2_group:
244       type: org.openecomp.groups.heat.HeatStack
245       properties:
246         heat_file: ../Artifacts/nested2.yml
247         description: nested2
248       members:
249       - test_nested3Level
250       - template_VMInt_OAM_lb_3
251       - template_VMInt_OAM_lb_4
252       - server_cmaui
253       - template_Vlan_2
254   substitution_mappings:
255     node_type: org.openecomp.resource.abstract.nodes.heat.nested2
256     capabilities:
257       os_server_cmaui:
258       - server_cmaui
259       - os
260       os_server_cmaui_test_nested4Level_test_nested3Level:
261       - test_nested3Level
262       - os_server_cmaui_test_nested4Level
263       scalable_server_cmaui_test_nested4Level_test_nested3Level:
264       - test_nested3Level
265       - scalable_server_cmaui_test_nested4Level
266       host_server_cmaui_test_nested3Level:
267       - test_nested3Level
268       - host_server_cmaui
269       endpoint_server_cmaui_test_nested3Level:
270       - test_nested3Level
271       - endpoint_server_cmaui
272       scalable_server_cmaui:
273       - server_cmaui
274       - scalable
275       binding_template_VMInt_OAM_lb_6_test_nested3Level:
276       - test_nested3Level
277       - binding_template_VMInt_OAM_lb_6
278       binding_server_cmaui_test_nested3Level:
279       - test_nested3Level
280       - binding_server_cmaui
281       host_server_cmaui:
282       - server_cmaui
283       - host
284       binding_template_VMInt_OAM_lb_7_test_nested4Level_test_nested3Level:
285       - test_nested3Level
286       - binding_template_VMInt_OAM_lb_7_test_nested4Level
287       scalable_server_cmaui_test_nested3Level:
288       - test_nested3Level
289       - scalable_server_cmaui
290       binding_template_VMInt_OAM_lb_5_test_nested3Level:
291       - test_nested3Level
292       - binding_template_VMInt_OAM_lb_5
293       binding_template_VMInt_OAM_lb_8_test_nested4Level_test_nested3Level:
294       - test_nested3Level
295       - binding_template_VMInt_OAM_lb_8_test_nested4Level
296       endpoint_server_cmaui:
297       - server_cmaui
298       - endpoint
299       os_server_cmaui_test_nested3Level:
300       - test_nested3Level
301       - os_server_cmaui
302       endpoint_server_cmaui_test_nested4Level_test_nested3Level:
303       - test_nested3Level
304       - endpoint_server_cmaui_test_nested4Level
305       binding_server_cmaui:
306       - server_cmaui
307       - binding
308       binding_template_VMInt_OAM_lb_4:
309       - template_VMInt_OAM_lb_4
310       - binding
311       host_server_cmaui_test_nested4Level_test_nested3Level:
312       - test_nested3Level
313       - host_server_cmaui_test_nested4Level
314       binding_template_VMInt_OAM_lb_3:
315       - template_VMInt_OAM_lb_3
316       - binding
317       binding_server_cmaui_test_nested4Level_test_nested3Level:
318       - test_nested3Level
319       - binding_server_cmaui_test_nested4Level
320     requirements:
321       link_template_VMInt_OAM_lb_7_test_nested4Level_test_nested3Level:
322       - test_nested3Level
323       - link_template_VMInt_OAM_lb_7_test_nested4Level
324       local_storage_server_cmaui:
325       - server_cmaui
326       - local_storage
327       link_template_VMInt_OAM_lb_5_test_nested3Level:
328       - test_nested3Level
329       - link_template_VMInt_OAM_lb_5
330       link_template_VMInt_OAM_lb_3:
331       - template_VMInt_OAM_lb_3
332       - link
333       local_storage_server_cmaui_test_nested4Level_test_nested3Level:
334       - test_nested3Level
335       - local_storage_server_cmaui_test_nested4Level
336       link_template_Vlan_2:
337       - template_Vlan_2
338       - link
339       link_template_VMInt_OAM_lb_4:
340       - template_VMInt_OAM_lb_4
341       - link
342       link_template_Vlan_3_test_nested3Level:
343       - test_nested3Level
344       - link_template_Vlan_3
345       link_template_VMInt_OAM_lb_8_test_nested4Level_test_nested3Level:
346       - test_nested3Level
347       - link_template_VMInt_OAM_lb_8_test_nested4Level
348       link_template_Vlan_4_test_nested4Level_test_nested3Level:
349       - test_nested3Level
350       - link_template_Vlan_4_test_nested4Level
351       link_template_VMInt_OAM_lb_6_test_nested3Level:
352       - test_nested3Level
353       - link_template_VMInt_OAM_lb_6
354       local_storage_server_cmaui_test_nested3Level:
355       - test_nested3Level
356       - local_storage_server_cmaui