push addional code
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / hot-nimbus-oam-volumes_v1.0 / out / nested-ppd_v1.0ServiceTemplate.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: nested-ppd_v1.0
4 imports:
5   ContrailComputeGlobalTypes:
6     file: ContrailComputeGlobalTypesServiceTemplate.yaml
7   CinderVolumeGlobalTypes:
8     file: CinderVolumeGlobalTypesServiceTemplate.yaml
9   ContrailVirtualNetworkGlobalType:
10     file: ContrailVirtualNetworkGlobalTypeServiceTemplate.yaml
11   AbstractSubstituteGlobalTypes:
12     file: AbstractSubstituteGlobalTypesServiceTemplate.yaml
13   ContrailPortGlobalTypes:
14     file: ContrailPortGlobalTypesServiceTemplate.yaml
15   GlobalSubstitutionTypes:
16     file: GlobalSubstitutionTypesServiceTemplate.yaml
17   NeutronPortGlobalTypes:
18     file: NeutronPortGlobalTypesServiceTemplate.yaml
19   NeutronNetGlobalTypes:
20     file: NeutronNetGlobalTypesServiceTemplate.yaml
21   CommonGlobalTypes:
22     file: CommonGlobalTypesServiceTemplate.yaml
23   ContrailAbstractSubstituteGlobalTypes:
24     file: ContrailAbstractSubstituteGlobalTypesServiceTemplate.yaml
25   ContrailNetworkRuleGlobalType:
26     file: ContrailNetworkRuleGlobalTypeServiceTemplate.yaml
27   NeutronSecurityRulesGlobalTypes:
28     file: NeutronSecurityRulesGlobalTypesServiceTemplate.yaml
29   NovaServerGlobalTypes:
30     file: NovaServerGlobalTypesServiceTemplate.yaml
31   ContrailV2VirtualMachineInterfaceGlobalType:
32     file: ContrailV2VirtualMachineInterfaceGlobalTypeServiceTemplate.yaml
33 node_types:
34   org.openecomp.resource.vfc.nodes.heat.pcrf_ppd_server:
35     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
36 topology_template:
37   inputs:
38     pcrf_ppd_image_name:
39       label: image name
40       hidden: false
41       immutable: false
42       type: string
43       description: PCRF PD image name
44     availabilityzone_name:
45       label: availabilityzone name
46       hidden: false
47       immutable: false
48       type: string
49       description: availabilityzone name
50     pcrf_sp_net_ip:
51       label: Sp network ip
52       hidden: false
53       immutable: false
54       type: string
55       description: Sp network ip
56     pcrf_ppd_server_name:
57       label: PCRF PD server name
58       hidden: false
59       immutable: false
60       type: string
61       description: PCRF PD server name
62     pcrf_gx_net_ip:
63       label: Gx network ip
64       hidden: false
65       immutable: false
66       type: string
67       description: Gx network ip
68     pcrf_sy_net_name:
69       label: Sy network name
70       hidden: false
71       immutable: false
72       type: string
73       description: Sy network name
74     pcrf_sp_net_mask:
75       label: Sp network mask
76       hidden: false
77       immutable: false
78       type: string
79       description: Sp network mask
80     pcrf_sd_net_ip:
81       label: Sd network ip
82       hidden: false
83       immutable: false
84       type: string
85       description: Sd network ip
86     pcrf_vnf_id:
87       label: PCRF VNF Id
88       hidden: false
89       immutable: false
90       type: string
91       description: PCRF VNF Id
92     pcrf_oam_net_name:
93       label: OAM network name
94       hidden: false
95       immutable: false
96       type: string
97       description: OAM network name
98     pcrf_oam_net_ip:
99       label: OAM network ip
100       hidden: false
101       immutable: false
102       type: string
103       description: OAM network ip
104     pcrf_cps_net_mask:
105       label: CPS network mask
106       hidden: false
107       immutable: false
108       type: string
109       description: CPS network mask
110     pcrf_gx_net_mask:
111       label: Gx network mask
112       hidden: false
113       immutable: false
114       type: string
115       description: Gx network mask
116     pcrf_sgi_sy_net_name:
117       label: Sgi Sy network name
118       hidden: false
119       immutable: false
120       type: string
121       description: Sgi Sy network name
122     pcrf_sd_net_name:
123       label: Sd network name
124       hidden: false
125       immutable: false
126       type: string
127       description: Sd network name
128     pcrf_oam_net_gw:
129       label: CPS network gateway
130       hidden: false
131       immutable: false
132       type: string
133       description: CPS network gateway
134     pcrf_rx_net_name:
135       label: Rx network name
136       hidden: false
137       immutable: false
138       type: string
139       description: Rx network name
140     pcrf_rx_net_ip:
141       label: Rx network ip
142       hidden: false
143       immutable: false
144       type: string
145       description: Rx network ip
146     pcrf_sy_net_ip:
147       label: Sy network ip
148       hidden: false
149       immutable: false
150       type: string
151       description: Sy network ip
152     pcrf_sgi_sy_net_ip:
153       label: Sgi Sy network ip
154       hidden: false
155       immutable: false
156       type: string
157       description: Sgi Sy network ip
158     pcrf_ppd_flavor_name:
159       label: PCRF PD flavor name
160       hidden: false
161       immutable: false
162       type: string
163       description: flavor name of PCRF PD instance
164     pcrf_cps_net_ip:
165       label: CPS network ip
166       hidden: false
167       immutable: false
168       type: string
169       description: CPS network ip
170     pcrf_sy_net_mask:
171       label: Sy network mask
172       hidden: false
173       immutable: false
174       type: string
175       description: Sy network mask
176     pcrf_cps_net_name:
177       label: CPS network name
178       hidden: false
179       immutable: false
180       type: string
181       description: CPS network name
182     pcrf_oam_net_mask:
183       label: CPS network mask
184       hidden: false
185       immutable: false
186       type: string
187       description: CPS network mask
188     pcrf_lb_management_vip:
189       label: CPS OAM LB VIP
190       hidden: false
191       immutable: false
192       type: string
193       description: CPS OAM LB VIP
194     pcrf_sgi_sy_net_mask:
195       label: Sgi Sy network mask
196       hidden: false
197       immutable: false
198       type: string
199       description: Sgi Sy network mask
200     pcrf_lb_internal_vip:
201       label: CPS Internal LB VIP
202       hidden: false
203       immutable: false
204       type: string
205       description: CPS Internal LB VIP
206     pcrf_sd_net_mask:
207       label: Sd network mask
208       hidden: false
209       immutable: false
210       type: string
211       description: Sd network mask
212     pcrf_gx_net_name:
213       label: Gx network name
214       hidden: false
215       immutable: false
216       type: string
217       description: Gx network name
218     pcrf_sp_net_name:
219       label: Sp network name
220       hidden: false
221       immutable: false
222       type: string
223       description: Sp network name
224     pcrf_rx_net_mask:
225       label: Rx network mask
226       hidden: false
227       immutable: false
228       type: string
229       description: Rx network mask
230     pcrf_security_group_name:
231       label: security group name
232       hidden: false
233       immutable: false
234       type: string
235       description: the name of security group
236   node_templates:
237     pcrf_ppd_port_5:
238       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
239       properties:
240         security_groups:
241         - get_input: pcrf_security_group_name
242         fixed_ips:
243         - ip_address:
244             get_input: pcrf_rx_net_ip
245         network:
246           get_input: pcrf_rx_net_name
247       requirements:
248       - binding:
249           capability: tosca.capabilities.network.Bindable
250           node: pcrf_server_ppd
251           relationship: tosca.relationships.network.BindsTo
252     pcrf_ppd_port_6:
253       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
254       properties:
255         security_groups:
256         - get_input: pcrf_security_group_name
257         fixed_ips:
258         - ip_address:
259             get_input: pcrf_sd_net_ip
260         network:
261           get_input: pcrf_sd_net_name
262       requirements:
263       - binding:
264           capability: tosca.capabilities.network.Bindable
265           node: pcrf_server_ppd
266           relationship: tosca.relationships.network.BindsTo
267     pcrf_ppd_port_3:
268       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
269       properties:
270         security_groups:
271         - get_input: pcrf_security_group_name
272         fixed_ips:
273         - ip_address:
274             get_input: pcrf_sp_net_ip
275         network:
276           get_input: pcrf_sp_net_name
277       requirements:
278       - binding:
279           capability: tosca.capabilities.network.Bindable
280           node: pcrf_server_ppd
281           relationship: tosca.relationships.network.BindsTo
282     pcrf_server_ppd:
283       type: org.openecomp.resource.vfc.nodes.heat.pcrf_ppd_server
284       properties:
285         flavor:
286           get_input: pcrf_ppd_flavor_name
287         availability_zone:
288           get_input: availabilityzone_name
289         image:
290           get_input: pcrf_ppd_image_name
291         config_drive: 'True'
292         metadata:
293           vnf_id:
294             get_input: pcrf_vnf_id
295         user_data_format: RAW
296         name:
297           get_input: pcrf_ppd_server_name
298     pcrf_ppd_port_4:
299       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
300       properties:
301         security_groups:
302         - get_input: pcrf_security_group_name
303         fixed_ips:
304         - ip_address:
305             get_input: pcrf_sy_net_ip
306         network:
307           get_input: pcrf_sy_net_name
308       requirements:
309       - binding:
310           capability: tosca.capabilities.network.Bindable
311           node: pcrf_server_ppd
312           relationship: tosca.relationships.network.BindsTo
313     pcrf_ppd_port_7:
314       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
315       properties:
316         security_groups:
317         - get_input: pcrf_security_group_name
318         fixed_ips:
319         - ip_address:
320             get_input: pcrf_sgi_sy_net_ip
321         network:
322           get_input: pcrf_sgi_sy_net_name
323       requirements:
324       - binding:
325           capability: tosca.capabilities.network.Bindable
326           node: pcrf_server_ppd
327           relationship: tosca.relationships.network.BindsTo
328     pcrf_ppd_port_1:
329       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
330       properties:
331         security_groups:
332         - get_input: pcrf_security_group_name
333         fixed_ips:
334         - ip_address:
335             get_input: pcrf_oam_net_ip
336         allowed_address_pairs:
337         - ip_address:
338             get_input: pcrf_lb_management_vip
339         network:
340           get_input: pcrf_oam_net_name
341       requirements:
342       - binding:
343           capability: tosca.capabilities.network.Bindable
344           node: pcrf_server_ppd
345           relationship: tosca.relationships.network.BindsTo
346     pcrf_ppd_port_2:
347       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
348       properties:
349         security_groups:
350         - get_input: pcrf_security_group_name
351         fixed_ips:
352         - ip_address:
353             get_input: pcrf_gx_net_ip
354         network:
355           get_input: pcrf_gx_net_name
356       requirements:
357       - binding:
358           capability: tosca.capabilities.network.Bindable
359           node: pcrf_server_ppd
360           relationship: tosca.relationships.network.BindsTo
361     pcrf_ppd_port_0:
362       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
363       properties:
364         security_groups:
365         - get_input: pcrf_security_group_name
366         fixed_ips:
367         - ip_address:
368             get_input: pcrf_cps_net_ip
369         allowed_address_pairs:
370         - ip_address:
371             get_input: pcrf_lb_internal_vip
372         network:
373           get_input: pcrf_cps_net_name
374       requirements:
375       - binding:
376           capability: tosca.capabilities.network.Bindable
377           node: pcrf_server_ppd
378           relationship: tosca.relationships.network.BindsTo
379   groups:
380     nested-ppd_v1.0:
381       type: org.openecomp.groups.heat.HeatStack
382       properties:
383         heat_file: ../Artifacts/nested-ppd_v1.0.yaml
384         description: heat template that creates PCRF Policy Director stack
385       members:
386       - pcrf_ppd_port_5
387       - pcrf_ppd_port_6
388       - pcrf_ppd_port_3
389       - pcrf_server_ppd
390       - pcrf_ppd_port_4
391       - pcrf_ppd_port_7
392       - pcrf_ppd_port_1
393       - pcrf_ppd_port_2
394       - pcrf_ppd_port_0
395   substitution_mappings:
396     node_type: org.openecomp.resource.abstract.nodes.heat.nested-ppd_v1.0
397     capabilities:
398       attachment_pcrf_ppd_port_1:
399       - pcrf_ppd_port_1
400       - attachment
401       attachment_pcrf_ppd_port_2:
402       - pcrf_ppd_port_2
403       - attachment
404       binding_pcrf_server_ppd:
405       - pcrf_server_ppd
406       - binding
407       attachment_pcrf_ppd_port_0:
408       - pcrf_ppd_port_0
409       - attachment
410       attachment_pcrf_ppd_port_5:
411       - pcrf_ppd_port_5
412       - attachment
413       attachment_pcrf_ppd_port_6:
414       - pcrf_ppd_port_6
415       - attachment
416       attachment_pcrf_ppd_port_3:
417       - pcrf_ppd_port_3
418       - attachment
419       os_pcrf_server_ppd:
420       - pcrf_server_ppd
421       - os
422       attachment_pcrf_ppd_port_4:
423       - pcrf_ppd_port_4
424       - attachment
425       endpoint_pcrf_server_ppd:
426       - pcrf_server_ppd
427       - endpoint
428       scalable_pcrf_server_ppd:
429       - pcrf_server_ppd
430       - scalable
431       attachment_pcrf_ppd_port_7:
432       - pcrf_ppd_port_7
433       - attachment
434       host_pcrf_server_ppd:
435       - pcrf_server_ppd
436       - host
437     requirements:
438       link_pcrf_ppd_port_3:
439       - pcrf_ppd_port_3
440       - link
441       link_pcrf_ppd_port_2:
442       - pcrf_ppd_port_2
443       - link
444       local_storage_pcrf_server_ppd:
445       - pcrf_server_ppd
446       - local_storage
447       link_pcrf_ppd_port_1:
448       - pcrf_ppd_port_1
449       - link
450       link_pcrf_ppd_port_0:
451       - pcrf_ppd_port_0
452       - link
453       link_pcrf_ppd_port_7:
454       - pcrf_ppd_port_7
455       - link
456       link_pcrf_ppd_port_6:
457       - pcrf_ppd_port_6
458       - link
459       link_pcrf_ppd_port_5:
460       - pcrf_ppd_port_5
461       - link
462       link_pcrf_ppd_port_4:
463       - pcrf_ppd_port_4
464       - link