18e3aa6ca59dec6a284498f7722b6bf3f190d47b
[sdc.git] /
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: Main
4 imports:
5 - openecomp_heat_index:
6     file: openecomp-heat/_index.yml
7 - GlobalSubstitutionTypes:
8     file: GlobalSubstitutionTypesServiceTemplate.yaml
9 topology_template:
10   inputs:
11     pd_server_1b_flavor:
12       hidden: false
13       immutable: false
14       annotations:
15         source:
16           type: org.openecomp.annotations.Source
17           properties:
18             vf_module_label:
19             - main
20             source_type: HEAT
21             param_name: pd_server_1b_flavor
22       type: string
23       description: Flavor for PS server
24     packet_externalmain_network_name:
25       hidden: false
26       immutable: false
27       annotations:
28         source:
29           type: org.openecomp.annotations.Source
30           properties:
31             vf_module_label:
32             - main
33             source_type: HEAT
34             param_name: packet_externalmain_network_name
35       type: string
36       description: network name
37     pd_server_1b_ips:
38       hidden: false
39       immutable: false
40       annotations:
41         source:
42           type: org.openecomp.annotations.Source
43           properties:
44             vf_module_label:
45             - main
46             source_type: HEAT
47             param_name: pd_server_1b_ips
48       type: string
49     Vlan_network_collection_function:
50       type: string
51       required: true
52     Vlan_vfc_instance_group_function:
53       type: string
54       required: true
55     pd_server_1b_names:
56       hidden: false
57       immutable: false
58       annotations:
59         source:
60           type: org.openecomp.annotations.Source
61           properties:
62             vf_module_label:
63             - main
64             source_type: HEAT
65             param_name: pd_server_1b_names
66       type: list
67       description: Ps server names
68       entry_schema:
69         type: string
70     availability_zone_0:
71       label: availabilityzone name
72       hidden: false
73       immutable: false
74       annotations:
75         source:
76           type: org.openecomp.annotations.Source
77           properties:
78             vf_module_label:
79             - main
80             source_type: HEAT
81             param_name: availability_zone_0
82       type: string
83       description: availabilityzone name
84     packet_internalmain_network_name:
85       hidden: false
86       immutable: false
87       annotations:
88         source:
89           type: org.openecomp.annotations.Source
90           properties:
91             vf_module_label:
92             - main
93             source_type: HEAT
94             param_name: packet_internalmain_network_name
95       type: string
96       description: network name
97     pd_server_1b_image:
98       hidden: false
99       immutable: false
100       annotations:
101         source:
102           type: org.openecomp.annotations.Source
103           properties:
104             vf_module_label:
105             - main
106             source_type: HEAT
107             param_name: pd_server_1b_image
108       type: string
109       description: Ps Image server
110     pd_server_2b_ips:
111       hidden: false
112       immutable: false
113       annotations:
114         source:
115           type: org.openecomp.annotations.Source
116           properties:
117             vf_module_label:
118             - main
119             source_type: HEAT
120             param_name: pd_server_2b_ips
121       type: string
122   node_templates:
123     abstract_pd_server_1b_1:
124       type: org.openecomp.resource.abstract.nodes.pd_server_1b_1
125       directives:
126       - substitutable
127       properties:
128         compute_pd_server_1b_name:
129         - get_input:
130           - pd_server_1b_names
131           - 0
132         - get_input:
133           - pd_server_1b_names
134           - 1
135         - get_input:
136           - pd_server_1b_names
137           - 2
138         - get_input:
139           - pd_server_1b_names
140           - 1
141         vm_flavor_name:
142           get_input: pd_server_1b_flavor
143         subinterface_nested_vlan_net1:
144         - packet_externalmain_network
145         - packet_externalmain_network
146         - packet_externalmain_network
147         - packet_externalmain_network
148         vm_image_name:
149           get_input: pd_server_1b_image
150         port_pd_server_1b_port_replacement_policy:
151         - AUTO
152         - AUTO
153         - AUTO
154         - AUTO
155         port_pd_server_1b_port_mac_requirements:
156           mac_count_required:
157             is_required: false
158         subinterface_nested_vlan_parent_interface:
159         - pd_server_1b_port_0
160         - pd_server_1b_port_01
161         - pd_server_1b_port_11
162         - pd_server_1b_port_1
163         port_pd_server_1b_port_fixed_ips:
164         - - ip_address:
165               get_input:
166               - pd_server_1b_ips
167               - 0
168         - - ip_address:
169               get_input:
170               - pd_server_1b_ips
171               - 0
172         - - ip_address:
173               get_input:
174               - pd_server_1b_ips
175               - 1
176         - - ip_address:
177               get_input:
178               - pd_server_1b_ips
179               - 1
180         port_pd_server_1b_port_network:
181         - packet_internalmain_network
182         - packet_internalmain_network
183         - packet_internalmain_network
184         - packet_internalmain_network
185         compute_pd_server_1b_availability_zone:
186         - get_input: availability_zone_0
187         - get_input: availability_zone_0
188         - get_input: availability_zone_0
189         - get_input: availability_zone_0
190         port_pd_server_1b_port_ip_requirements:
191         - - ip_version: 4
192             ip_count_required:
193               is_required: true
194             floating_ip_count_required:
195               is_required: false
196           - ip_version: 6
197             ip_count_required:
198               is_required: false
199             floating_ip_count_required:
200               is_required: false
201         - - ip_version: 4
202             ip_count_required:
203               is_required: true
204             floating_ip_count_required:
205               is_required: false
206           - ip_version: 6
207             ip_count_required:
208               is_required: false
209             floating_ip_count_required:
210               is_required: false
211         - - ip_version: 4
212             ip_count_required:
213               is_required: true
214             floating_ip_count_required:
215               is_required: false
216           - ip_version: 6
217             ip_count_required:
218               is_required: false
219             floating_ip_count_required:
220               is_required: false
221         - - ip_version: 4
222             ip_count_required:
223               is_required: true
224             floating_ip_count_required:
225               is_required: false
226           - ip_version: 6
227             ip_count_required:
228               is_required: false
229             floating_ip_count_required:
230               is_required: false
231         service_template_filter:
232           substitute_service_template: Nested_pd_server_1b_1ServiceTemplate.yaml
233           count: 4
234         index_value:
235           get_property:
236           - SELF
237           - service_template_filter
238           - index_value
239       requirements:
240       - link_pd_server_1b_pd_server_1b_port:
241           capability: tosca.capabilities.network.Linkable
242           node: packet_internalmain_network
243           relationship: tosca.relationships.network.LinksTo
244       - link_template_Vlan_vmi_1_pd_server_1b_pd_server_1b_port_nested_vlan:
245           capability: tosca.capabilities.network.Linkable
246           node: packet_externalmain_network
247           relationship: tosca.relationships.network.LinksTo
248     packet_internalmain_network:
249       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
250       properties:
251         network_name:
252           get_input: packet_internalmain_network_name
253     test_nested_level1:
254       type: org.openecomp.resource.abstract.nodes.heat.nested_pattern5
255       directives:
256       - substitutable
257       properties:
258         service_template_filter:
259           substitute_service_template: nested_pattern5ServiceTemplate.yaml
260     packet_externalmain_network:
261       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
262       properties:
263         network_name:
264           get_input: packet_externalmain_network_name
265   groups:
266     main_group:
267       type: org.openecomp.groups.heat.HeatStack
268       properties:
269         heat_file: ../Artifacts/main.yml
270         description: |
271           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
272       members:
273       - packet_internalmain_network
274       - test_nested_level1
275       - packet_externalmain_network
276       - abstract_pd_server_1b_1
277     Vlan_group:
278       type: org.openecomp.groups.VfcInstanceGroup
279       properties:
280         vfc_parent_port_role: 1b
281         network_collection_function:
282           get_input: Vlan_network_collection_function
283         vfc_instance_group_function:
284           get_input: Vlan_vfc_instance_group_function
285         subinterface_role: Vlan
286       members:
287       - abstract_pd_server_1b_1