push addional code
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / porttonetconnection / shared / expectedoutputfiles / nested1ServiceTemplate.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: nested1
4 imports:
5   ContrailComputeGlobalTypes:
6     file: ContrailComputeGlobalTypesServiceTemplate.yaml
7   CinderVolumeGlobalTypes:
8     file: CinderVolumeGlobalTypesServiceTemplate.yaml
9   ContrailVirtualNetworkGlobalType:
10     file: ContrailVirtualNetworkGlobalTypeServiceTemplate.yaml
11   AbstractSubstituteGlobalTypes:
12     file: AbstractSubstituteGlobalTypesServiceTemplate.yaml
13   ContrailPortGlobalTypes:
14     file: ContrailPortGlobalTypesServiceTemplate.yaml
15   GlobalSubstitutionTypes:
16     file: GlobalSubstitutionTypesServiceTemplate.yaml
17   NeutronPortGlobalTypes:
18     file: NeutronPortGlobalTypesServiceTemplate.yaml
19   NeutronNetGlobalTypes:
20     file: NeutronNetGlobalTypesServiceTemplate.yaml
21   CommonGlobalTypes:
22     file: CommonGlobalTypesServiceTemplate.yaml
23   ContrailAbstractSubstituteGlobalTypes:
24     file: ContrailAbstractSubstituteGlobalTypesServiceTemplate.yaml
25   ContrailNetworkRuleGlobalType:
26     file: ContrailNetworkRuleGlobalTypeServiceTemplate.yaml
27   NeutronSecurityRulesGlobalTypes:
28     file: NeutronSecurityRulesGlobalTypesServiceTemplate.yaml
29   NovaServerGlobalTypes:
30     file: NovaServerGlobalTypesServiceTemplate.yaml
31   ContrailV2VirtualMachineInterfaceGlobalType:
32     file: ContrailV2VirtualMachineInterfaceGlobalTypeServiceTemplate.yaml
33 node_types:
34   org.openecomp.resource.vfc.nodes.heat.abc:
35     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
36   org.openecomp.resource.vfc.nodes.heat.cmaui:
37     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
38 topology_template:
39   inputs:
40     cmaui_names:
41       hidden: false
42       immutable: false
43       type: list
44       description: CMAUI1, CMAUI2 server names
45       entry_schema:
46         type: string
47     shared_network_id1:
48       hidden: false
49       immutable: false
50       type: string
51       description: UID of OAM network
52     p2:
53       hidden: false
54       immutable: false
55       type: string
56       description: UID of OAM network
57     abc_flavor:
58       hidden: false
59       immutable: false
60       type: string
61       description: Flavor for CMAUI server
62     cmaui_image:
63       hidden: false
64       immutable: false
65       type: string
66       description: Image for CMAUI server
67     cmaui_flavor:
68       hidden: false
69       immutable: false
70       type: string
71       description: Flavor for CMAUI server
72     abc_names:
73       hidden: false
74       immutable: false
75       type: list
76       description: CMAUI1, CMAUI2 server names
77       entry_schema:
78         type: string
79     security_group_name:
80       hidden: false
81       immutable: false
82       description: not impotrtant
83     availability_zone_0:
84       label: availabilityzone name
85       hidden: false
86       immutable: false
87       type: string
88       description: availabilityzone name
89     abc_oam_ips:
90       hidden: false
91       immutable: false
92       type: string
93     cmaui_oam_ips:
94       hidden: false
95       immutable: false
96       type: string
97     abc_image:
98       hidden: false
99       immutable: false
100       type: string
101       description: Image for CMAUI server
102   node_templates:
103     cmaui_port_2:
104       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
105       properties:
106         replacement_policy: AUTO
107         security_groups:
108         - get_input: security_group_name
109         fixed_ips:
110         - ip_address:
111             get_input:
112             - cmaui_oam_ips
113             - 0
114         network:
115           get_input: p2
116       requirements:
117       - binding:
118           capability: tosca.capabilities.network.Bindable
119           node: server_cmaui
120           relationship: tosca.relationships.network.BindsTo
121     server_cmaui:
122       type: org.openecomp.resource.vfc.nodes.heat.cmaui
123       properties:
124         flavor:
125           get_input: cmaui_flavor
126         availability_zone:
127           get_input: availability_zone_0
128         image:
129           get_input: cmaui_image
130         name:
131           get_input:
132           - cmaui_names
133           - 0
134     server_abc:
135       type: org.openecomp.resource.vfc.nodes.heat.abc
136       properties:
137         flavor:
138           get_input: abc_flavor
139         availability_zone:
140           get_input: availability_zone_0
141         image:
142           get_input: abc_image
143         name:
144           get_input:
145           - abc_names
146           - 0
147     abc_port_1:
148       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
149       properties:
150         replacement_policy: AUTO
151         security_groups:
152         - get_input: security_group_name
153         fixed_ips:
154         - ip_address:
155             get_input:
156             - abc_oam_ips
157             - 0
158         network:
159           get_input: p2
160       requirements:
161       - binding:
162           capability: tosca.capabilities.network.Bindable
163           node: server_abc
164           relationship: tosca.relationships.network.BindsTo
165     cmaui_port_1:
166       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
167       properties:
168         replacement_policy: AUTO
169         security_groups:
170         - get_input: security_group_name
171         fixed_ips:
172         - ip_address:
173             get_input:
174             - cmaui_oam_ips
175             - 0
176         network:
177           get_input: shared_network_id1
178       requirements:
179       - binding:
180           capability: tosca.capabilities.network.Bindable
181           node: server_cmaui
182           relationship: tosca.relationships.network.BindsTo
183   groups:
184     nested1:
185       type: org.openecomp.groups.heat.HeatStack
186       properties:
187         heat_file: ../Artifacts/nested1.yml
188         description: cmaui server template for vMMSC
189       members:
190       - cmaui_port_2
191       - server_cmaui
192       - server_abc
193       - abc_port_1
194       - cmaui_port_1
195   substitution_mappings:
196     node_type: org.openecomp.resource.abstract.nodes.heat.nested1
197     capabilities:
198       scalable_server_abc:
199       - server_abc
200       - scalable
201       os_server_cmaui:
202       - server_cmaui
203       - os
204       attachment_abc_port_1:
205       - abc_port_1
206       - attachment
207       scalable_server_cmaui:
208       - server_cmaui
209       - scalable
210       host_server_abc:
211       - server_abc
212       - host
213       os_server_abc:
214       - server_abc
215       - os
216       host_server_cmaui:
217       - server_cmaui
218       - host
219       binding_server_abc:
220       - server_abc
221       - binding
222       endpoint_server_cmaui:
223       - server_cmaui
224       - endpoint
225       binding_server_cmaui:
226       - server_cmaui
227       - binding
228       endpoint_server_abc:
229       - server_abc
230       - endpoint
231       attachment_cmaui_port_2:
232       - cmaui_port_2
233       - attachment
234       attachment_cmaui_port_1:
235       - cmaui_port_1
236       - attachment
237     requirements:
238       local_storage_server_cmaui:
239       - server_cmaui
240       - local_storage
241       link_abc_port_1:
242       - abc_port_1
243       - link
244       link_cmaui_port_2:
245       - cmaui_port_2
246       - link
247       link_cmaui_port_1:
248       - cmaui_port_1
249       - link
250       local_storage_server_abc:
251       - server_abc
252       - local_storage