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