[SDC-29] Amdocs OnBoard 1707 initial commit.
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / fulltest / nestedSingleCompute / nestedNodesConnectedIn / out / MainServiceTemplate.yaml
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     oam_net_ips:
12       label: OAM network ips
13       hidden: false
14       immutable: false
15       type: list
16       description: OAM network ips
17       default:
18       - 107.239.64.121
19       entry_schema:
20         type: string
21     availabilityzone_name:
22       label: availabilityzone name
23       hidden: false
24       immutable: false
25       type: string
26       description: availabilityzone name
27       default: nova
28     oam_net_gw:
29       label: CPS network gateway
30       hidden: false
31       immutable: false
32       type: string
33       description: CPS network gateway
34       default: 107.239.64.1
35     pcm_server_names:
36       label: PCRF CM server names
37       hidden: false
38       immutable: false
39       type: list
40       description: name of the PCRF CM instance
41       default:
42       - ZRDM1PCRF01PCM001
43       entry_schema:
44         type: string
45     pcm_image_name:
46       label: PCRF CM image name
47       hidden: false
48       immutable: false
49       type: string
50       description: PCRF CM image name
51       default: rhel2
52     cps_net_ips:
53       label: CPS network ips
54       hidden: false
55       immutable: false
56       type: list
57       description: CPS network ips
58       default:
59       - 172.26.16.113
60       entry_schema:
61         type: string
62     oam_flavor_name:
63       label: PCRF CM flavor name
64       hidden: false
65       immutable: false
66       type: string
67       description: flavor name of PCRF CM instance
68       default: cps
69     security_group_name:
70       label: security group name
71       hidden: false
72       immutable: false
73       type: string
74       description: the name of security group
75       default: nimbus_security_group
76     pcm_volumes:
77       label: CPS Cluman Cinder Volume
78       hidden: false
79       immutable: false
80       type: list
81       description: CPS Cluman Cinder Volume
82       default:
83       - 249cb355-8fdf-4382-9c3c-a2ebe767d45b
84       entry_schema:
85         type: string
86     compute_image_name:
87       hidden: false
88       immutable: false
89       type: string
90     pcm_flavor_name:
91       label: PCRF CM flavor name
92       hidden: false
93       immutable: false
94       type: string
95       description: flavor name of PCRF CM instance
96       default: cps
97     net_name:
98       hidden: false
99       immutable: false
100       type: string
101     oam_image_name:
102       label: PCRF CM image name
103       hidden: false
104       immutable: false
105       type: string
106       description: PCRF CM image name
107       default: rhel2
108     shared_security_group_id2:
109       hidden: false
110       immutable: false
111       type: string
112       description: network name of jsa log network
113     oam_server_names:
114       label: PCRF CM server names
115       hidden: false
116       immutable: false
117       type: list
118       description: name of the PCRF CM instance
119       default:
120       - ZRDM1PCRF01PCM001
121       entry_schema:
122         type: string
123     cps_net_name:
124       label: CPS network name
125       hidden: false
126       immutable: false
127       type: string
128       description: CPS network name
129       default: int_pcrf_net_0
130     cps_net_mask:
131       label: CPS network mask
132       hidden: false
133       immutable: false
134       type: string
135       description: CPS network mask
136       default: 255.255.255.0
137     oam_net_mask:
138       label: CPS network mask
139       hidden: false
140       immutable: false
141       type: string
142       description: CPS network mask
143       default: 255.255.255.0
144     shared_security_group_id1:
145       hidden: false
146       immutable: false
147       type: string
148       description: network name of jsa log network
149     oam_net_name:
150       label: OAM network name
151       hidden: false
152       immutable: false
153       type: string
154       description: OAM network name
155       default: oam_protected_net_0
156   node_templates:
157     abstract_pcm_server_1:
158       type: org.openecomp.resource.abstract.nodes.heat.pcm_server
159       directives:
160       - substitutable
161       properties:
162         availabilityzone_name:
163           get_input: availabilityzone_name
164         oam_net_gw:
165           get_input: oam_net_gw
166         pcm_image_name:
167           get_input: pcm_image_name
168         security_group_name:
169           get_input: security_group_name
170         cps_net_ip:
171           get_input:
172           - cps_net_ips
173           - 0
174         pcm_flavor_name:
175           get_input: pcm_flavor_name
176         service_template_filter:
177           substitute_service_template: nested-pcm_v0.1ServiceTemplate.yaml
178         pcm_vol:
179           get_input:
180           - pcm_volumes
181           - 0
182         pcm_server_name:
183           get_input:
184           - pcm_server_names
185           - 0
186         cps_net_name:
187           get_input: cps_net_name
188         cps_net_mask:
189           get_input: cps_net_mask
190         oam_net_ip:
191           get_input:
192           - oam_net_ips
193           - 0
194         oam_net_mask:
195           get_input: oam_net_mask
196         oam_net_name:
197           get_input: oam_net_name
198     abstract_pcm_server_0:
199       type: org.openecomp.resource.abstract.nodes.heat.pcm_server
200       directives:
201       - substitutable
202       properties:
203         pcm_flavor_name:
204           get_input: pcm_flavor_name
205         p1: jsa_security_group1
206         service_template_filter:
207           substitute_service_template: nested-pcm_v0.1ServiceTemplate.yaml
208         p2: jsa_security_group2
209         pcm_image_name:
210           get_input: pcm_image_name
211         pcm_server_name:
212           get_input:
213           - pcm_server_names
214           - 0
215     packet_mirror_network:
216       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
217       properties:
218         network_name:
219           get_input: net_name
220       requirements:
221       - dependency:
222           capability: tosca.capabilities.Node
223           node: abstract_pcm_server_1
224           relationship: tosca.relationships.DependsOn
225       - dependency:
226           capability: feature_compute
227           node: abstract_compute
228           relationship: tosca.relationships.DependsOn
229     abstract_oam_server_0:
230       type: org.openecomp.resource.abstract.nodes.heat.oam_server
231       directives:
232       - substitutable
233       properties:
234         availabilityzone_name:
235           get_input: availabilityzone_name
236         oam_net_gw:
237           get_input: oam_net_gw
238         oam_flavor_name:
239           get_input: oam_flavor_name
240         cps_net_ip:
241           get_input:
242           - cps_net_ips
243           - 0
244         oam_server_name:
245           get_input:
246           - oam_server_names
247           - 0
248         service_template_filter:
249           substitute_service_template: nested-oam_v0.1ServiceTemplate.yaml
250         pcm_vol:
251           get_input:
252           - pcm_volumes
253           - 0
254         oam_image_name:
255           get_input: oam_image_name
256         cps_net_name:
257           get_input: cps_net_name
258         cps_net_mask:
259           get_input: cps_net_mask
260         oam_net_ip:
261           get_input:
262           - oam_net_ips
263           - 0
264         oam_net_mask:
265           get_input: oam_net_mask
266         oam_net_name:
267           get_input: oam_net_name
268     compute_port_0:
269       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
270       properties:
271         ip_requirements:
272         - ip_version: 4
273           ip_count_required:
274             is_required: false
275           floating_ip_count_required:
276             is_required: false
277         mac_requirements:
278           mac_count_required:
279             is_required: false
280         network:
281           get_input: net_name
282     abstract_oam_server_1:
283       type: org.openecomp.resource.abstract.nodes.heat.oam_server
284       directives:
285       - substitutable
286       properties:
287         service_template_filter:
288           substitute_service_template: nested-oam_v0.1ServiceTemplate.yaml
289         p2:
290           get_input: shared_security_group_id2
291         shared_security_group_id1:
292           get_input: shared_security_group_id1
293     jsa_security_group1:
294       type: org.openecomp.resource.vfc.rules.nodes.heat.network.neutron.SecurityRules
295       properties:
296         name: jsa_security_group1_name
297         description: ems security group
298         rules:
299         - protocol: icmp
300           ethertype: IPv6
301           remote_ip_prefix: ::/0
302           direction: ingress
303       requirements:
304       - port:
305           capability: attachment_pcm_port_0
306           node: abstract_pcm_server_0
307           relationship: org.openecomp.relationships.AttachesTo
308       - port:
309           capability: attachment_pcm_port_1
310           node: abstract_pcm_server_0
311           relationship: org.openecomp.relationships.AttachesTo
312       - port:
313           capability: attachment_oam_port_1
314           node: abstract_oam_server_1
315           relationship: org.openecomp.relationships.AttachesTo
316       - port:
317           capability: attachment_oam_port_0
318           node: abstract_oam_server_1
319           relationship: org.openecomp.relationships.AttachesTo
320     jsa_security_group2:
321       type: org.openecomp.resource.vfc.rules.nodes.heat.network.neutron.SecurityRules
322       properties:
323         name: jsa_security_group2_name
324         description: ems security group
325         rules:
326         - protocol: tcp
327           ethertype: IPv4
328           port_range_max: 65535
329           remote_ip_prefix: 0.0.0.0/0
330           direction: egress
331           port_range_min: 1
332       requirements:
333       - port:
334           capability: attachment_pcm_port_0
335           node: abstract_pcm_server_0
336           relationship: org.openecomp.relationships.AttachesTo
337     abstract_compute:
338       type: org.openecomp.resource.abstract.nodes.compute
339       directives:
340       - substitutable
341       properties:
342         compute_compute_user_data_format:
343         - get_attribute:
344           - abstract_pcm_server_1
345           - oam_net_gw
346         vm_image_name:
347           get_input: compute_image_name
348         compute_compute_metadata:
349         - get_attribute:
350           - abstract_pcm_server_1
351           - server_pcm_id
352         compute_compute_name:
353         - compute_name: null
354         vm_flavor_name:
355           compute_flavor_name: null
356         compute_compute_config_drive:
357         - get_attribute:
358           - compute_port_0
359           - tenant_id
360           - port_security_enabled
361           - device_id
362           - qos_policy
363           - allowed_address_pairs
364           - show
365           - device_owner
366           - network
367           - security_groups
368           - fixed_ips
369           - mac_address
370           - admin_state_up
371           - name
372           - subnets
373           - status
374         service_template_filter:
375           substitute_service_template: Nested_computeServiceTemplate.yaml
376           count: 1
377         index_value:
378           get_property:
379           - SELF
380           - service_template_filter
381           - index_value
382   groups:
383     hot-nimbus-pcm_v0.4_group:
384       type: org.openecomp.groups.heat.HeatStack
385       properties:
386         heat_file: ../Artifacts/hot-nimbus-pcm_v0.4.yaml
387         description: heat template that creates PCRF Cluman stack
388       members:
389       - packet_mirror_network
390       - compute_port_0
391       - jsa_security_group1
392       - jsa_security_group2
393       - abstract_compute
394       - abstract_pcm_server_0
395       - abstract_oam_server_0
396       - abstract_pcm_server_1
397     addOn_group:
398       type: org.openecomp.groups.heat.HeatStack
399       properties:
400         heat_file: ../Artifacts/addOn.yml
401         description: |
402           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
403       members:
404       - abstract_oam_server_1