import tosca bug
[sdc.git] / openecomp-be / lib / openecomp-tosca-converter-lib / openecomp-tosca-converter-core / src / test / resources / mock / toscaConverter / convertParameters / out / MainServiceTemplate.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0
2 metadata:
3   template_name: Main
4   resourceVendor: vEPC_LicenseModel_v2
5   name: vHSS_vEPC_v2
6   description: 'vHSS '
7   invariantUUID: 1aaefda9-109a-421f-ad7d-2a7b3100a424
8   UUID: 7a308278-ab71-4bc8-ae45-2779c5f625dc
9   type: VF
10   category: Network L2-3
11   subcategory: Gateway
12   resourceVendorRelease: '1.0'
13 imports:
14 - openecomp_heat_index:
15     file: openecomp-heat/_index.yml
16 - GlobalSubstitutionTypes:
17     file: GlobalSubstitutionTypesServiceTemplate.yaml
18 topology_template:
19   inputs:
20     base_net_cidr:
21       type: string
22       description: The CIDR of the base network
23       default: 192.168.10.0/24
24     fabric_net_id:
25       type: string
26       description: The ID of the fabric network
27       default: test1_fabric_net
28     data_2_net_cidr:
29       type: string
30       description: The CIDR of the PCRF external data 2 network
31       default: 10.4.0.0/16
32     RSU_data_2_ip:
33       type: string
34       description: RSU IP address that is assigned to the vHSS to communicate with the RSU
35       default: 10.4.0.1
36     public_net_id:
37       type: string
38       description: Public network that enables remote connection to VNF
39       default: 00000000-0000-0000-0000-000000000000
40     om_net_id:
41       type: string
42       description: The ID of the PCRF om network
43       default: test1_om_net
44     signal_1_net_cidr:
45       type: string
46       description: The CIDR of the PCRF external signal 1 network
47       default: 10.1.0.0/16
48     OMU_om_ip:
49       type: string
50       description: OM IP address that is assigned to the vHSS to communicate with the OMU
51       default: 192.168.30.100
52     dcae_collector_ip:
53       type: string
54       description: IP address of the DCAE collector
55       default: 10.0.4.102
56     data_1_net_id:
57       type: string
58       description: The ID of the PCRF external data 1 network
59       default: test1_data_1
60     FEU_name_0:
61       type: string
62       description: Name of the FEU
63       default: huaweiPCRFl01FEU01
64     data_2_net_id:
65       type: string
66       description: The ID of the PCRF external data 2 network
67       default: test1_data_2
68     signal_1_net_id:
69       type: string
70       description: The ID of the PCRF external signal 1 network
71       default: test1_signal_1
72     PID_name_0:
73       type: string
74       description: Name of the PID
75       default: huaweiPCRFl01PID01
76     demo_artifacts_version:
77       type: string
78       description: Artifacts (jar, tar.gz) version used in demo vnfs
79       default: 1.0.0-SNAPSHOT
80     boss_net_cidr:
81       type: string
82       description: The CIDR of the PCRF external boss network
83       default: 10.6.0.0/16
84     vHSS_image_name:
85       type: string
86       description: Image to be used for compute instance
87       default: Ubuntu 14.04 LTS (Trusty Tahr) (PVHVM)
88     key_name:
89       type: string
90       description: Public/Private key pair name
91       default: vHSS_key
92     OMU_name_0:
93       type: string
94       description: Name of the OMU
95       default: huaweiPCRFl01omu01
96     boss_net_id:
97       type: string
98       description: The ID of the PCRF external boss network
99       default: test1_boss
100     OMU_fabric_ip:
101       type: string
102       description: Private IP address that is assigned to the vHSS to communicate with the OMU
103       default: 192.168.20.100
104     vf_module_id:
105       type: string
106       description: The vHSS Module ID is provided by ECOMP
107       default: vHSS
108     repo_url_blob:
109       type: string
110       description: URL of the repository that hosts the demo packages
111       default: https://nexus.openecomp.org/content/repositories/raw
112     FEU_base_ip:
113       type: string
114       description: FEU IP address that is assigned to the vHSS to communicate with the FEU
115       default: 192.168.10.201
116     RSU_base_ip:
117       type: string
118       description: RSU IP address that is assigned to the vHSS to communicate with the RSU
119       default: 192.168.10.205
120     RSU_fabric_ip:
121       type: string
122       description: RSU IP address that is assigned to the vHSS to communicate with the RSU
123       default: 192.168.20.205
124     RSU_name_0:
125       type: string
126       description: Name of the RSU
127       default: huaweiPCRFl01RSU01
128     FEU_signal_1_ip:
129       type: string
130       description: FEU IP address that is assigned to the vHSS to communicate with the FEU
131       default: 10.1.0.1
132     OMU_base_ip:
133       type: string
134       description: Private IP address that is assigned to the vHSS to communicate with the vPacketGenerator
135       default: 192.168.10.100
136     om_net_cidr:
137       type: string
138       description: The CIDR of the PCRF om network
139       default: 192.168.30.0/24
140     PID_base_ip:
141       type: string
142       description: PID IP address that is assigned to the vHSS to communicate with the PID
143       default: 192.168.10.205
144     vnf_id:
145       type: string
146       description: The VNF ID is provided by ECOMP
147       default: vHSS_demo_app
148     PID_boss_ip:
149       type: string
150       description: PID IP address that is assigned to the vHSS to communicate with the PID
151       default: 10.3.0.1
152     dcae_collector_port:
153       type: string
154       description: Port of the DCAE collector
155       default: '8080'
156     FEU_data_2_ip:
157       type: string
158       description: FEU IP address that is assigned to the vHSS to communicate with the FEU
159       default: 10.4.0.1
160     vHSS_flavor_name:
161       type: string
162       description: Type of instance (flavor) to be used
163       default: 4 GB General Purpose v1
164     signal_2_net_id:
165       type: string
166       description: The ID of the PCRF external signal 2 network
167       default: test1_signal_2
168     FEU_fabric_ip:
169       type: string
170       description: FEU IP address that is assigned to the vHSS to communicate with the FEU
171       default: 192.168.20.201
172     RSU_data_1_ip:
173       type: string
174       description: RSU IP address that is assigned to the vHSS to communicate with the RSU
175       default: 10.3.0.1
176     signal_2_net_cidr:
177       type: string
178       description: The CIDR of the PCRF external signal 2 network
179       default: 10.2.0.0/16
180     data_1_net_cidr:
181       type: string
182       description: The CIDR of the PCRF external data 1 network
183       default: 10.3.0.0/16
184     pub_key:
185       type: string
186       description: Public key to be installed on the compute instance
187       default: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDQXYJYYi3/OUZXUiCYWdtc7K0m5C0dJKVxPG0eI8EWZrEHYdfYe6WoTSDJCww+1qlBSpA5ac/Ba4Wn9vh+lR1vtUKkyIC/nrYb90ReUd385Glkgzrfh5HdR5y5S2cL/Frh86lAn9r6b3iWTJD8wBwXFyoe1S2nMTOIuG4RPNvfmyCTYVh8XTCCE8HPvh3xv2r4egawG1P4Q4UDwk+hDBXThY2KS8M5/8EMyxHV0ImpLbpYCTBA6KYDIRtqmgS6iKyy8v2D1aSY5mc9J0T5t9S2Gv+VZQNWQDDKNFnxqYaAo1uEoq/i1q63XC5AD3ckXb2VT6dp23BQMdDfbHyUWfJN
188     repo_url_artifacts:
189       type: string
190       description: URL of the repository that hosts the demo packages
191       default: https://nexus.openecomp.org/content/repositories/snapshots
192     base_net_id:
193       type: string
194       description: The ID of the base network
195       default: test1_base_net
196     fabric_net_cidr:
197       type: string
198       description: The CIDR of the fabric network
199       default: 192.168.20.0/24
200     FEU_signal_2_ip:
201       type: string
202       description: FEU IP address that is assigned to the vHSS to communicate with the FEU
203       default: 10.2.0.1
204     PID_fabric_ip:
205       type: string
206       description: PID IP address that is assigned to the vHSS to communicate with the PID
207       default: 192.168.20.205
208     PID_om_ip:
209       type: string
210       description: PID IP address that is assigned to the vHSS to communicate with the PID
211       default: 10.4.0.1
212     FEU_data_1_ip:
213       type: string
214       description: FEU IP address that is assigned to the vHSS to communicate with the FEU
215       default: 10.3.0.1
216   node_templates:
217     OMU_fabric_port:
218       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
219       properties:
220         fixed_ips:
221         - subnet: fabric_network
222           ip_address:
223             get_input: OMU_fabric_ip
224         network: fabric_network
225       requirements:
226       - binding:
227           capability: tosca.capabilities.network.Bindable
228           node: OMU_0
229           relationship: tosca.relationships.network.BindsTo
230       - link:
231           capability: tosca.capabilities.network.Linkable
232           node: fabric_network
233           relationship: tosca.relationships.network.LinksTo
234     PID_fabric_port:
235       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
236       properties:
237         fixed_ips:
238         - subnet: fabric_network
239           ip_address:
240             get_input: PID_fabric_ip
241         network: fabric_network
242       requirements:
243       - binding:
244           capability: tosca.capabilities.network.Bindable
245           node: PID_0
246           relationship: tosca.relationships.network.BindsTo
247       - link:
248           capability: tosca.capabilities.network.Linkable
249           node: fabric_network
250           relationship: tosca.relationships.network.LinksTo
251     RSU_fabric_port:
252       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
253       properties:
254         fixed_ips:
255         - subnet: fabric_network
256           ip_address:
257             get_input: RSU_fabric_ip
258         network: fabric_network
259       requirements:
260       - binding:
261           capability: tosca.capabilities.network.Bindable
262           node: RSU_0
263           relationship: tosca.relationships.network.BindsTo
264       - link:
265           capability: tosca.capabilities.network.Linkable
266           node: fabric_network
267           relationship: tosca.relationships.network.LinksTo
268     PID_om_port:
269       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
270       properties:
271         fixed_ips:
272         - subnet: om_network
273           ip_address:
274             get_input: PID_om_ip
275         network: om_network
276       requirements:
277       - binding:
278           capability: tosca.capabilities.network.Bindable
279           node: PID_0
280           relationship: tosca.relationships.network.BindsTo
281       - link:
282           capability: tosca.capabilities.network.Linkable
283           node: om_network
284           relationship: tosca.relationships.network.LinksTo
285     FEU_signal_2_port:
286       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
287       properties:
288         fixed_ips:
289         - subnet: signal_2_network
290           ip_address:
291             get_input: FEU_signal_2_ip
292         network: signal_2_network
293       requirements:
294       - binding:
295           capability: tosca.capabilities.network.Bindable
296           node: FEU_0
297           relationship: tosca.relationships.network.BindsTo
298       - link:
299           capability: tosca.capabilities.network.Linkable
300           node: signal_2_network
301           relationship: tosca.relationships.network.LinksTo
302     boss_network:
303       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
304       properties:
305         network_name:
306           get_input: boss_net_id
307     RSU_0:
308       type: org.openecomp.resource.vfc.VhssVepcV2.abstact.nodes.heat.RSU
309       properties:
310         flavor:
311           get_input: vHSS_flavor_name
312         key_name: UNSUPPORTED_RESOURCE_my_keypair
313         image:
314           get_input: vHSS_image_name
315         metadata:
316           vf_module_id:
317             get_input: vf_module_id
318           vnf_id:
319             get_input: vnf_id
320         user_data_format: RAW
321         name:
322           get_input: RSU_name_0
323     PID_base_port:
324       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
325       properties:
326         fixed_ips:
327         - subnet: base_network
328           ip_address:
329             get_input: PID_base_ip
330         network: base_network
331       requirements:
332       - binding:
333           capability: tosca.capabilities.network.Bindable
334           node: PID_0
335           relationship: tosca.relationships.network.BindsTo
336       - link:
337           capability: tosca.capabilities.network.Linkable
338           node: base_network
339           relationship: tosca.relationships.network.LinksTo
340     OMU_om_port:
341       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
342       properties:
343         fixed_ips:
344         - subnet: om_network
345           ip_address:
346             get_input: OMU_om_ip
347         network: om_network
348       requirements:
349       - binding:
350           capability: tosca.capabilities.network.Bindable
351           node: OMU_0
352           relationship: tosca.relationships.network.BindsTo
353       - link:
354           capability: tosca.capabilities.network.Linkable
355           node: om_network
356           relationship: tosca.relationships.network.LinksTo
357     PID_0:
358       type: org.openecomp.resource.vfc.VhssVepcV2.abstact.nodes.heat.PID
359       properties:
360         flavor:
361           get_input: vHSS_flavor_name
362         key_name: UNSUPPORTED_RESOURCE_my_keypair
363         image:
364           get_input: vHSS_image_name
365         metadata:
366           vf_module_id:
367             get_input: vf_module_id
368           vnf_id:
369             get_input: vnf_id
370         user_data_format: RAW
371         name:
372           get_input: PID_name_0
373     OMU_0:
374       type: org.openecomp.resource.vfc.VhssVepcV2.abstact.nodes.heat.OMU
375       properties:
376         flavor:
377           get_input: vHSS_flavor_name
378         key_name: UNSUPPORTED_RESOURCE_my_keypair
379         image:
380           get_input: vHSS_image_name
381         metadata:
382           vf_module_id:
383             get_input: vf_module_id
384           vnf_id:
385             get_input: vnf_id
386         user_data_format: RAW
387         name:
388           get_input: OMU_name_0
389     RSU_data_2_port:
390       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
391       properties:
392         fixed_ips:
393         - subnet: data_2_network
394           ip_address:
395             get_input: RSU_data_2_ip
396         network: data_2_network
397       requirements:
398       - link:
399           capability: tosca.capabilities.network.Linkable
400           node: data_2_network
401           relationship: tosca.relationships.network.LinksTo
402       - binding:
403           capability: tosca.capabilities.network.Bindable
404           node: RSU_0
405           relationship: tosca.relationships.network.BindsTo
406     FEU_data_1_port:
407       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
408       properties:
409         fixed_ips:
410         - subnet: data_1_network
411           ip_address:
412             get_input: FEU_data_1_ip
413         network: data_1_network
414       requirements:
415       - binding:
416           capability: tosca.capabilities.network.Bindable
417           node: FEU_0
418           relationship: tosca.relationships.network.BindsTo
419       - link:
420           capability: tosca.capabilities.network.Linkable
421           node: data_1_network
422           relationship: tosca.relationships.network.LinksTo
423     base_network:
424       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
425       properties:
426         network_name:
427           get_input: base_net_id
428         subnets:
429           base_subnet:
430             cidr:
431               get_input: base_net_cidr
432     FEU_0:
433       type: org.openecomp.resource.vfc.VhssVepcV2.abstact.nodes.heat.FEU
434       properties:
435         flavor:
436           get_input: vHSS_flavor_name
437         key_name: UNSUPPORTED_RESOURCE_my_keypair
438         image:
439           get_input: vHSS_image_name
440         metadata:
441           vf_module_id:
442             get_input: vf_module_id
443           vnf_id:
444             get_input: vnf_id
445         user_data_format: RAW
446         name:
447           get_input: FEU_name_0
448     FEU_signal_1_port:
449       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
450       properties:
451         fixed_ips:
452         - subnet: signal_1_network
453           ip_address:
454             get_input: FEU_signal_1_ip
455         network: signal_1_network
456       requirements:
457       - binding:
458           capability: tosca.capabilities.network.Bindable
459           node: FEU_0
460           relationship: tosca.relationships.network.BindsTo
461       - link:
462           capability: tosca.capabilities.network.Linkable
463           node: signal_1_network
464           relationship: tosca.relationships.network.LinksTo
465     RSU_base_port:
466       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
467       properties:
468         fixed_ips:
469         - subnet: base_network
470           ip_address:
471             get_input: RSU_base_ip
472         network: base_network
473       requirements:
474       - binding:
475           capability: tosca.capabilities.network.Bindable
476           node: RSU_0
477           relationship: tosca.relationships.network.BindsTo
478       - link:
479           capability: tosca.capabilities.network.Linkable
480           node: base_network
481           relationship: tosca.relationships.network.LinksTo
482     OMU_base_port:
483       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
484       properties:
485         fixed_ips:
486         - subnet: base_network
487           ip_address:
488             get_input: OMU_base_ip
489         network: base_network
490       requirements:
491       - binding:
492           capability: tosca.capabilities.network.Bindable
493           node: OMU_0
494           relationship: tosca.relationships.network.BindsTo
495       - link:
496           capability: tosca.capabilities.network.Linkable
497           node: base_network
498           relationship: tosca.relationships.network.LinksTo
499     om_network:
500       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
501       properties:
502         network_name:
503           get_input: om_net_id
504         subnets:
505           om_subnet:
506             cidr:
507               get_input: om_net_cidr
508     RSU_data_1_port:
509       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
510       properties:
511         fixed_ips:
512         - subnet: data_1_network
513           ip_address:
514             get_input: RSU_data_1_ip
515         network: data_1_network
516       requirements:
517       - link:
518           capability: tosca.capabilities.network.Linkable
519           node: data_1_network
520           relationship: tosca.relationships.network.LinksTo
521       - binding:
522           capability: tosca.capabilities.network.Bindable
523           node: RSU_0
524           relationship: tosca.relationships.network.BindsTo
525     signal_2_network:
526       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
527       properties:
528         network_name:
529           get_input: signal_2_net_id
530     signal_1_network:
531       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
532       properties:
533         network_name:
534           get_input: signal_1_net_id
535     fabric_network:
536       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
537       properties:
538         network_name:
539           get_input: fabric_net_id
540         subnets:
541           fabric_subnet:
542             cidr:
543               get_input: fabric_net_cidr
544     data_1_network:
545       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
546       properties:
547         network_name:
548           get_input: data_1_net_id
549     data_2_network:
550       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
551       properties:
552         network_name:
553           get_input: data_2_net_id
554     PID_boss_port:
555       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
556       properties:
557         fixed_ips:
558         - subnet: boss_network
559           ip_address:
560             get_input: PID_boss_ip
561         network: boss_network
562       requirements:
563       - binding:
564           capability: tosca.capabilities.network.Bindable
565           node: PID_0
566           relationship: tosca.relationships.network.BindsTo
567       - link:
568           capability: tosca.capabilities.network.Linkable
569           node: boss_network
570           relationship: tosca.relationships.network.LinksTo
571     FEU_base_port:
572       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
573       properties:
574         fixed_ips:
575         - subnet: base_network
576           ip_address:
577             get_input: FEU_base_ip
578         network: base_network
579       requirements:
580       - binding:
581           capability: tosca.capabilities.network.Bindable
582           node: FEU_0
583           relationship: tosca.relationships.network.BindsTo
584       - link:
585           capability: tosca.capabilities.network.Linkable
586           node: base_network
587           relationship: tosca.relationships.network.LinksTo
588     FEU_data_2_port:
589       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
590       properties:
591         fixed_ips:
592         - subnet: data_2_network
593           ip_address:
594             get_input: FEU_data_2_ip
595         network: data_2_network
596       requirements:
597       - binding:
598           capability: tosca.capabilities.network.Bindable
599           node: FEU_0
600           relationship: tosca.relationships.network.BindsTo
601       - link:
602           capability: tosca.capabilities.network.Linkable
603           node: data_2_network
604           relationship: tosca.relationships.network.LinksTo
605     FEU_fabric_port:
606       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
607       properties:
608         fixed_ips:
609         - subnet: fabric_network
610           ip_address:
611             get_input: FEU_fabric_ip
612         network: fabric_network
613       requirements:
614       - binding:
615           capability: tosca.capabilities.network.Bindable
616           node: FEU_0
617           relationship: tosca.relationships.network.BindsTo
618       - link:
619           capability: tosca.capabilities.network.Linkable
620           node: fabric_network
621           relationship: tosca.relationships.network.LinksTo
622   substitution_mappings:
623     node_type: org.openecomp.resource.vf.VhssVepcV2
624     capabilities: {
625       }
626     requirements: {
627       }