push addional code
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / global_types / expectedoutputfiles / CommonGlobalTypesServiceTemplate.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: CommonGlobalTypes
4   template_version: 1.0.0
5 description: TOSCA Global Types
6 imports:
7   NativeTypesServiceTemplate:
8     file: NativeTypesServiceTemplateServiceTemplate.yaml
9 data_types:
10   org.openecomp.datatypes.heat.network.AddressPair:
11     derived_from: tosca.datatypes.Root
12     description: MAC/IP address pairs
13     properties:
14       mac_address:
15         type: string
16         description: MAC address
17         required: false
18         status: SUPPORTED
19       ip_address:
20         type: string
21         description: IP address
22         required: false
23         status: SUPPORTED
24   org.openecomp.datatypes.heat.network.AllocationPool:
25     derived_from: tosca.datatypes.Root
26     description: The start and end addresses for the allocation pool
27     properties:
28       start:
29         type: string
30         description: Start address for the allocation pool
31         required: false
32         status: SUPPORTED
33       end:
34         type: string
35         description: End address for the allocation pool
36         required: false
37         status: SUPPORTED
38   org.openecomp.datatypes.heat.network.contrail.AddressPair:
39     derived_from: tosca.datatypes.Root
40     description: Address Pair
41     properties:
42       address_mode:
43         type: string
44         description: Address mode active-active or active-standy
45         required: false
46         status: SUPPORTED
47         constraints:
48         - valid_values:
49           - active-active
50           - active-standby
51       prefix:
52         type: string
53         description: IP address prefix
54         required: false
55         status: SUPPORTED
56       mac_address:
57         type: string
58         description: Mac address
59         required: false
60         status: SUPPORTED
61   org.openecomp.datatypes.heat.network.subnet.HostRoute:
62     derived_from: tosca.datatypes.Root
63     description: Host route info for the subnet
64     properties:
65       destination:
66         type: string
67         description: The destination for static route
68         required: false
69         status: SUPPORTED
70       nexthop:
71         type: string
72         description: The next hop for the destination
73         required: false
74         status: SUPPORTED
75   org.openecomp.datatypes.heat.network.contrail.port.StaticRoute:
76     derived_from: tosca.datatypes.Root
77     description: static route
78     properties:
79       prefix:
80         type: string
81         description: Route prefix
82         required: false
83         status: SUPPORTED
84       next_hop:
85         type: string
86         description: Next hop
87         required: false
88         status: SUPPORTED
89       next_hop_type:
90         type: string
91         description: Next hop type
92         required: false
93         status: SUPPORTED
94   org.openecomp.datatypes.heat.network.neutron.Subnet:
95     derived_from: tosca.datatypes.Root
96     description: A subnet represents an IP address block that can be used for assigning IP addresses to virtual instances
97     properties:
98       tenant_id:
99         type: string
100         description: The ID of the tenant who owns the network
101         required: false
102         status: SUPPORTED
103       enable_dhcp:
104         type: boolean
105         description: Set to true if DHCP is enabled and false if DHCP is disabled
106         required: false
107         default: true
108         status: SUPPORTED
109       ipv6_address_mode:
110         type: string
111         description: IPv6 address mode
112         required: false
113         status: SUPPORTED
114         constraints:
115         - valid_values:
116           - dhcpv6-stateful
117           - dhcpv6-stateless
118           - slaac
119       ipv6_ra_mode:
120         type: string
121         description: IPv6 RA (Router Advertisement) mode
122         required: false
123         status: SUPPORTED
124         constraints:
125         - valid_values:
126           - dhcpv6-stateful
127           - dhcpv6-stateless
128           - slaac
129       value_specs:
130         type: map
131         description: Extra parameters to include in the request
132         required: false
133         default: {
134           }
135         status: SUPPORTED
136         entry_schema:
137           type: string
138       allocation_pools:
139         type: list
140         description: The start and end addresses for the allocation pools
141         required: false
142         status: SUPPORTED
143         entry_schema:
144           type: org.openecomp.datatypes.heat.network.AllocationPool
145       subnetpool:
146         type: string
147         description: The name or ID of the subnet pool
148         required: false
149         status: SUPPORTED
150       dns_nameservers:
151         type: list
152         description: A specified set of DNS name servers to be used
153         required: false
154         default: [
155           ]
156         status: SUPPORTED
157         entry_schema:
158           type: string
159       host_routes:
160         type: list
161         description: The gateway IP address
162         required: false
163         status: SUPPORTED
164         entry_schema:
165           type: org.openecomp.datatypes.heat.network.subnet.HostRoute
166       ip_version:
167         type: integer
168         description: The gateway IP address
169         required: false
170         default: 4
171         status: SUPPORTED
172         constraints:
173         - valid_values:
174           - '4'
175           - '6'
176       name:
177         type: string
178         description: The name of the subnet
179         required: false
180         status: SUPPORTED
181       prefixlen:
182         type: integer
183         description: Prefix length for subnet allocation from subnet pool
184         required: false
185         status: SUPPORTED
186         constraints:
187         - greater_or_equal: 0
188       cidr:
189         type: string
190         description: The CIDR
191         required: false
192         status: SUPPORTED
193       gateway_ip:
194         type: string
195         description: The gateway IP address
196         required: false
197         status: SUPPORTED
198 capability_types:
199   org.openecomp.capabilities.metric.SnmpTrap:
200     derived_from: org.openecomp.capabilities.Metric
201     description: A node type that includes the Metric capability indicates that it can be monitored using snmp trap.
202     properties:
203       oid:
204         type: string
205         description: Object Id of the metric
206         required: true
207         status: SUPPORTED
208   org.openecomp.capabilities.metric.SnmpPolling:
209     derived_from: org.openecomp.capabilities.Metric
210     description: A node type that includes the Metric capability indicates that it can be monitored using snmp polling.
211     properties:
212       oid:
213         type: string
214         description: Object Id of the metric
215         required: true
216         status: SUPPORTED
217   org.openecomp.capabilities.metric.Ceilometer:
218     derived_from: org.openecomp.capabilities.Metric
219     description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer.
220     properties:
221       name:
222         type: string
223         description: Ceilometer metric type name to monitor. (The name ceilometer is using)
224         required: true
225         status: SUPPORTED
226   org.openecomp.capabilities.Metric:
227     derived_from: tosca.capabilities.nfv.Metric
228     description: A node type that includes the Metric capability indicates that it can be monitored.
229     properties:
230       unit:
231         type: string
232         description: Unit of the metric value
233         required: true
234         status: SUPPORTED
235       description:
236         type: string
237         description: Description of the metric
238         required: false
239         status: SUPPORTED
240       type:
241         type: string
242         description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc.
243         required: true
244         status: SUPPORTED
245       category:
246         type: string
247         description: Category of the metric, for an example, compute, disk, network, storage and etc.
248         required: false
249         status: SUPPORTED
250     attributes:
251       value:
252         type: string
253         description: Runtime monitored value
254         status: SUPPORTED
255 relationship_types:
256   org.openecomp.relationships.AttachesTo:
257     derived_from: tosca.relationships.Root
258     description: This type represents an attachment relationship
259 group_types:
260   org.openecomp.groups.heat.HeatStack:
261     derived_from: tosca.groups.Root
262     description: Grouped all heat resources which are in the same heat stack
263     properties:
264       heat_file:
265         type: string
266         description: Heat file which associate to this group/heat stack
267         required: true
268         status: SUPPORTED
269       description:
270         type: string
271         description: Heat file description
272         required: false
273         status: SUPPORTED
274 policy_types:
275   org.openecomp.policies.placement.valet.Exclusivity:
276     derived_from: tosca.policy.placement
277     description: Valet Exclusivity
278     properties:
279       level:
280         type: string
281         description: exclusivity
282         required: false
283         default: host
284         status: SUPPORTED
285         constraints:
286         - valid_values:
287           - host
288           - rack
289   org.openecomp.policies.placement.valet.Diversity:
290     derived_from: tosca.policy.placement
291     description: Valet Diversity
292     properties:
293       level:
294         type: string
295         description: diversity
296         required: false
297         default: host
298         status: SUPPORTED
299         constraints:
300         - valid_values:
301           - host
302           - rack
303   org.openecomp.policies.placement.Colocate:
304     derived_from: tosca.policy.placement
305     description: Keep associated nodes (groups of nodes) based upon affinity value
306     properties:
307       name:
308         type: string
309         description: The name of the policy
310         required: false
311         status: SUPPORTED
312       affinity:
313         type: string
314         description: affinity
315         required: true
316         status: SUPPORTED
317         constraints:
318         - valid_values:
319           - host
320           - region
321           - compute
322   org.openecomp.policies.placement.valet.Affinity:
323     derived_from: tosca.policy.placement
324     description: Valet Affinity
325     properties:
326       level:
327         type: string
328         description: affinity
329         required: false
330         default: host
331         status: SUPPORTED
332         constraints:
333         - valid_values:
334           - host
335           - rack
336   org.openecomp.policies.placement.Antilocate:
337     derived_from: tosca.policy.placement
338     description: My placement policy for separation based upon container type value
339     properties:
340       name:
341         type: string
342         description: The name of the policy
343         required: false
344         status: SUPPORTED
345       container_type:
346         type: string
347         description: container type
348         required: false
349         status: SUPPORTED
350         constraints:
351         - valid_values:
352           - host
353           - region
354           - compute