[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 / nested / 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     template_PortTuple_LB1:
52       hidden: false
53       immutable: false
54       type: string
55     oam_sec_group_name:
56       hidden: false
57       immutable: false
58       type: string
59     lb_st_interface_type_oam:
60       hidden: false
61       immutable: false
62       type: string
63     virtual_ip_address:
64       hidden: false
65       immutable: false
66       type: string
67     security_group_name:
68       hidden: false
69       immutable: false
70       type: list
71       description: CMAUI1, CMAUI2 server names
72       entry_schema:
73         type: string
74     jsa_net_name:
75       hidden: false
76       immutable: false
77       type: string
78       description: network name of jsa log network
79     vlan_ids:
80       hidden: false
81       immutable: false
82       type: string
83     cmaui_image:
84       hidden: false
85       immutable: false
86       type: string
87       description: Image for CMAUI server
88     virtual_ipv6_address:
89       hidden: false
90       immutable: false
91       type: string
92     cmaui_flavor:
93       hidden: false
94       immutable: false
95       type: string
96       description: Flavor for CMAUI server
97     lb_st_vlan_type_oam:
98       hidden: false
99       immutable: false
100       type: string
101       description: dummy
102     mac_address:
103       hidden: false
104       immutable: false
105       type: string
106     availability_zone_0:
107       label: availabilityzone name
108       hidden: false
109       immutable: false
110       type: string
111       description: availabilityzone name
112     cmaui_oam_ips:
113       hidden: false
114       immutable: false
115       type: string
116   node_templates:
117     cmaui_port_2:
118       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
119       properties:
120         replacement_policy: AUTO
121         security_groups:
122         - get_input: security_group_name
123         fixed_ips:
124         - ip_address:
125             get_input:
126             - cmaui_oam_ips
127             - 0
128         network: test_net1
129       requirements:
130       - link:
131           capability: tosca.capabilities.network.Linkable
132           node: test_net1
133           relationship: tosca.relationships.network.LinksTo
134       - binding:
135           capability: tosca.capabilities.network.Bindable
136           node: server_cmaui_nova
137           relationship: tosca.relationships.network.BindsTo
138     test_nested_invalidConnection:
139       type: org.openecomp.resource.abstract.nodes.heat.nested
140       directives:
141       - substitutable
142       properties:
143         p1: test_Vlan1
144         service_template_filter:
145           substitute_service_template: nestedServiceTemplate.yaml
146         p2: server_cmaui_nova
147     test_net2:
148       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
149       properties:
150         shared: true
151         network_name:
152           get_input: jsa_net_name
153     template_VMInt_OAM_lb_1:
154       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
155       properties:
156         security_group_refs:
157         - get_input: oam_sec_group_name
158         virtual_network_refs:
159         - test_net1
160         virtual_machine_interface_properties:
161           virtual_machine_interface_properties_service_interface_type:
162             get_input: lb_st_interface_type_oam
163         port_tuple_refs:
164         - get_input: template_PortTuple_LB1
165       requirements:
166       - link:
167           capability: tosca.capabilities.network.Linkable
168           node: test_net1
169           relationship: tosca.relationships.network.LinksTo
170       - binding:
171           capability: tosca.capabilities.network.Bindable
172           node: server_cmaui_nova
173           relationship: tosca.relationships.network.BindsTo
174     test_resourceGroup:
175       type: org.openecomp.resource.abstract.nodes.heat.nested
176       directives:
177       - substitutable
178       properties:
179         p1: template_VMInt_OAM_lb_1
180         service_template_filter:
181           substitute_service_template: nestedServiceTemplate.yaml
182           count: 9
183           mandatory: true
184         p2: cmaui_port_2
185         net2: test_net2
186         net1: test_net1
187       requirements:
188       - link_template_Vlan_2:
189           capability: tosca.capabilities.network.Linkable
190           node: test_net2
191           relationship: tosca.relationships.network.LinksTo
192       - link_template_Vlan_1:
193           capability: tosca.capabilities.network.Linkable
194           node: test_net1
195           relationship: tosca.relationships.network.LinksTo
196       - binding_template_Vlan_2:
197           capability: tosca.capabilities.network.Bindable
198           node: cmaui_port_2
199           relationship: tosca.relationships.network.BindsTo
200       - binding_template_Vlan_1:
201           capability: tosca.capabilities.network.Bindable
202           node: template_VMInt_OAM_lb_1
203           relationship: tosca.relationships.network.BindsTo
204     test_net1:
205       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
206       properties:
207         shared: true
208         network_name:
209           get_input: jsa_net_name
210     test_Vlan2:
211       type: org.openecomp.resource.cp.nodes.heat.network.contrailV2.VLANSubInterface
212       properties:
213         virtual_machine_interface_refs:
214         - template_VMInt_OAM_lb_1
215         name: vlan
216         virtual_network_refs:
217         - test_net1
218         virtual_machine_interface_properties:
219           sub_interface_vlan_tag:
220             get_input: lb_st_vlan_type_oam
221         virtual_machine_interface_allowed_address_pairs:
222           allowed_address_pair:
223           - address_mode: active-standby
224             ip:
225               ip_prefix:
226                 get_input: virtual_ip_address
227               ip_prefix_len: 32
228             mac:
229               get_input: mac_address
230           - address_mode: active-standby
231             ip:
232               ip_prefix:
233                 get_input: virtual_ipv6_address
234               ip_prefix_len: 128
235             mac:
236               get_input: mac_address
237         virtual_machine_interface_mac_addresses:
238           mac_address:
239           - get_input: mac_address
240       requirements:
241       - link:
242           capability: tosca.capabilities.network.Linkable
243           node: test_net1
244           relationship: tosca.relationships.network.LinksTo
245       - binding:
246           capability: tosca.capabilities.network.Bindable
247           node: template_VMInt_OAM_lb_1
248           relationship: tosca.relationships.network.BindsTo
249     test_Vlan1:
250       type: org.openecomp.resource.cp.nodes.heat.network.contrailV2.VLANSubInterface
251       properties:
252         virtual_machine_interface_refs:
253         - test_Vlan2
254         name: vlan
255         virtual_network_refs:
256         - test_net1
257         virtual_machine_interface_properties:
258           sub_interface_vlan_tag:
259             get_input: lb_st_vlan_type_oam
260         virtual_machine_interface_allowed_address_pairs:
261           allowed_address_pair:
262           - address_mode: active-standby
263             ip:
264               ip_prefix:
265                 get_input: virtual_ip_address
266               ip_prefix_len: 32
267             mac:
268               get_input: mac_address
269           - address_mode: active-standby
270             ip:
271               ip_prefix:
272                 get_input: virtual_ipv6_address
273               ip_prefix_len: 128
274             mac:
275               get_input: mac_address
276         virtual_machine_interface_mac_addresses:
277           mac_address:
278           - get_input: mac_address
279       requirements:
280       - link:
281           capability: tosca.capabilities.network.Linkable
282           node: test_net1
283           relationship: tosca.relationships.network.LinksTo
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     test_nested:
299       type: org.openecomp.resource.abstract.nodes.heat.nested
300       directives:
301       - substitutable
302       properties:
303         p1: template_VMInt_OAM_lb_1
304         service_template_filter:
305           substitute_service_template: nestedServiceTemplate.yaml
306         p2: cmaui_port_2
307         net2: test_net2
308         net1: test_net1
309       requirements:
310       - link_template_Vlan_2:
311           capability: tosca.capabilities.network.Linkable
312           node: test_net2
313           relationship: tosca.relationships.network.LinksTo
314       - link_template_Vlan_1:
315           capability: tosca.capabilities.network.Linkable
316           node: test_net1
317           relationship: tosca.relationships.network.LinksTo
318       - binding_template_Vlan_2:
319           capability: tosca.capabilities.network.Bindable
320           node: cmaui_port_2
321           relationship: tosca.relationships.network.BindsTo
322       - binding_template_Vlan_1:
323           capability: tosca.capabilities.network.Bindable
324           node: template_VMInt_OAM_lb_1
325           relationship: tosca.relationships.network.BindsTo
326   groups:
327     main_group:
328       type: org.openecomp.groups.heat.HeatStack
329       properties:
330         heat_file: ../Artifacts/main.yml
331         description: |
332           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
333       members:
334       - cmaui_port_2
335       - test_nested_invalidConnection
336       - test_net2
337       - template_VMInt_OAM_lb_1
338       - test_resourceGroup
339       - test_net1
340       - test_Vlan2
341       - test_Vlan1
342       - server_cmaui_nova
343       - test_nested