[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 / nested / expectedoutputfiles / nestedServiceTemplate.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: nested
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     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     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: p1
154         - get_input: p2
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_2:
180       type: org.openecomp.resource.cp.nodes.heat.network.contrailV2.VLANSubInterface
181       properties:
182         virtual_machine_interface_refs:
183         - template_VMInt_OAM_lb_2
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         - get_input: p2
197         virtual_machine_interface_properties:
198           sub_interface_vlan_tag:
199             get_input: lb_st_vlan_type_oam
200         virtual_machine_interface_allowed_address_pairs:
201           allowed_address_pair:
202           - address_mode: active-standby
203             ip:
204               ip_prefix:
205                 get_input: virtual_ip_address
206               ip_prefix_len: 32
207             mac:
208               get_input: mac_address
209           - address_mode: active-standby
210             ip:
211               ip_prefix:
212                 get_input: virtual_ipv6_address
213               ip_prefix_len: 128
214             mac:
215               get_input: mac_address
216         virtual_machine_interface_mac_addresses:
217           mac_address:
218           - get_input: mac_address
219       requirements:
220       - binding:
221           capability: tosca.capabilities.network.Bindable
222           node: template_VMInt_OAM_lb_2
223           relationship: tosca.relationships.network.BindsTo
224     template_Vlan_1:
225       type: org.openecomp.resource.cp.nodes.heat.network.contrailV2.VLANSubInterface
226       properties:
227         virtual_machine_interface_refs:
228         - template_VMInt_OAM_lb_1
229         name:
230           str_replace:
231             template: $NAME$VLAN
232             params:
233               $NAME:
234                 get_input: subinterface_name_prefix
235               $VLAN:
236                 get_input:
237                 - vlan_ids
238                 - get_input: subinterface_instance_index
239         virtual_network_refs:
240         - get_input: p1
241         virtual_machine_interface_properties:
242           sub_interface_vlan_tag:
243             get_input: lb_st_vlan_type_oam
244         virtual_machine_interface_allowed_address_pairs:
245           allowed_address_pair:
246           - address_mode: active-standby
247             ip:
248               ip_prefix:
249                 get_input: virtual_ip_address
250               ip_prefix_len: 32
251             mac:
252               get_input: mac_address
253           - address_mode: active-standby
254             ip:
255               ip_prefix:
256                 get_input: virtual_ipv6_address
257               ip_prefix_len: 128
258             mac:
259               get_input: mac_address
260         virtual_machine_interface_mac_addresses:
261           mac_address:
262           - get_input: mac_address
263       requirements:
264       - binding:
265           capability: tosca.capabilities.network.Bindable
266           node: template_VMInt_OAM_lb_1
267           relationship: tosca.relationships.network.BindsTo
268   groups:
269     nested_group:
270       type: org.openecomp.groups.heat.HeatStack
271       properties:
272         heat_file: ../Artifacts/nested.yml
273         description: cmaui server template for vMMSC
274       members:
275       - template_VMInt_OAM_lb_1
276       - template_VMInt_OAM_lb_2
277       - server_cmaui
278       - template_Vlan_2
279       - template_Vlan_1
280   substitution_mappings:
281     node_type: org.openecomp.resource.abstract.nodes.heat.nested
282     capabilities:
283       host_server_cmaui:
284       - server_cmaui
285       - host
286       os_server_cmaui:
287       - server_cmaui
288       - os
289       binding_template_VMInt_OAM_lb_2:
290       - template_VMInt_OAM_lb_2
291       - binding
292       binding_template_VMInt_OAM_lb_1:
293       - template_VMInt_OAM_lb_1
294       - binding
295       endpoint_server_cmaui:
296       - server_cmaui
297       - endpoint
298       binding_server_cmaui:
299       - server_cmaui
300       - binding
301       scalable_server_cmaui:
302       - server_cmaui
303       - scalable
304     requirements:
305       link_template_VMInt_OAM_lb_1:
306       - template_VMInt_OAM_lb_1
307       - link
308       local_storage_server_cmaui:
309       - server_cmaui
310       - local_storage
311       link_template_VMInt_OAM_lb_2:
312       - template_VMInt_OAM_lb_2
313       - link
314       link_template_Vlan_1:
315       - template_Vlan_1
316       - link
317       link_template_Vlan_2:
318       - template_Vlan_2
319       - link