[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 / sharedAddOn / 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 node_types:
38   org.openecomp.resource.vfc.nodes.heat.cmaui:
39     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
40 topology_template:
41   inputs:
42     cmaui_names:
43       hidden: false
44       immutable: false
45       type: list
46       description: CMAUI1, CMAUI2 server names
47       entry_schema:
48         type: string
49     p1:
50       hidden: false
51       immutable: false
52       type: string
53       description: UID of OAM network
54     template_PortTuple_LB1:
55       hidden: false
56       immutable: false
57       type: string
58     oam_sec_group_name:
59       hidden: false
60       immutable: false
61       type: string
62     lb_st_interface_type_oam:
63       hidden: false
64       immutable: false
65       type: string
66     virtual_ip_address:
67       hidden: false
68       immutable: false
69       type: string
70     security_group_name:
71       hidden: false
72       immutable: false
73       type: list
74       description: CMAUI1, CMAUI2 server names
75       entry_schema:
76         type: string
77     shared_network_id:
78       hidden: false
79       immutable: false
80       type: string
81       description: Flavor for CMAUI server
82     jsa_net_name:
83       hidden: false
84       immutable: false
85       type: string
86       description: network name of jsa log network
87     vlan_ids:
88       hidden: false
89       immutable: false
90       type: string
91     shared_network_id1:
92       hidden: false
93       immutable: false
94       type: string
95       description: Flavor for CMAUI server
96     cmaui_image:
97       hidden: false
98       immutable: false
99       type: string
100       description: Image for CMAUI server
101     virtual_ipv6_address:
102       hidden: false
103       immutable: false
104       type: string
105     cmaui_flavor:
106       hidden: false
107       immutable: false
108       type: string
109       description: Flavor for CMAUI server
110     shared_network_id2:
111       hidden: false
112       immutable: false
113       type: list
114       description: Flavor for CMAUI server
115       entry_schema:
116         type: string
117     lb_st_vlan_type_oam:
118       hidden: false
119       immutable: false
120       type: string
121       description: dummy
122     mac_address:
123       hidden: false
124       immutable: false
125       type: string
126     availability_zone_0:
127       label: availabilityzone name
128       hidden: false
129       immutable: false
130       type: string
131       description: availabilityzone name
132     subinterface_name_prefix:
133       hidden: false
134       immutable: false
135       type: string
136     subinterface_instance_index:
137       hidden: false
138       immutable: false
139       type: float
140     cmaui_oam_ips:
141       hidden: false
142       immutable: false
143       type: string
144   node_templates:
145     template_VMInt_OAM_lb_1:
146       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
147       properties:
148         security_group_refs:
149         - get_input: oam_sec_group_name
150         virtual_network_refs:
151         - get_input: shared_network_id
152         virtual_machine_interface_properties:
153           virtual_machine_interface_properties_service_interface_type:
154             get_input: lb_st_interface_type_oam
155         port_tuple_refs:
156         - get_input: template_PortTuple_LB1
157       requirements:
158       - link:
159           capability: tosca.capabilities.network.Linkable
160           node: test_net
161           relationship: tosca.relationships.network.LinksTo
162       - binding:
163           capability: tosca.capabilities.network.Bindable
164           node: server_cmaui
165           relationship: tosca.relationships.network.BindsTo
166     template_VMInt_OAM_lb_2:
167       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
168       properties:
169         security_group_refs:
170         - get_input: oam_sec_group_name
171         virtual_network_refs:
172         - get_input: shared_network_id
173         - get_input: shared_network_id1
174         virtual_machine_interface_properties:
175           virtual_machine_interface_properties_service_interface_type:
176             get_input: lb_st_interface_type_oam
177         port_tuple_refs:
178         - get_input: template_PortTuple_LB1
179       requirements:
180       - link:
181           capability: tosca.capabilities.network.Linkable
182           node: test_net
183           relationship: tosca.relationships.network.LinksTo
184       - binding:
185           capability: tosca.capabilities.network.Bindable
186           node: server_cmaui
187           relationship: tosca.relationships.network.BindsTo
188     template_VMInt_OAM_lb_3:
189       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
190       properties:
191         security_group_refs:
192         - get_input: oam_sec_group_name
193         virtual_network_refs:
194         - get_input:
195           - shared_network_id2
196           - 0
197         virtual_machine_interface_properties:
198           virtual_machine_interface_properties_service_interface_type:
199             get_input: lb_st_interface_type_oam
200         port_tuple_refs:
201         - get_input: template_PortTuple_LB1
202     test_net1:
203       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
204       properties:
205         shared: true
206         network_name:
207           get_input: jsa_net_name
208     server_cmaui:
209       type: org.openecomp.resource.vfc.nodes.heat.cmaui
210       properties:
211         flavor:
212           get_input: cmaui_flavor
213         availability_zone:
214           get_input: availability_zone_0
215         image:
216           get_input: cmaui_image
217         contrail_service_instance_ind: true
218         name:
219           get_input:
220           - cmaui_names
221           - 0
222     test_net:
223       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
224       properties:
225         shared: true
226         network_name:
227           get_input: jsa_net_name
228     template_Vlan_3:
229       type: org.openecomp.resource.cp.nodes.heat.network.contrailV2.VLANSubInterface
230       properties:
231         virtual_machine_interface_refs:
232         - template_VMInt_OAM_lb_1
233         name:
234           str_replace:
235             template: $NAME$VLAN
236             params:
237               $NAME:
238                 get_input: subinterface_name_prefix
239               $VLAN:
240                 get_input:
241                 - vlan_ids
242                 - get_input: subinterface_instance_index
243         virtual_network_refs:
244         - get_input:
245           - shared_network_id2
246           - 0
247         virtual_machine_interface_properties:
248           sub_interface_vlan_tag:
249             get_input: lb_st_vlan_type_oam
250         virtual_machine_interface_allowed_address_pairs:
251           allowed_address_pair:
252           - address_mode: active-standby
253             ip:
254               ip_prefix:
255                 get_input: virtual_ip_address
256               ip_prefix_len: 32
257             mac:
258               get_input: mac_address
259           - address_mode: active-standby
260             ip:
261               ip_prefix:
262                 get_input: virtual_ipv6_address
263               ip_prefix_len: 128
264             mac:
265               get_input: mac_address
266         virtual_machine_interface_mac_addresses:
267           mac_address:
268           - get_input: mac_address
269       requirements:
270       - binding:
271           capability: tosca.capabilities.network.Bindable
272           node: template_VMInt_OAM_lb_1
273           relationship: tosca.relationships.network.BindsTo
274     template_Vlan_2:
275       type: org.openecomp.resource.cp.nodes.heat.network.contrailV2.VLANSubInterface
276       properties:
277         virtual_machine_interface_refs:
278         - template_VMInt_OAM_lb_1
279         name:
280           str_replace:
281             template: $NAME$VLAN
282             params:
283               $NAME:
284                 get_input: subinterface_name_prefix
285               $VLAN:
286                 get_input:
287                 - vlan_ids
288                 - get_input: subinterface_instance_index
289         virtual_network_refs:
290         - get_input: shared_network_id
291         - get_input: shared_network_id1
292         virtual_machine_interface_properties:
293           sub_interface_vlan_tag:
294             get_input: lb_st_vlan_type_oam
295         virtual_machine_interface_allowed_address_pairs:
296           allowed_address_pair:
297           - address_mode: active-standby
298             ip:
299               ip_prefix:
300                 get_input: virtual_ip_address
301               ip_prefix_len: 32
302             mac:
303               get_input: mac_address
304           - address_mode: active-standby
305             ip:
306               ip_prefix:
307                 get_input: virtual_ipv6_address
308               ip_prefix_len: 128
309             mac:
310               get_input: mac_address
311         virtual_machine_interface_mac_addresses:
312           mac_address:
313           - get_input: mac_address
314       requirements:
315       - link:
316           capability: tosca.capabilities.network.Linkable
317           node: test_net
318           relationship: tosca.relationships.network.LinksTo
319       - binding:
320           capability: tosca.capabilities.network.Bindable
321           node: template_VMInt_OAM_lb_1
322           relationship: tosca.relationships.network.BindsTo
323     template_Vlan_1:
324       type: org.openecomp.resource.cp.nodes.heat.network.contrailV2.VLANSubInterface
325       properties:
326         virtual_machine_interface_refs:
327         - template_VMInt_OAM_lb_1
328         name:
329           str_replace:
330             template: $NAME$VLAN
331             params:
332               $NAME:
333                 get_input: subinterface_name_prefix
334               $VLAN:
335                 get_input:
336                 - vlan_ids
337                 - get_input: subinterface_instance_index
338         virtual_network_refs:
339         - get_input: shared_network_id
340         virtual_machine_interface_properties:
341           sub_interface_vlan_tag:
342             get_input: lb_st_vlan_type_oam
343         virtual_machine_interface_allowed_address_pairs:
344           allowed_address_pair:
345           - address_mode: active-standby
346             ip:
347               ip_prefix:
348                 get_input: virtual_ip_address
349               ip_prefix_len: 32
350             mac:
351               get_input: mac_address
352           - address_mode: active-standby
353             ip:
354               ip_prefix:
355                 get_input: virtual_ipv6_address
356               ip_prefix_len: 128
357             mac:
358               get_input: mac_address
359         virtual_machine_interface_mac_addresses:
360           mac_address:
361           - get_input: mac_address
362       requirements:
363       - link:
364           capability: tosca.capabilities.network.Linkable
365           node: test_net
366           relationship: tosca.relationships.network.LinksTo
367       - binding:
368           capability: tosca.capabilities.network.Bindable
369           node: template_VMInt_OAM_lb_1
370           relationship: tosca.relationships.network.BindsTo
371   groups:
372     main_group:
373       type: org.openecomp.groups.heat.HeatStack
374       properties:
375         heat_file: ../Artifacts/main.yml
376         description: |
377           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
378       members:
379       - test_net1
380       - test_net
381     addOn_group:
382       type: org.openecomp.groups.heat.HeatStack
383       properties:
384         heat_file: ../Artifacts/addOn.yml
385         description: cmaui server template for vMMSC
386       members:
387       - template_VMInt_OAM_lb_1
388       - template_VMInt_OAM_lb_2
389       - template_VMInt_OAM_lb_3
390       - server_cmaui
391       - template_Vlan_3
392       - template_Vlan_2
393       - template_Vlan_1