[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 / subInterfaceToInterfaceConnection / nestedMultiLevels / 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 - 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     cmaui_image:
52       hidden: false
53       immutable: false
54       type: string
55       description: Image for CMAUI server
56     template_PortTuple_LB1:
57       hidden: false
58       immutable: false
59       type: string
60     cmaui_flavor:
61       hidden: false
62       immutable: false
63       type: string
64       description: Flavor for CMAUI server
65     oam_sec_group_name:
66       hidden: false
67       immutable: false
68       type: string
69     lb_st_interface_type_oam:
70       hidden: false
71       immutable: false
72       type: string
73     security_group_name:
74       hidden: false
75       immutable: false
76       type: list
77       description: CMAUI1, CMAUI2 server names
78       entry_schema:
79         type: string
80     availability_zone_0:
81       label: availabilityzone name
82       hidden: false
83       immutable: false
84       type: string
85       description: availabilityzone name
86     cmaui_oam_ips:
87       hidden: false
88       immutable: false
89       type: string
90     contrail_net_name:
91       hidden: false
92       immutable: false
93       type: string
94       description: network name of jsa log network
95     jsa_net_name:
96       hidden: false
97       immutable: false
98       type: string
99     jsa_name:
100       hidden: false
101       immutable: false
102       type: string
103       description: network name of jsa log network
104   node_templates:
105     cmaui_port_2:
106       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
107       properties:
108         replacement_policy: AUTO
109         security_groups:
110         - get_input: security_group_name
111         fixed_ips:
112         - ip_address:
113             get_input:
114             - cmaui_oam_ips
115             - 0
116         network: test_net1
117       requirements:
118       - link:
119           capability: tosca.capabilities.network.Linkable
120           node: test_net1
121           relationship: tosca.relationships.network.LinksTo
122       - binding:
123           capability: tosca.capabilities.network.Bindable
124           node: server_cmaui_nova
125           relationship: tosca.relationships.network.BindsTo
126     test_nested1Level:
127       type: org.openecomp.resource.abstract.nodes.heat.nested1
128       directives:
129       - substitutable
130       properties:
131         service_template_filter:
132           substitute_service_template: nested1ServiceTemplate.yaml
133         net2:
134           get_attribute:
135           - test_contrailV2_net2
136           - fq_name
137         net1: test_net1
138         port1: template_VMInt_OAM_lb_1
139         port2: cmaui_port_2
140       requirements:
141       - link_template_Vlan_2:
142           capability: tosca.capabilities.network.Linkable
143           node: test_contrailV2_net2
144           relationship: tosca.relationships.network.LinksTo
145       - link_template_Vlan_1:
146           capability: tosca.capabilities.network.Linkable
147           node: test_net1
148           relationship: tosca.relationships.network.LinksTo
149       - link_template_Vlan_8_test_nested4Level_test_nested3Level_test_nested2Level:
150           capability: tosca.capabilities.network.Linkable
151           node: test_net1
152           relationship: tosca.relationships.network.LinksTo
153       - link_template_Vlan_7_test_nested4Level_test_nested3Level_test_nested2Level:
154           capability: tosca.capabilities.network.Linkable
155           node: test_net1
156           relationship: tosca.relationships.network.LinksTo
157       - link_template_Vlan_6_test_nested3Level_test_nested2Level:
158           capability: tosca.capabilities.network.Linkable
159           node: test_net1
160           relationship: tosca.relationships.network.LinksTo
161       - link_template_Vlan_5_test_nested3Level_test_nested2Level:
162           capability: tosca.capabilities.network.Linkable
163           node: test_net1
164           relationship: tosca.relationships.network.LinksTo
165       - link_template_Vlan_4_test_nested2Level:
166           capability: tosca.capabilities.network.Linkable
167           node: test_contrailV2_net2
168           relationship: tosca.relationships.network.LinksTo
169       - link_template_Vlan_3_test_nested2Level:
170           capability: tosca.capabilities.network.Linkable
171           node: test_contrailV2_net2
172           relationship: tosca.relationships.network.LinksTo
173       - binding_template_Vlan_2:
174           capability: tosca.capabilities.network.Bindable
175           node: cmaui_port_2
176           relationship: tosca.relationships.network.BindsTo
177       - binding_template_Vlan_1:
178           capability: tosca.capabilities.network.Bindable
179           node: template_VMInt_OAM_lb_1
180           relationship: tosca.relationships.network.BindsTo
181       - binding_template_Vlan_8_test_nested4Level_test_nested3Level_test_nested2Level:
182           capability: tosca.capabilities.network.Bindable
183           node: template_VMInt_OAM_lb_1
184           relationship: tosca.relationships.network.BindsTo
185       - binding_template_Vlan_7_test_nested4Level_test_nested3Level_test_nested2Level:
186           capability: tosca.capabilities.network.Bindable
187           node: template_VMInt_OAM_lb_1
188           relationship: tosca.relationships.network.BindsTo
189       - binding_template_Vlan_6_test_nested3Level_test_nested2Level:
190           capability: tosca.capabilities.network.Bindable
191           node: template_VMInt_OAM_lb_1
192           relationship: tosca.relationships.network.BindsTo
193       - binding_template_Vlan_5_test_nested3Level_test_nested2Level:
194           capability: tosca.capabilities.network.Bindable
195           node: template_VMInt_OAM_lb_1
196           relationship: tosca.relationships.network.BindsTo
197       - binding_template_Vlan_4_test_nested2Level:
198           capability: tosca.capabilities.network.Bindable
199           node: template_VMInt_OAM_lb_1
200           relationship: tosca.relationships.network.BindsTo
201       - binding_template_Vlan_3_test_nested2Level:
202           capability: tosca.capabilities.network.Bindable
203           node: template_VMInt_OAM_lb_1
204           relationship: tosca.relationships.network.BindsTo
205     test_contrailV2_net2:
206       type: org.openecomp.resource.vl.nodes.heat.network.contrailV2.VirtualNetwork
207       properties:
208         network_name:
209           get_input: contrail_net_name
210     template_VMInt_OAM_lb_1:
211       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
212       properties:
213         security_group_refs:
214         - get_input: oam_sec_group_name
215         virtual_network_refs:
216         - test_net1
217         virtual_machine_interface_properties:
218           virtual_machine_interface_properties_service_interface_type:
219             get_input: lb_st_interface_type_oam
220         port_tuple_refs:
221         - get_input: template_PortTuple_LB1
222       requirements:
223       - link:
224           capability: tosca.capabilities.network.Linkable
225           node: test_net1
226           relationship: tosca.relationships.network.LinksTo
227       - binding:
228           capability: tosca.capabilities.network.Bindable
229           node: server_cmaui_nova
230           relationship: tosca.relationships.network.BindsTo
231     test_resourceGroup:
232       type: org.openecomp.resource.abstract.nodes.heat.nested3
233       directives:
234       - substitutable
235       properties:
236         service_template_filter:
237           substitute_service_template: nested3ServiceTemplate.yaml
238           count: 9
239           mandatory: true
240         net1:
241           list_join:
242           - ':'
243           - get_attribute:
244             - test_contrailV2_net2
245             - fq_name
246         indx:
247           get_property:
248           - SELF
249           - service_template_filter
250           - index_value
251         port1: cmaui_port_2
252       requirements:
253       - link_template_Vlan_7_test_nested4Level:
254           capability: tosca.capabilities.network.Linkable
255           node: test_contrailV2_net2
256           relationship: tosca.relationships.network.LinksTo
257       - link_template_Vlan_6:
258           capability: tosca.capabilities.network.Linkable
259           node: test_contrailV2_net2
260           relationship: tosca.relationships.network.LinksTo
261       - binding_template_Vlan_7_test_nested4Level:
262           capability: tosca.capabilities.network.Bindable
263           node: cmaui_port_2
264           relationship: tosca.relationships.network.BindsTo
265       - binding_template_Vlan_6:
266           capability: tosca.capabilities.network.Bindable
267           node: cmaui_port_2
268           relationship: tosca.relationships.network.BindsTo
269     test_net1:
270       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
271       properties:
272         shared: true
273         network_name:
274           get_input: jsa_net_name
275     test_nestedInvalidConnection:
276       type: org.openecomp.resource.abstract.nodes.heat.nested1
277       directives:
278       - substitutable
279       properties:
280         service_template_filter:
281           substitute_service_template: nested1ServiceTemplate.yaml
282         net1: server_cmaui_nova
283         port1: server_cmaui_nova
284     server_cmaui_nova:
285       type: org.openecomp.resource.vfc.nodes.heat.cmaui
286       properties:
287         flavor:
288           get_input: cmaui_flavor
289         availability_zone:
290           get_input: availability_zone_0
291         image:
292           get_input: cmaui_image
293         contrail_service_instance_ind: true
294         name:
295           get_input:
296           - cmaui_names
297           - 0
298   groups:
299     main_group:
300       type: org.openecomp.groups.heat.HeatStack
301       properties:
302         heat_file: ../Artifacts/main.yml
303         description: |
304           Version 2.0 02-09-2016 (Authors: Paul Phillips, pnet2854 PROD)
305       members:
306       - cmaui_port_2
307       - test_nested1Level
308       - test_contrailV2_net2
309       - template_VMInt_OAM_lb_1
310       - test_resourceGroup
311       - test_net1
312       - test_nestedInvalidConnection
313       - server_cmaui_nova