[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 / nested4ServiceTemplate.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: nested4
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     template_PortTuple_LB1:
61       hidden: false
62       immutable: false
63       type: string
64     lb_st_interface_type_oam:
65       hidden: false
66       immutable: false
67       type: string
68     oam_sec_group_name:
69       hidden: false
70       immutable: false
71       type: string
72     virtual_ip_address:
73       hidden: false
74       immutable: false
75       type: string
76     security_group_name:
77       hidden: false
78       immutable: false
79       type: list
80       description: CMAUI1, CMAUI2 server names
81       entry_schema:
82         type: string
83     vlan_ids:
84       hidden: false
85       immutable: false
86       type: string
87     cmaui_image:
88       hidden: false
89       immutable: false
90       type: string
91       description: Image for CMAUI server
92     virtual_ipv6_address:
93       hidden: false
94       immutable: false
95       type: string
96     cmaui_flavor:
97       hidden: false
98       immutable: false
99       type: string
100       description: Flavor for CMAUI server
101     lb_st_vlan_type_oam:
102       hidden: false
103       immutable: false
104       type: string
105       description: dummy
106     mac_address:
107       hidden: false
108       immutable: false
109       type: string
110     availability_zone_0:
111       label: availabilityzone name
112       hidden: false
113       immutable: false
114       type: string
115       description: availabilityzone name
116     subinterface_name_prefix:
117       hidden: false
118       immutable: false
119       type: string
120     subinterface_instance_index:
121       hidden: false
122       immutable: false
123       type: float
124     cmaui_oam_ips:
125       hidden: false
126       immutable: false
127       type: string
128   node_templates:
129     template_VMInt_OAM_lb_7:
130       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
131       properties:
132         security_group_refs:
133         - get_input: oam_sec_group_name
134         virtual_network_refs:
135         - get_input: p2
136         virtual_machine_interface_properties:
137           virtual_machine_interface_properties_service_interface_type:
138             get_input: lb_st_interface_type_oam
139         port_tuple_refs:
140         - get_input: template_PortTuple_LB1
141       requirements:
142       - binding:
143           capability: tosca.capabilities.network.Bindable
144           node: server_cmaui
145           relationship: tosca.relationships.network.BindsTo
146     template_VMInt_OAM_lb_8:
147       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
148       properties:
149         security_group_refs:
150         - get_input: oam_sec_group_name
151         virtual_network_refs:
152         - get_input: p1
153         virtual_machine_interface_properties:
154           virtual_machine_interface_properties_service_interface_type:
155             get_input: lb_st_interface_type_oam
156         port_tuple_refs:
157         - get_input: template_PortTuple_LB1
158       requirements:
159       - binding:
160           capability: tosca.capabilities.network.Bindable
161           node: server_cmaui
162           relationship: tosca.relationships.network.BindsTo
163     server_cmaui:
164       type: org.openecomp.resource.vfc.nodes.heat.cmaui
165       properties:
166         flavor:
167           get_input: cmaui_flavor
168         availability_zone:
169           get_input: availability_zone_0
170         image:
171           get_input: cmaui_image
172         contrail_service_instance_ind: true
173         name:
174           get_input:
175           - cmaui_names
176           - 0
177     template_Vlan_4:
178       type: org.openecomp.resource.cp.nodes.heat.network.contrailV2.VLANSubInterface
179       properties:
180         virtual_machine_interface_refs:
181         - template_VMInt_OAM_lb_8
182         name:
183           str_replace:
184             template: $NAME$VLAN
185             params:
186               $NAME:
187                 get_input: subinterface_name_prefix
188               $VLAN:
189                 get_input:
190                 - vlan_ids
191                 - get_input: subinterface_instance_index
192         virtual_network_refs:
193         - get_input: p1
194         virtual_machine_interface_properties:
195           sub_interface_vlan_tag:
196             get_input: lb_st_vlan_type_oam
197         virtual_machine_interface_allowed_address_pairs:
198           allowed_address_pair:
199           - address_mode: active-standby
200             ip:
201               ip_prefix:
202                 get_input: virtual_ip_address
203               ip_prefix_len: 32
204             mac:
205               get_input: mac_address
206           - address_mode: active-standby
207             ip:
208               ip_prefix:
209                 get_input: virtual_ipv6_address
210               ip_prefix_len: 128
211             mac:
212               get_input: mac_address
213         virtual_machine_interface_mac_addresses:
214           mac_address:
215           - get_input: mac_address
216       requirements:
217       - binding:
218           capability: tosca.capabilities.network.Bindable
219           node: template_VMInt_OAM_lb_8
220           relationship: tosca.relationships.network.BindsTo
221   groups:
222     nested4_group:
223       type: org.openecomp.groups.heat.HeatStack
224       properties:
225         heat_file: ../Artifacts/nested4.yml
226         description: nested4
227       members:
228       - template_VMInt_OAM_lb_7
229       - template_VMInt_OAM_lb_8
230       - server_cmaui
231       - template_Vlan_4
232   substitution_mappings:
233     node_type: org.openecomp.resource.abstract.nodes.heat.nested4
234     capabilities:
235       host_server_cmaui:
236       - server_cmaui
237       - host
238       os_server_cmaui:
239       - server_cmaui
240       - os
241       endpoint_server_cmaui:
242       - server_cmaui
243       - endpoint
244       binding_server_cmaui:
245       - server_cmaui
246       - binding
247       scalable_server_cmaui:
248       - server_cmaui
249       - scalable
250       binding_template_VMInt_OAM_lb_8:
251       - template_VMInt_OAM_lb_8
252       - binding
253       binding_template_VMInt_OAM_lb_7:
254       - template_VMInt_OAM_lb_7
255       - binding
256     requirements:
257       local_storage_server_cmaui:
258       - server_cmaui
259       - local_storage
260       link_template_VMInt_OAM_lb_7:
261       - template_VMInt_OAM_lb_7
262       - link
263       link_template_Vlan_4:
264       - template_Vlan_4
265       - link
266       link_template_VMInt_OAM_lb_8:
267       - template_VMInt_OAM_lb_8
268       - link