7c56f7b75a9ae5192433708ec69aa7bff87314ff
[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     pd_server_1b_names:
50       hidden: false
51       immutable: false
52       annotations:
53         source:
54           type: org.openecomp.annotations.Source
55           properties:
56             vf_module_label:
57             - main
58             source_type: HEAT
59             param_name: pd_server_1b_names
60       type: list
61       description: Ps server names
62       entry_schema:
63         type: string
64     availability_zone_0:
65       label: availabilityzone name
66       hidden: false
67       immutable: false
68       annotations:
69         source:
70           type: org.openecomp.annotations.Source
71           properties:
72             vf_module_label:
73             - main
74             source_type: HEAT
75             param_name: availability_zone_0
76       type: string
77       description: availabilityzone name
78     packet_internalmain_network_name:
79       hidden: false
80       immutable: false
81       annotations:
82         source:
83           type: org.openecomp.annotations.Source
84           properties:
85             vf_module_label:
86             - main
87             source_type: HEAT
88             param_name: packet_internalmain_network_name
89       type: string
90       description: network name
91     pd_server_1b_image:
92       hidden: false
93       immutable: false
94       annotations:
95         source:
96           type: org.openecomp.annotations.Source
97           properties:
98             vf_module_label:
99             - main
100             source_type: HEAT
101             param_name: pd_server_1b_image
102       type: string
103       description: Ps Image server
104     pd_server_2b_ips:
105       hidden: false
106       immutable: false
107       annotations:
108         source:
109           type: org.openecomp.annotations.Source
110           properties:
111             vf_module_label:
112             - main
113             source_type: HEAT
114             param_name: pd_server_2b_ips
115       type: string
116   node_templates:
117     abstract_pd_server_1b_1:
118       type: org.openecomp.resource.abstract.nodes.pd_server_1b_1
119       directives:
120       - substitutable
121       properties:
122         compute_pd_server_1b_name:
123         - get_input:
124           - pd_server_1b_names
125           - 0
126         - get_input:
127           - pd_server_1b_names
128           - 1
129         - get_input:
130           - pd_server_1b_names
131           - 2
132         - get_input:
133           - pd_server_1b_names
134           - 1
135         subinterface_nested_vlan_service_template_filter_count:
136         - 9
137         - 9
138         - 9
139         - 9
140         vm_flavor_name:
141           get_input: pd_server_1b_flavor
142         port_pd_server_1b_port_subinterface_indicator:
143         - true
144         - true
145         - true
146         - true
147         subinterface_nested_vlan_net1:
148         - packet_externalmain_network
149         - packet_externalmain_network
150         - packet_externalmain_network
151         - packet_externalmain_network
152         vm_image_name:
153           get_input: pd_server_1b_image
154         port_pd_server_1b_port_replacement_policy:
155         - AUTO
156         - AUTO
157         - AUTO
158         - AUTO
159         port_pd_server_1b_port_mac_requirements:
160           mac_count_required:
161             is_required: false
162         subinterface_nested_vlan_parent_interface:
163         - pd_server_1b_port_0
164         - pd_server_1b_port_01
165         - pd_server_1b_port_11
166         - pd_server_1b_port_1
167         port_pd_server_1b_port_fixed_ips:
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               - 0
176         - - ip_address:
177               get_input:
178               - pd_server_1b_ips
179               - 1
180         - - ip_address:
181               get_input:
182               - pd_server_1b_ips
183               - 1
184         port_pd_server_1b_port_network:
185         - packet_internalmain_network
186         - packet_internalmain_network
187         - packet_internalmain_network
188         - packet_internalmain_network
189         compute_pd_server_1b_availability_zone:
190         - get_input: availability_zone_0
191         - get_input: availability_zone_0
192         - get_input: availability_zone_0
193         - get_input: availability_zone_0
194         port_pd_server_1b_port_ip_requirements:
195         - - ip_version: 4
196             ip_count_required:
197               is_required: true
198             floating_ip_count_required:
199               is_required: false
200         - - ip_version: 4
201             ip_count_required:
202               is_required: true
203             floating_ip_count_required:
204               is_required: false
205         - - ip_version: 4
206             ip_count_required:
207               is_required: true
208             floating_ip_count_required:
209               is_required: false
210         - - ip_version: 4
211             ip_count_required:
212               is_required: true
213             floating_ip_count_required:
214               is_required: false
215         service_template_filter:
216           substitute_service_template: Nested_pd_server_1b_1ServiceTemplate.yaml
217           count: 4
218         index_value:
219           get_property:
220           - SELF
221           - service_template_filter
222           - index_value
223       requirements:
224       - link_pd_server_1b_pd_server_1b_port:
225           capability: tosca.capabilities.network.Linkable
226           node: packet_internalmain_network
227           relationship: tosca.relationships.network.LinksTo
228       - subinterface_link_template_Vlan_vmi_1_pd_server_1b_pd_server_1b_port_nested_vlan:
229           capability: tosca.capabilities.network.Linkable
230           node: packet_externalmain_network
231           relationship: tosca.relationships.network.LinksTo
232     packet_internalmain_network:
233       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
234       properties:
235         network_name:
236           get_input: packet_internalmain_network_name
237     test_nested_level1:
238       type: org.openecomp.resource.abstract.nodes.heat.nested_pattern5
239       directives:
240       - substitutable
241       properties:
242         service_template_filter:
243           substitute_service_template: nested_pattern5ServiceTemplate.yaml
244     packet_externalmain_network:
245       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
246       properties:
247         network_name:
248           get_input: packet_externalmain_network_name
249   groups:
250     main_group:
251       type: org.openecomp.groups.heat.HeatStack
252       properties:
253         heat_file: ../Artifacts/main.yml
254         description: |
255           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
256       members:
257       - packet_internalmain_network
258       - test_nested_level1
259       - packet_externalmain_network
260       - abstract_pd_server_1b_1