[SDC-29] Amdocs OnBoard 1707 initial commit.
[sdc.git] / openecomp-be / lib / openecomp-sdc-enrichment-lib / openecomp-sdc-enrichment-core / src / test / resources / mock / toscaGlobalServiceTemplates / 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.contrail.port.StaticRoute:
25     derived_from: tosca.datatypes.Root
26     description: static route
27     properties:
28       prefix:
29         type: string
30         description: Route prefix
31         required: false
32         status: SUPPORTED
33       next_hop:
34         type: string
35         description: Next hop
36         required: false
37         status: SUPPORTED
38       next_hop_type:
39         type: string
40         description: Next hop type
41         required: false
42         status: SUPPORTED
43   org.openecomp.datatypes.heat.network.subnet.HostRoute:
44     derived_from: tosca.datatypes.Root
45     description: Host route info for the subnet
46     properties:
47       destination:
48         type: string
49         description: The destination for static route
50         required: false
51         status: SUPPORTED
52       nexthop:
53         type: string
54         description: The next hop for the destination
55         required: false
56         status: SUPPORTED
57   org.openecomp.datatypes.heat.network.neutron.Subnet:
58     derived_from: tosca.datatypes.Root
59     description: A subnet represents an IP address block that can be used for assigning IP addresses to virtual instances
60     properties:
61       tenant_id:
62         type: string
63         description: The ID of the tenant who owns the network
64         required: false
65         status: SUPPORTED
66       enable_dhcp:
67         type: boolean
68         description: Set to true if DHCP is enabled and false if DHCP is disabled
69         required: false
70         default: true
71         status: SUPPORTED
72       ipv6_address_mode:
73         type: string
74         description: IPv6 address mode
75         required: false
76         status: SUPPORTED
77         constraints:
78         - valid_values:
79           - dhcpv6-stateful
80           - dhcpv6-stateless
81           - slaac
82       ipv6_ra_mode:
83         type: string
84         description: IPv6 RA (Router Advertisement) mode
85         required: false
86         status: SUPPORTED
87         constraints:
88         - valid_values:
89           - dhcpv6-stateful
90           - dhcpv6-stateless
91           - slaac
92       value_specs:
93         type: map
94         description: Extra parameters to include in the request
95         required: false
96         default: {
97           }
98         status: SUPPORTED
99         entry_schema:
100           type: string
101       allocation_pools:
102         type: list
103         description: The start and end addresses for the allocation pools
104         required: false
105         status: SUPPORTED
106         entry_schema:
107           type: org.openecomp.datatypes.heat.network.AllocationPool
108       subnetpool:
109         type: string
110         description: The name or ID of the subnet pool
111         required: false
112         status: SUPPORTED
113       dns_nameservers:
114         type: list
115         description: A specified set of DNS name servers to be used
116         required: false
117         default: [
118           ]
119         status: SUPPORTED
120         entry_schema:
121           type: string
122       host_routes:
123         type: list
124         description: The gateway IP address
125         required: false
126         status: SUPPORTED
127         entry_schema:
128           type: org.openecomp.datatypes.heat.network.subnet.HostRoute
129       ip_version:
130         type: integer
131         description: The gateway IP address
132         required: false
133         default: 4
134         status: SUPPORTED
135         constraints:
136         - valid_values:
137           - '4'
138           - '6'
139       name:
140         type: string
141         description: The name of the subnet
142         required: false
143         status: SUPPORTED
144       prefixlen:
145         type: integer
146         description: Prefix length for subnet allocation from subnet pool
147         required: false
148         status: SUPPORTED
149         constraints:
150         - greater_or_equal: 0
151       cidr:
152         type: string
153         description: The CIDR
154         required: false
155         status: SUPPORTED
156       gateway_ip:
157         type: string
158         description: The gateway IP address
159         required: false
160         status: SUPPORTED
161   org.openecomp.datatypes.heat.network.AllocationPool:
162     derived_from: tosca.datatypes.Root
163     description: The start and end addresses for the allocation pool
164     properties:
165       start:
166         type: string
167         description: Start address for the allocation pool
168         required: false
169         status: SUPPORTED
170       end:
171         type: string
172         description: End address for the allocation pool
173         required: false
174         status: SUPPORTED
175   org.openecomp.datatypes.heat.network.contrail.AddressPair:
176     derived_from: tosca.datatypes.Root
177     description: Address Pair
178     properties:
179       address_mode:
180         type: string
181         description: Address mode active-active or active-standy
182         required: false
183         status: SUPPORTED
184         constraints:
185         - valid_values:
186           - active-active
187           - active-standby
188       prefix:
189         type: string
190         description: IP address prefix
191         required: false
192         status: SUPPORTED
193       mac_address:
194         type: string
195         description: Mac address
196         required: false
197         status: SUPPORTED
198 capability_types:
199   org.openecomp.capabilities.Metric:
200     derived_from: tosca.capabilities.nfv.Metric
201     description: A node type that includes the Metric capability indicates that it can be monitored.
202     properties:
203       unit:
204         type: string
205         description: Unit of the metric value
206         required: true
207         status: SUPPORTED
208       description:
209         type: string
210         description: Description of the metric
211         required: false
212         status: SUPPORTED
213       type:
214         type: string
215         description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc.
216         required: true
217         status: SUPPORTED
218       category:
219         type: string
220         description: Category of the metric, for an example, compute, disk, network, storage and etc.
221         required: false
222         status: SUPPORTED
223     attributes:
224       value:
225         type: string
226         description: Runtime monitored value
227         status: SUPPORTED
228   org.openecomp.capabilities.metric.Ceilometer:
229     derived_from: org.openecomp.capabilities.Metric
230     description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer.
231     properties:
232       name:
233         type: string
234         description: Ceilometer metric type name to monitor. (The name ceilometer is using)
235         required: true
236         status: SUPPORTED
237   org.openecomp.capabilities.metric.SnmpPolling:
238     derived_from: org.openecomp.capabilities.Metric
239     description: A node type that includes the Metric capability indicates that it can be monitored using snmp polling.
240     properties:
241       oid:
242         type: string
243         description: Object Id of the metric
244         required: true
245         status: SUPPORTED
246   org.openecomp.capabilities.metric.SnmpTrap:
247     derived_from: org.openecomp.capabilities.Metric
248     description: A node type that includes the Metric capability indicates that it can be monitored using snmp trap.
249     properties:
250       oid:
251         type: string
252         description: Object Id of the metric
253         required: true
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.Diversity:
276     derived_from: tosca.policy.placement
277     description: Valet Diversity
278     properties:
279       level:
280         type: string
281         description: diversity
282         required: false
283         default: host
284         status: SUPPORTED
285         constraints:
286         - valid_values:
287           - host
288           - rack
289   org.openecomp.policies.placement.valet.Exclusivity:
290     derived_from: tosca.policy.placement
291     description: Valet Exclusivity
292     properties:
293       level:
294         type: string
295         description: exclusivity
296         required: false
297         default: host
298         status: SUPPORTED
299         constraints:
300         - valid_values:
301           - host
302           - rack
303   org.openecomp.policies.placement.valet.Affinity:
304     derived_from: tosca.policy.placement
305     description: Valet Affinity
306     properties:
307       level:
308         type: string
309         description: affinity
310         required: false
311         default: host
312         status: SUPPORTED
313         constraints:
314         - valid_values:
315           - host
316           - rack
317   org.openecomp.policies.placement.Colocate:
318     derived_from: tosca.policy.placement
319     description: Keep associated nodes (groups of nodes) based upon affinity value
320     properties:
321       name:
322         type: string
323         description: The name of the policy
324         required: false
325         status: SUPPORTED
326       affinity:
327         type: string
328         description: affinity
329         required: true
330         status: SUPPORTED
331         constraints:
332         - valid_values:
333           - host
334           - region
335           - compute
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