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