push addional code
[sdc.git] / openecomp-be / lib / openecomp-tosca-lib / src / test / resources / mock / globalServiceTemplates / 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 data_types:
7   org.openecomp.datatypes.heat.network.AddressPair:
8     derived_from: tosca.datatypes.Root
9     description: MAC/IP address pairs
10     properties:
11       mac_address:
12         type: string
13         description: MAC address
14         required: false
15         status: SUPPORTED
16       ip_address:
17         type: string
18         description: IP address
19         required: false
20         status: SUPPORTED
21   org.openecomp.datatypes.heat.network.subnet.HostRoute:
22     derived_from: tosca.datatypes.Root
23     description: Host route info for the subnet
24     properties:
25       destination:
26         type: string
27         description: The destination for static route
28         required: false
29         status: SUPPORTED
30       nexthop:
31         type: string
32         description: The next hop for the destination
33         required: false
34         status: SUPPORTED
35   org.openecomp.datatypes.heat.network.neutron.Subnet:
36     derived_from: tosca.datatypes.Root
37     description: A subnet represents an IP address block that can be used for assigning IP addresses to virtual instances
38     properties:
39       tenant_id:
40         type: string
41         description: The ID of the tenant who owns the network
42         required: false
43         status: SUPPORTED
44       enable_dhcp:
45         type: boolean
46         description: Set to true if DHCP is enabled and false if DHCP is disabled
47         required: false
48         default: true
49         status: SUPPORTED
50       ipv6_address_mode:
51         type: string
52         description: IPv6 address mode
53         required: false
54         status: SUPPORTED
55         constraints:
56         - valid_values:
57           - dhcpv6-stateful
58           - dhcpv6-stateless
59           - slaac
60       ipv6_ra_mode:
61         type: string
62         description: IPv6 RA (Router Advertisement) mode
63         required: false
64         status: SUPPORTED
65         constraints:
66         - valid_values:
67           - dhcpv6-stateful
68           - dhcpv6-stateless
69           - slaac
70       value_specs:
71         type: map
72         description: Extra parameters to include in the request
73         required: false
74         default: {
75           }
76         status: SUPPORTED
77         entry_schema:
78           type: string
79       allocation_pools:
80         type: list
81         description: The start and end addresses for the allocation pools
82         required: false
83         status: SUPPORTED
84         entry_schema:
85           type: org.openecomp.datatypes.heat.network.AllocationPool
86       subnetpool:
87         type: string
88         description: The name or ID of the subnet pool
89         required: false
90         status: SUPPORTED
91       dns_nameservers:
92         type: list
93         description: A specified set of DNS name servers to be used
94         required: false
95         default: [
96           ]
97         status: SUPPORTED
98         entry_schema:
99           type: string
100       host_routes:
101         type: list
102         description: The gateway IP address
103         required: false
104         status: SUPPORTED
105         entry_schema:
106           type: org.openecomp.datatypes.heat.network.subnet.HostRoute
107       ip_version:
108         type: integer
109         description: The gateway IP address
110         required: false
111         default: 4
112         status: SUPPORTED
113         constraints:
114         - valid_values:
115           - '4'
116           - '6'
117       name:
118         type: string
119         description: The name of the subnet
120         required: false
121         status: SUPPORTED
122       prefixlen:
123         type: integer
124         description: Prefix length for subnet allocation from subnet pool
125         required: false
126         status: SUPPORTED
127         constraints:
128         - greater_or_equal: 0
129       cidr:
130         type: string
131         description: The CIDR
132         required: false
133         status: SUPPORTED
134       gateway_ip:
135         type: string
136         description: The gateway IP address
137         required: false
138         status: SUPPORTED
139   org.openecomp.datatypes.heat.network.AllocationPool:
140     derived_from: tosca.datatypes.Root
141     description: The start and end addresses for the allocation pool
142     properties:
143       start:
144         type: string
145         description: Start address for the allocation pool
146         required: false
147         status: SUPPORTED
148       end:
149         type: string
150         description: End address for the allocation pool
151         required: false
152         status: SUPPORTED
153 relationship_types:
154   org.openecomp.relationships.AttachesTo:
155     derived_from: tosca.relationships.Root
156     description: This type represents an attachment relationship
157 group_types:
158   org.openecomp.groups.heat.HeatStack:
159     derived_from: tosca.groups.Root
160     description: Grouped all heat resources which are in the same heat stack
161     properties:
162       heat_file:
163         type: string
164         description: Heat file which associate to this group/heat stack
165         required: true
166         status: SUPPORTED
167       description:
168         type: string
169         description: Heat file description
170         required: false
171         status: SUPPORTED
172 policy_types:
173   org.openecomp.policies.placement.Colocate:
174     derived_from: tosca.policy.placement
175     description: Keep associated nodes (groups of nodes) based upon affinity value
176     properties:
177       name:
178         type: string
179         description: The name of the policy
180         required: false
181         status: SUPPORTED
182       affinity:
183         type: string
184         description: affinity
185         required: true
186         status: SUPPORTED
187         constraints:
188         - valid_values:
189           - host
190           - region
191           - compute
192   org.openecomp.policies.placement.Antilocate:
193     derived_from: tosca.policy.placement
194     description: My placement policy for separation based upon container type value
195     properties:
196       name:
197         type: string
198         description: The name of the policy
199         required: false
200         status: SUPPORTED
201       container_type:
202         type: string
203         description: container type
204         required: false
205         status: SUPPORTED
206         constraints:
207         - valid_values:
208           - host
209           - region
210           - compute