[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 / NovaServerGlobalTypesServiceTemplate.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: NovaServerGlobalTypes
4   template_version: 1.0.0
5 description: Nova Server TOSCA Global Types
6 imports:
7 - ComputeGlobalTypes:
8     file: ComputeGlobalTypesServiceTemplate.yaml
9 - common_definitions:
10     file: CommonGlobalTypesServiceTemplate.yaml
11 data_types:
12   org.openecomp.datatypes.heat.novaServer.network.PortExtraProperties:
13     derived_from: tosca.datatypes.Root
14     description: Nova server network expand properties for port
15     properties:
16       port_security_enabled:
17         type: boolean
18         description: Flag to enable/disable port security on the port
19         required: false
20         status: SUPPORTED
21       mac_address:
22         type: string
23         description: MAC address to give to this port
24         required: false
25         status: SUPPORTED
26       admin_state_up:
27         type: boolean
28         description: The administrative state of this port
29         required: false
30         default: true
31         status: SUPPORTED
32       qos_policy:
33         type: string
34         description: The name or ID of QoS policy to attach to this port
35         required: false
36         status: SUPPORTED
37       allowed_address_pairs:
38         type: list
39         description: Additional MAC/IP address pairs allowed to pass through the port
40         required: false
41         status: SUPPORTED
42         entry_schema:
43           type: org.openecomp.datatypes.heat.network.AddressPair
44       binding:vnic_type:
45         type: string
46         description: The vnic type to be bound on the neutron port
47         required: false
48         status: SUPPORTED
49         constraints:
50         - valid_values:
51           - macvtap
52           - direct
53           - normal
54       value_specs:
55         type: map
56         description: Extra parameters to include in the request
57         required: false
58         default: {
59           }
60         status: SUPPORTED
61         entry_schema:
62           type: string
63   org.openecomp.datatypes.heat.novaServer.network.AddressInfo:
64     derived_from: tosca.datatypes.network.NetworkInfo
65     description: Network addresses with corresponding port id
66     properties:
67       port_id:
68         type: string
69         description: Port id
70         required: false
71         status: SUPPORTED
72 node_types:
73   org.openecomp.resource.vfc.nodes.heat.nova.Server:
74     derived_from: org.openecomp.resource.vfc.nodes.Compute
75     properties:
76       admin_pass:
77         type: string
78         description: The administrator password for the server
79         required: false
80         status: SUPPORTED
81       availability_zone:
82         type: string
83         description: Availability zone to create servers in
84         required: false
85         status: SUPPORTED
86       image:
87         type: string
88         description: The ID or name of the image to boot with
89         required: false
90         status: SUPPORTED
91       image_update_policy:
92         type: string
93         description: Policy on how to apply an image-id update
94         required: false
95         default: REBUILD
96         status: SUPPORTED
97         constraints:
98         - valid_values:
99           - REBUILD_PRESERVE_EPHEMERAL
100           - REPLACE
101           - REBUILD
102       metadata:
103         type: json
104         description: Arbitrary JSON metadata to store for this server
105         required: false
106         status: SUPPORTED
107       contrail_service_instance_ind:
108         type: boolean
109         description: Nova server related to service instance indicator
110         required: false
111         default: false
112         status: SUPPORTED
113       user_data_update_policy:
114         type: string
115         description: Policy on how to apply a user_data update
116         required: false
117         default: REPLACE
118         status: SUPPORTED
119         constraints:
120         - valid_values:
121           - REPLACE
122           - IGNORE
123       flavor_update_policy:
124         type: string
125         description: Policy on how to apply a flavor update
126         required: false
127         default: RESIZE
128         status: SUPPORTED
129         constraints:
130         - valid_values:
131           - RESIZE
132           - REPLACE
133       user_data:
134         type: string
135         description: User data script to be executed by cloud-init
136         required: false
137         default: ''
138         status: SUPPORTED
139       flavor:
140         type: string
141         description: The ID or name of the flavor to boot onto
142         required: true
143         status: SUPPORTED
144       key_name:
145         type: string
146         description: Name of keypair to inject into the server
147         required: false
148         status: SUPPORTED
149       reservation_id:
150         type: string
151         description: A UUID for the set of servers being requested
152         required: false
153         status: SUPPORTED
154       security_groups:
155         type: list
156         description: List of security group names or IDs
157         required: false
158         default: [
159           ]
160         status: SUPPORTED
161         entry_schema:
162           type: string
163       config_drive:
164         type: boolean
165         description: enable config drive on the server
166         required: false
167         status: SUPPORTED
168       personality:
169         type: map
170         description: A map of files to create/overwrite on the server upon boot
171         required: false
172         default: {
173           }
174         status: SUPPORTED
175         entry_schema:
176           type: string
177       software_config_transport:
178         type: string
179         description: How the server should receive the metadata required for software configuration
180         required: false
181         default: POLL_SERVER_CFN
182         status: SUPPORTED
183         constraints:
184         - valid_values:
185           - POLL_SERVER_CFN
186           - POLL_SERVER_HEAT
187           - POLL_TEMP_URL
188           - ZAQAR_MESSAGE
189       user_data_format:
190         type: string
191         description: How the user_data should be formatted for the server
192         required: false
193         default: HEAT_CFNTOOLS
194         status: SUPPORTED
195         constraints:
196         - valid_values:
197           - SOFTWARE_CONFIG
198           - RAW
199           - HEAT_CFNTOOLS
200       diskConfig:
201         type: string
202         description: Control how the disk is partitioned when the server is created
203         required: false
204         status: SUPPORTED
205         constraints:
206         - valid_values:
207           - AUTO
208           - MANUAL
209       name:
210         type: string
211         description: Server name
212         required: false
213         status: SUPPORTED
214       scheduler_hints:
215         type: map
216         description: Arbitrary key-value pairs specified by the client to help boot a server
217         required: false
218         status: SUPPORTED
219         entry_schema:
220           type: string
221     attributes:
222       accessIPv4:
223         type: string
224         description: The manually assigned alternative public IPv4 address of the server
225         status: SUPPORTED
226       addresses:
227         type: map
228         description: A dict of all network addresses with corresponding port_id
229         status: SUPPORTED
230         entry_schema:
231           type: org.openecomp.datatypes.heat.novaServer.network.AddressInfo
232       accessIPv6:
233         type: string
234         description: The manually assigned alternative public IPv6 address of the server
235         status: SUPPORTED
236       instance_name:
237         type: string
238         description: AWS compatible instance name
239         status: SUPPORTED
240       name:
241         type: string
242         description: Name of the server
243         status: SUPPORTED
244       show:
245         type: string
246         description: Detailed information about resource
247         status: SUPPORTED
248       console_urls:
249         type: string
250         description: URLs of servers consoles
251         status: SUPPORTED