fix tosca template bugs
[modeling/etsicatalog.git] / catalog / pub / utils / toscaparser / testdata / ns / service-vims / Definitions / capabilities.yml
1 #
2 # Licensed under the Apache License, Version 2.0 (the "License");
3 # you may not use this file except in compliance with the License.
4 # You may obtain a copy of the License at
5 #
6 #      http://www.apache.org/licenses/LICENSE-2.0
7 #
8 # Unless required by applicable law or agreed to in writing, software
9 # distributed under the License is distributed on an "AS IS" BASIS,
10 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 # See the License for the specific language governing permissions and
12 # limitations under the License.
13 #
14 tosca_definitions_version: tosca_simple_yaml_1_1
15 imports:
16 - data.yml
17 capability_types:
18   tosca.capabilities.Root:
19     description: The TOSCA root Capability Type all other TOSCA base Capability Types derive from
20   tosca.capabilities.Attachment:
21     derived_from: tosca.capabilities.Root
22   tosca.capabilities.Node:
23     derived_from: tosca.capabilities.Root
24   tosca.capabilities.Container:
25     derived_from: tosca.capabilities.Root
26     properties:
27       num_cpus:
28         type: integer
29         required: false
30         constraints:
31         - greater_or_equal: 1
32       cpu_frequency:
33         type: scalar-unit.frequency
34         required: false
35         constraints:
36         - greater_or_equal: 0.1 GHz
37       disk_size:
38         type: scalar-unit.size
39         required: false
40         constraints:
41         - greater_or_equal: 0 MB
42       mem_size:
43         type: scalar-unit.size
44         required: false
45         constraints:
46         - greater_or_equal: 0 MB
47   org.openecomp.capabilities.PortMirroring:
48     derived_from: tosca.capabilities.Root
49     properties:
50       connection_point:
51         type: org.openecomp.datatypes.PortMirroringConnectionPointDescription
52   tosca.capabilities.Endpoint:
53     derived_from: tosca.capabilities.Root
54     properties:
55       protocol:
56         type: string
57         default: tcp
58       port:
59         type: PortDef
60         required: false
61       secure:
62         type: boolean
63         default: false
64       url_path:
65         type: string
66         required: false
67       port_name:
68         type: string
69         required: false
70       network_name:
71         type: string
72         required: false
73         default: PRIVATE
74       initiator:
75         type: string
76         default: source
77         constraints:
78         - valid_values:
79           - source
80           - target
81           - peer
82       ports:
83         type: map
84         required: false
85         constraints:
86         - min_length: 1
87         entry_schema:
88           type: PortSpec
89     attributes:
90       ip_address:
91         type: string
92   tosca.capabilities.DatabaseEndpoint:
93     derived_from: tosca.capabilities.Endpoint
94   tosca.capabilities.Endpoint.Public:
95     derived_from: tosca.capabilities.Endpoint
96     properties:
97       network_name: PUBLIC
98       floating:
99         description: |
100           indicates that the public address should be allocated from a pool of floating IPs that are associated with the network.
101         type: boolean
102         default: false
103         status: experimental
104       dns_name:
105         description: The optional name to register with DNS
106         type: string
107         required: false
108         status: experimental
109   tosca.capabilities.Endpoint.Admin:
110     derived_from: tosca.capabilities.Endpoint
111     properties:
112       secure: true
113   tosca.capabilities.Endpoint.Database:
114     derived_from: tosca.capabilities.Endpoint
115   tosca.capabilities.OperatingSystem:
116     derived_from: tosca.capabilities.Root
117     properties:
118       architecture:
119         type: string
120         required: false
121       type:
122         type: string
123         required: false
124       distribution:
125         type: string
126         required: false
127       version:
128         type: version
129         required: false
130   tosca.capabilities.Scalable:
131     derived_from: tosca.capabilities.Root
132     properties:
133       min_instances:
134         type: integer
135         default: 1
136       max_instances:
137         type: integer
138         default: 1
139       default_instances:
140         type: integer
141   tosca.capabilities.network.Bindable:
142     derived_from: tosca.capabilities.Node
143   tosca.capabilities.Container.Docker:
144     derived_from: tosca.capabilities.Container
145     properties:
146       version:
147         type: list
148         required: false
149         entry_schema: version
150       publish_all:
151         type: boolean
152         default: false
153         required: false
154       publish_ports:
155         type: list
156         entry_schema: PortSpec
157         required: false
158       expose_ports:
159         type: list
160         entry_schema: PortSpec
161         required: false
162       volumes:
163         type: list
164         entry_schema: string
165         required: false
166   tosca.capabilities.network.Linkable:
167     derived_from: tosca.capabilities.Root
168   org.openecomp.capabilities.AllottedResource:
169     derived_from: tosca.capabilities.Root
170   tosca.capabilities.nfv.Metric:
171     derived_from: tosca.capabilities.Endpoint
172   org.openecomp.capabilities.Metric:
173     derived_from: tosca.capabilities.nfv.Metric
174     description: A node type that includes the Metric capability indicates that it can be monitored.
175     properties:
176       unit:
177         type: string
178         description: Unit of the metric value
179         required: true
180         status: SUPPORTED
181       description:
182         type: string
183         description: Description of the metric
184         required: false
185         status: SUPPORTED
186       type:
187         type: string
188         description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc.
189         required: true
190         status: SUPPORTED
191       category:
192         type: string
193         description: Category of the metric, for an example, compute, disk, network, storage and etc.
194         required: false
195         status: SUPPORTED
196     attributes:
197       value:
198         type: string
199         description: Runtime monitored value
200         status: SUPPORTED
201   org.openecomp.capabilities.metric.Ceilometer:
202     derived_from: org.openecomp.capabilities.Metric
203     description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer.
204     properties:
205       name:
206         type: string
207         description: Ceilometer metric type name to monitor. (The name ceilometer is using)
208         required: true
209         status: SUPPORTED
210   org.openecomp.capabilities.metric.SnmpPolling:
211     derived_from: org.openecomp.capabilities.Metric
212     description: A node type that includes the Metric capability indicates that it can be monitored using snmp polling.
213     properties:
214       oid:
215         type: string
216         description: Object Id of the metric
217         required: true
218         status: SUPPORTED
219   org.openecomp.capabilities.metric.SnmpTrap:
220     derived_from: org.openecomp.capabilities.Metric
221     description: A node type that includes the Metric capability indicates that it can be monitored using snmp trap.
222     properties:
223       oid:
224         type: string
225         description: Object Id of the metric
226         required: true
227         status: SUPPORTED
228   org.openecomp.capabilities.Forwarder:
229     derived_from: tosca.capabilities.Root
230   org.openecomp.capabilities.VLANAssignment:
231     derived_from: tosca.capabilities.Root
232     description: ability to expose routing information of the internal network
233     properties:
234       vfc_instance_group_reference:
235         type: string
236         description: Ability to recognize capability per vfc instance group on vnf instance
237         required: true
238   tosca.capabilities.nfv.VirtualStorage:
239     derived_from: tosca.capabilities.Root
240   tosca.capabilities.nfv.VirtualCompute:
241     derived_from: tosca.capabilities.Root
242     properties:
243       requested_additional_capabilities:
244         type: map
245         entry_schema:
246           type: tosca.datatypes.nfv.RequestedAdditionalCapability
247         required: false
248       virtual_memory:
249         type: tosca.datatypes.nfv.VirtualMemory
250         required: true
251       virtual_cpu:
252         type: tosca.datatypes.nfv.VirtualCpu
253         required: true
254   tosca.capabilities.nfv.VirtualBindable:
255     derived_from: tosca.capabilities.Root
256   tosca.capabilities.nfv.VirtualLinkable:
257     derived_from: tosca.capabilities.Root
258   tosca.capabilities.nfv.Forwarder:
259     derived_from: tosca.capabilities.Root
260   tosca.capabilities.nfv.ext.GuestOs:
261     derived_from: tosca.capabilities.Root
262   tosca.capabilities.nfv.ext.ImageFile:
263     derived_from: tosca.capabilities.Root
264   tosca.capabilities.nfv.ext.LocalAttachment:
265     derived_from: tosca.capabilities.Root
266   tosca.capabilities.nfv.ext.Compute.Container.Architecture:
267     derived_from: tosca.capabilities.Root
268     properties:
269       num_cpus:
270         type: string
271         required: false
272       flavor_extra_specs:
273         type: map
274         required: false
275         entry_schema:
276           type: string
277       mem_size:
278         type: string
279         required: false