fix tosca template bugs
[modeling/etsicatalog.git] / catalog / pub / utils / toscaparser / testdata / ns / service-vims / Definitions / resource-VduCompute-template.yml
1 tosca_definitions_version: tosca_simple_yaml_1_1
2 metadata:
3   invariantUUID: 63007034-0330-4132-b51e-87c6a64065f3
4   UUID: 9c6a1271-b443-48e3-8049-f5433db3d5f2
5   name: VDU Compute
6   description: VDU Compute
7   type: VFC
8   category: Generic
9   subcategory: Infrastructure
10   resourceVendor: ATT (Tosca)
11   resourceVendorRelease: 1.0.0.wd03
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 node_types:
27   tosca.nodes.nfv.VDU.Compute:
28     derived_from: tosca.nodes.Root
29     description: VDU Compute
30     properties:
31       configurable_properties:
32         type: map
33         entry_schema:
34           type: tosca.datatypes.nfv.VnfcConfigurableProperties
35       name:
36         type: string
37       nfvi_constraints:
38         type: list
39         entry_schema:
40           type: string
41       descrption:
42         type: string
43       boot_order:
44         type: list
45         entry_schema:
46           type: string
47     capabilities:
48       scalable:
49         type: tosca.capabilities.Scalable
50         occurrences:
51         - 1
52         - UNBOUNDED
53         valid_source_types: [
54           ]
55         properties:
56           max_instances:
57             type: integer
58             default: 1
59             required: false
60           min_instances:
61             type: integer
62             default: 1
63             required: false
64           default_instances:
65             type: integer
66             required: false
67       virtual_compute:
68         type: tosca.capabilities.nfv.VirtualCompute
69         occurrences:
70         - 1
71         - UNBOUNDED
72         valid_source_types: [
73           ]
74         properties:
75           virtual_memory:
76             type: tosca.datatypes.nfv.VirtualMemory
77             required: true
78           requested_additional_capabilities:
79             type: map
80             required: false
81             entry_schema:
82               type: tosca.datatypes.nfv.RequestedAdditionalCapability
83           virtual_cpu:
84             type: tosca.datatypes.nfv.VirtualCpu
85             required: true
86       endpoint:
87         type: tosca.capabilities.Endpoint.Admin
88         occurrences:
89         - 1
90         - UNBOUNDED
91         valid_source_types: [
92           ]
93         properties:
94           secure:
95             type: boolean
96             default: true
97             required: false
98       os:
99         type: tosca.capabilities.OperatingSystem
100         occurrences:
101         - 1
102         - UNBOUNDED
103         valid_source_types: [
104           ]
105         properties:
106           distribution:
107             type: string
108             required: false
109           type:
110             type: string
111             required: false
112           version:
113             type: version
114             required: false
115           architecture:
116             type: string
117             required: false
118       virtual_binding:
119         type: tosca.capabilities.nfv.VirtualBindable
120         occurrences:
121         - 1
122         - UNBOUNDED
123         valid_source_types: [
124           ]
125       host:
126         type: tosca.capabilities.Container
127         occurrences:
128         - 1
129         - UNBOUNDED
130         valid_source_types: [
131           ]
132         properties:
133           num_cpus:
134             type: integer
135             required: false
136           disk_size:
137             type: scalar-unit.size
138             required: false
139           cpu_frequency:
140             type: scalar-unit.frequency
141             required: false
142           mem_size:
143             type: scalar-unit.size
144             required: false
145       binding:
146         type: tosca.capabilities.network.Bindable
147         occurrences:
148         - 1
149         - UNBOUNDED
150         valid_source_types: [
151           ]
152       monitoring_parameter:
153         type: tosca.capabilities.nfv.Metric
154         occurrences:
155         - 1
156         - UNBOUNDED
157         valid_source_types: [
158           ]
159     requirements:
160     - virtual_storage:
161         occurrences:
162         - 0
163         - UNBOUNDED
164         capability: tosca.capabilities.nfv.VirtualStorage
165     - local_storage:
166         occurrences:
167         - 0
168         - UNBOUNDED
169         capability: tosca.capabilities.Attachment