fix tosca template bugs
[modeling/etsicatalog.git] / catalog / pub / utils / toscaparser / testdata / ns / service-vims / Definitions / resource-CscfNokia-template.yml
1 tosca_definitions_version: tosca_simple_yaml_1_1
2 metadata:
3   invariantUUID: 2ed01e73-2a23-4717-a7fe-8d067ff6bb87
4   UUID: 8612efa5-9df9-43ef-8e76-5a3cca97a15e
5   name: CSCF Nokia
6   description: CSCF Nokia
7   type: VF
8   category: Generic
9   subcategory: Network Elements
10   resourceVendor: onap
11   resourceVendorRelease: '1.0'
12   resourceVendorModelNumber: ''
13 imports:
14 - nodes:
15     file: nodes.yml
16 - datatypes:
17     file: data.yml
18 - capabilities:
19     file: capabilities.yml
20 - relationships:
21     file: relationships.yml
22 - groups:
23     file: groups.yml
24 - policies:
25     file: policies.yml
26 - resource-CSCF Nokia-interface:
27     file: resource-CscfNokia-template-interface.yml
28 - resource-VDU Compute:
29     file: resource-VduCompute-template.yml
30 - resource-VDU Cpd:
31     file: resource-VduCpd-template.yml
32 - resource-VnfVirtualLinkDesc:
33     file: resource-Vnfvirtuallinkdesc-template.yml
34 - resource-VDU VirtualStorage:
35     file: resource-VduVirtualstorage-template.yml
36 topology_template:
37   inputs:
38     nf_naming:
39       type: org.openecomp.datatypes.Naming
40       default:
41         ecomp_generated_naming: true
42     multi_stage_design:
43       type: boolean
44       default: false
45     nf_function:
46       type: string
47     nf_naming_code:
48       type: string
49     availability_zone_max_count:
50       type: integer
51       default: 1
52     nf_role:
53       type: string
54     min_instances:
55       type: integer
56     max_instances:
57       type: integer
58     nf_type:
59       type: string
60   node_templates:
61     internal:
62       type: tosca.nodes.nfv.VnfVirtualLinkDesc
63       metadata:
64         invariantUUID: ffa0bcc5-7903-4332-adb9-3c44f577621e
65         UUID: ecb39b27-06c8-4337-9304-d6a88c8c0fae
66         customizationUUID: 582c18d7-d466-4b8c-9cab-536e45f3a14a
67         version: '2.0'
68         name: VnfVirtualLinkDesc
69         description: VnfVirtualLinkDesc
70         type: VL
71         category: Generic
72         subcategory: Infrastructure
73         resourceVendor: ATT (Tosca)
74         resourceVendorRelease: 1.0.0.wd03
75         resourceVendorModelNumber: ''
76       properties:
77         vl_flavours:
78           flavours:
79             flavourId: test
80         connectivity_type:
81           layer_protocol: ipv4
82     lbCpd_SIP:
83       type: tosca.nodes.nfv.VduCpd
84       metadata:
85         invariantUUID: a79633fa-0a7f-4858-9064-93d7f1bb8f88
86         UUID: 04dcc383-181f-41c3-9ca0-49fa56278d2a
87         customizationUUID: 1ec6019b-ea02-4065-8db3-dc631e468f61
88         version: '2.0'
89         name: VDU Cpd
90         description: VDU Cpd
91         type: CP
92         category: Generic
93         subcategory: Network Elements
94         resourceVendor: ATT (Tosca)
95         resourceVendorRelease: 1.0.0.wd03
96         resourceVendorModelNumber: ''
97       properties:
98         role: leaf
99         layer_protocol: ipv4
100       requirements:
101       - virtual_binding:
102           capability: virtual_binding
103           node: lb
104     lbCpd_Diameter:
105       type: tosca.nodes.nfv.VduCpd
106       metadata:
107         invariantUUID: a79633fa-0a7f-4858-9064-93d7f1bb8f88
108         UUID: 04dcc383-181f-41c3-9ca0-49fa56278d2a
109         customizationUUID: 1c9bfa55-d4fe-43ff-b8ad-984e26795fc9
110         version: '2.0'
111         name: VDU Cpd
112         description: VDU Cpd
113         type: CP
114         category: Generic
115         subcategory: Network Elements
116         resourceVendor: ATT (Tosca)
117         resourceVendorRelease: 1.0.0.wd03
118         resourceVendorModelNumber: ''
119       properties:
120         role: leaf
121         layer_protocol: ipv4
122       requirements:
123       - virtual_binding:
124           capability: virtual_binding
125           node: lb
126     oam_Storage:
127       type: tosca.nodes.nfv.VDU.VirtualStorage
128       metadata:
129         invariantUUID: fabee67b-5538-453d-9dc0-41c5655c9105
130         UUID: e852ea2a-3a48-4521-8ef7-f12682c75e86
131         customizationUUID: 845ba157-b397-4ed1-8c1c-02bfa29b2515
132         version: '2.0'
133         name: VDU VirtualStorage
134         description: VDU VirtualStorage
135         type: VFC
136         category: Generic
137         subcategory: Infrastructure
138         resourceVendor: ATT (Tosca)
139         resourceVendorRelease: 1.0.0.wd03
140         resourceVendorModelNumber: ''
141       properties:
142         size_of_storage: 300G
143         id: oam_Storage
144         type_of_storage: volume
145     oamCpd_OM:
146       type: tosca.nodes.nfv.VduCpd
147       metadata:
148         invariantUUID: a79633fa-0a7f-4858-9064-93d7f1bb8f88
149         UUID: 04dcc383-181f-41c3-9ca0-49fa56278d2a
150         customizationUUID: 2a71f014-924a-4966-8bba-db5d68f5088a
151         version: '2.0'
152         name: VDU Cpd
153         description: VDU Cpd
154         type: CP
155         category: Generic
156         subcategory: Network Elements
157         resourceVendor: ATT (Tosca)
158         resourceVendorRelease: 1.0.0.wd03
159         resourceVendorModelNumber: ''
160       properties:
161         role: leaf
162         layer_protocol: ipv4
163       requirements:
164       - virtual_binding:
165           capability: virtual_binding
166           node: oam
167     lbCpd_OM:
168       type: tosca.nodes.nfv.VduCpd
169       metadata:
170         invariantUUID: a79633fa-0a7f-4858-9064-93d7f1bb8f88
171         UUID: 04dcc383-181f-41c3-9ca0-49fa56278d2a
172         customizationUUID: 9bf40aab-eff2-4c22-b516-b1f106b6a797
173         version: '2.0'
174         name: VDU Cpd
175         description: VDU Cpd
176         type: CP
177         category: Generic
178         subcategory: Network Elements
179         resourceVendor: ATT (Tosca)
180         resourceVendorRelease: 1.0.0.wd03
181         resourceVendorModelNumber: ''
182       properties:
183         role: leaf
184         layer_protocol: ipv4
185       requirements:
186       - virtual_binding:
187           capability: virtual_binding
188           node: lb
189     lb_Storage:
190       type: tosca.nodes.nfv.VDU.VirtualStorage
191       metadata:
192         invariantUUID: fabee67b-5538-453d-9dc0-41c5655c9105
193         UUID: e852ea2a-3a48-4521-8ef7-f12682c75e86
194         customizationUUID: 3d22021f-f602-45f1-8bcd-d339ba5fd536
195         version: '2.0'
196         name: VDU VirtualStorage
197         description: VDU VirtualStorage
198         type: VFC
199         category: Generic
200         subcategory: Infrastructure
201         resourceVendor: ATT (Tosca)
202         resourceVendorRelease: 1.0.0.wd03
203         resourceVendorModelNumber: ''
204       properties:
205         size_of_storage: 300G
206         id: lb_Storage
207         type_of_storage: volume
208     lb:
209       type: tosca.nodes.nfv.VDU.Compute
210       metadata:
211         invariantUUID: 63007034-0330-4132-b51e-87c6a64065f3
212         UUID: 9c6a1271-b443-48e3-8049-f5433db3d5f2
213         customizationUUID: d87fb984-012e-4789-8098-b20115fae393
214         version: '2.0'
215         name: VDU Compute
216         description: VDU Compute
217         type: VFC
218         category: Generic
219         subcategory: Infrastructure
220         resourceVendor: ATT (Tosca)
221         resourceVendorRelease: 1.0.0.wd03
222         resourceVendorModelNumber: ''
223       requirements:
224       - virtual_storage:
225           capability: virtual_storage
226           node: lb_Storage
227       capabilities:
228         scalable:
229           properties:
230             max_instances: 1
231             min_instances: 1
232         virtual_compute:
233           properties:
234             virtual_memory:
235               virtual_mem_size: 32G
236             virtual_cpu:
237               num_virtual_cpu: 12
238         endpoint:
239           properties:
240             secure: true
241     cscf_internal:
242       type: tosca.nodes.nfv.VduCpd
243       metadata:
244         invariantUUID: a79633fa-0a7f-4858-9064-93d7f1bb8f88
245         UUID: 04dcc383-181f-41c3-9ca0-49fa56278d2a
246         customizationUUID: d9e1d2f1-4a0c-4a19-9472-1aa819acd79f
247         version: '2.0'
248         name: VDU Cpd
249         description: VDU Cpd
250         type: CP
251         category: Generic
252         subcategory: Network Elements
253         resourceVendor: ATT (Tosca)
254         resourceVendorRelease: 1.0.0.wd03
255         resourceVendorModelNumber: ''
256       properties:
257         role: leaf
258         layer_protocol: ipv4
259       requirements:
260       - virtual_link:
261           capability: virtual_linkable
262           node: internal
263       - virtual_binding:
264           capability: virtual_binding
265           node: cscf
266     oam_internal:
267       type: tosca.nodes.nfv.VduCpd
268       metadata:
269         invariantUUID: a79633fa-0a7f-4858-9064-93d7f1bb8f88
270         UUID: 04dcc383-181f-41c3-9ca0-49fa56278d2a
271         customizationUUID: 7e9afa7a-ed8a-4445-9e01-c7eea12e761a
272         version: '2.0'
273         name: VDU Cpd
274         description: VDU Cpd
275         type: CP
276         category: Generic
277         subcategory: Network Elements
278         resourceVendor: ATT (Tosca)
279         resourceVendorRelease: 1.0.0.wd03
280         resourceVendorModelNumber: ''
281       properties:
282         role: leaf
283         layer_protocol: ipv4
284       requirements:
285       - virtual_link:
286           capability: virtual_linkable
287           node: internal
288       - virtual_binding:
289           capability: virtual_binding
290           node: oam
291     oam:
292       type: tosca.nodes.nfv.VDU.Compute
293       metadata:
294         invariantUUID: 63007034-0330-4132-b51e-87c6a64065f3
295         UUID: 9c6a1271-b443-48e3-8049-f5433db3d5f2
296         customizationUUID: 77154a9e-8fc7-4158-b79e-eecb034384bd
297         version: '2.0'
298         name: VDU Compute
299         description: VDU Compute
300         type: VFC
301         category: Generic
302         subcategory: Infrastructure
303         resourceVendor: ATT (Tosca)
304         resourceVendorRelease: 1.0.0.wd03
305         resourceVendorModelNumber: ''
306       requirements:
307       - virtual_storage:
308           capability: virtual_storage
309           node: oam_Storage
310       capabilities:
311         scalable:
312           properties:
313             max_instances: 1
314             min_instances: 1
315         virtual_compute:
316           properties:
317             virtual_memory:
318               virtual_mem_size: 32G
319             virtual_cpu:
320               num_virtual_cpu: 4
321         endpoint:
322           properties:
323             secure: true
324     lb_internal:
325       type: tosca.nodes.nfv.VduCpd
326       metadata:
327         invariantUUID: a79633fa-0a7f-4858-9064-93d7f1bb8f88
328         UUID: 04dcc383-181f-41c3-9ca0-49fa56278d2a
329         customizationUUID: b009969e-472e-4956-90e0-15237838baca
330         version: '2.0'
331         name: VDU Cpd
332         description: VDU Cpd
333         type: CP
334         category: Generic
335         subcategory: Network Elements
336         resourceVendor: ATT (Tosca)
337         resourceVendorRelease: 1.0.0.wd03
338         resourceVendorModelNumber: ''
339       properties:
340         role: leaf
341         layer_protocol: ipv4
342       requirements:
343       - virtual_link:
344           capability: virtual_linkable
345           node: internal
346       - virtual_binding:
347           capability: virtual_binding
348           node: lb
349     cscf:
350       type: tosca.nodes.nfv.VDU.Compute
351       metadata:
352         invariantUUID: 63007034-0330-4132-b51e-87c6a64065f3
353         UUID: 9c6a1271-b443-48e3-8049-f5433db3d5f2
354         customizationUUID: 133b949c-b711-4c5f-a7ce-8ed33ff401ea
355         version: '2.0'
356         name: VDU Compute
357         description: VDU Compute
358         type: VFC
359         category: Generic
360         subcategory: Infrastructure
361         resourceVendor: ATT (Tosca)
362         resourceVendorRelease: 1.0.0.wd03
363         resourceVendorModelNumber: ''
364       capabilities:
365         scalable:
366           properties:
367             max_instances: 1
368             min_instances: 1
369         virtual_compute:
370           properties:
371             virtual_memory:
372               virtual_mem_size: 24G
373             virtual_cpu:
374               num_virtual_cpu: 8
375         endpoint:
376           properties:
377             secure: true
378   substitution_mappings:
379     node_type: org.openecomp.resource.vf.CscfNokia
380     capabilities:
381       lb_storage.feature:
382       - lb_storage
383       - feature
384       oam.host:
385       - oam
386       - host
387       lb.os:
388       - lb
389       - os
390       cscf.virtual_binding:
391       - cscf
392       - virtual_binding
393       oam.virtual_binding:
394       - oam
395       - virtual_binding
396       cscf.host:
397       - cscf
398       - host
399       oam.endpoint:
400       - oam
401       - endpoint
402       internal.virtual_linkable:
403       - internal
404       - virtual_linkable
405       cscf.endpoint:
406       - cscf
407       - endpoint
408       oam.binding:
409       - oam
410       - binding
411       lb_internal.feature:
412       - lb_internal
413       - feature
414       lb.virtual_binding:
415       - lb
416       - virtual_binding
417       oam.feature:
418       - oam
419       - feature
420       lbcpd_diameter.feature:
421       - lbcpd_diameter
422       - feature
423       oam.scalable:
424       - oam
425       - scalable
426       cscf.scalable:
427       - cscf
428       - scalable
429       cscf.monitoring_parameter:
430       - cscf
431       - monitoring_parameter
432       lb_storage.virtual_storage:
433       - lb_storage
434       - virtual_storage
435       lb.virtual_compute:
436       - lb
437       - virtual_compute
438       oam.virtual_compute:
439       - oam
440       - virtual_compute
441       oam.os:
442       - oam
443       - os
444       lbcpd_sip.feature:
445       - lbcpd_sip
446       - feature
447       lb.endpoint:
448       - lb
449       - endpoint
450       cscf.feature:
451       - cscf
452       - feature
453       cscf_internal.feature:
454       - cscf_internal
455       - feature
456       oamcpd_om.feature:
457       - oamcpd_om
458       - feature
459       oam_internal.feature:
460       - oam_internal
461       - feature
462       lbcpd_om.feature:
463       - lbcpd_om
464       - feature
465       lb.host:
466       - lb
467       - host
468       cscf.binding:
469       - cscf
470       - binding
471       lb.scalable:
472       - lb
473       - scalable
474       cscf.os:
475       - cscf
476       - os
477       lb.feature:
478       - lb
479       - feature
480       cscf.virtual_compute:
481       - cscf
482       - virtual_compute
483       lb.monitoring_parameter:
484       - lb
485       - monitoring_parameter
486       oam_storage.feature:
487       - oam_storage
488       - feature
489       oam.monitoring_parameter:
490       - oam
491       - monitoring_parameter
492       internal.feature:
493       - internal
494       - feature
495       lb.binding:
496       - lb
497       - binding
498       oam_storage.virtual_storage:
499       - oam_storage
500       - virtual_storage
501     requirements:
502       lbcpd_diameter.virtual_link:
503       - lbcpd_diameter
504       - virtual_link
505       lbcpd_om.dependency:
506       - lbcpd_om
507       - dependency
508       oam.dependency:
509       - oam
510       - dependency
511       lbcpd_diameter.virtual_binding:
512       - lbcpd_diameter
513       - virtual_binding
514       cscf_internal.virtual_link:
515       - cscf_internal
516       - virtual_link
517       oamcpd_om.virtual_binding:
518       - oamcpd_om
519       - virtual_binding
520       lb.dependency:
521       - lb
522       - dependency
523       lb_storage.dependency:
524       - lb_storage
525       - dependency
526       cscf_internal.virtual_binding:
527       - cscf_internal
528       - virtual_binding
529       lb_internal.virtual_link:
530       - lb_internal
531       - virtual_link
532       lbcpd_om.virtual_binding:
533       - lbcpd_om
534       - virtual_binding
535       cscf.local_storage:
536       - cscf
537       - local_storage
538       lbcpd_diameter.dependency:
539       - lbcpd_diameter
540       - dependency
541       lbcpd_sip.virtual_link:
542       - lbcpd_sip
543       - virtual_link
544       cscf_internal.dependency:
545       - cscf_internal
546       - dependency
547       lb_internal.virtual_binding:
548       - lb_internal
549       - virtual_binding
550       oam_storage.dependency:
551       - oam_storage
552       - dependency
553       oam_internal.dependency:
554       - oam_internal
555       - dependency
556       internal.dependency:
557       - internal
558       - dependency
559       oam_internal.virtual_binding:
560       - oam_internal
561       - virtual_binding
562       lb_internal.dependency:
563       - lb_internal
564       - dependency
565       oamcpd_om.dependency:
566       - oamcpd_om
567       - dependency
568       oam.virtual_storage:
569       - oam
570       - virtual_storage
571       cscf.dependency:
572       - cscf
573       - dependency
574       lbcpd_om.virtual_link:
575       - lbcpd_om
576       - virtual_link
577       cscf.virtual_storage:
578       - cscf
579       - virtual_storage
580       oamcpd_om.virtual_link:
581       - oamcpd_om
582       - virtual_link
583       oam.local_storage:
584       - oam
585       - local_storage
586       lbcpd_sip.virtual_binding:
587       - lbcpd_sip
588       - virtual_binding
589       lbcpd_sip.dependency:
590       - lbcpd_sip
591       - dependency
592       lb.virtual_storage:
593       - lb
594       - virtual_storage
595       lb.local_storage:
596       - lb
597       - local_storage
598       oam_internal.virtual_link:
599       - oam_internal
600       - virtual_link