update link to upper-constraints.txt
[modeling/etsicatalog.git] / resources / resource-TestFyx-template.yml
1 tosca_definitions_version: tosca_simple_yaml_1_1
2 metadata:
3   invariantUUID: 4b8712de-254b-4dae-8f16-b3d63c9f2d49
4   UUID: faf6c8f0-b096-44e2-88e9-4527451a71ff
5   name: Test-fyx
6   description: Application Test VF
7   type: VF
8   category: Application L4+
9   subcategory: Application Server
10   resourceVendor: zte
11   resourceVendorRelease: '1.0'
12   resourceVendorModelNumber: ''
13 imports:
14 - nodes:
15     file: nodes.yml
16 - datatypes:
17     file: data.yml
18 - capabilities:
19     file: capabilities.yml
20 - relationships:
21     file: relationships.yml
22 - groups:
23     file: groups.yml
24 - policies:
25     file: policies.yml
26 - resource-Test-fyx-interface:
27     file: resource-TestFyx-template-interface.yml
28 - resource-ExtCP:
29     file: resource-Extcp-template.yml
30 - resource-Compute:
31     file: resource-Compute-template.yml
32 - resource-BlockStorage:
33     file: resource-Blockstorage-template.yml
34 - resource-ContrailVirtualNetwork:
35     file: resource-Contrailvirtualnetwork-template.yml
36 - resource-ContrailPort:
37     file: resource-Contrailport-template.yml
38 - resource-ObjectStorage:
39     file: resource-Objectstorage-template.yml
40 topology_template:
41   inputs:
42     nf_naming:
43       type: org.openecomp.datatypes.Naming
44       default:
45         ecomp_generated_naming: true
46     nf_naming_code:
47       type: string
48       default: {
49         }
50     nf_function:
51       type: string
52       default: {
53         }
54     availability_zone_max_count:
55       type: integer
56       default: 1
57     nf_role:
58       type: string
59       default: {
60         }
61     max_instances:
62       type: integer
63       default: {
64         }
65     min_instances:
66       type: integer
67       default: {
68         }
69     nf_type:
70       type: string
71       default: {
72         }
73   node_templates:
74     VDU-B:
75       type: tosca.nodes.Compute
76       metadata:
77         invariantUUID: 96ac4c35-bdc2-4018-b022-d7df39507d7d
78         UUID: 0da94c51-2271-4ee2-ae13-cd89f46dbdff
79         customizationUUID: ea43f19d-770e-4ed4-9d5a-1f4999366fde
80         version: '1.0'
81         name: Compute
82         description: Represents a real or virtual machine or server. Information specified on the Compute node will be used to find the machine that fits the given requirements in the cloud available machines. If no sizing information are specified the cloud provider default machine will be used. It is strongly recommended to specify the required CPUs and memory at least.
83         type: VFC
84         category: Generic
85         subcategory: Infrastructure
86         resourceVendor: ATT (Tosca)
87         resourceVendorRelease: 1.0.0.wd03
88         resourceVendorModelNumber: ''
89     ContrailPort 0:
90       type: org.openecomp.resource.cp.nodes.heat.network.contrail.Port
91       metadata:
92         invariantUUID: 740aef05-3c26-4fc9-ab83-ef889801af59
93         UUID: 67110e55-8b3b-4595-9e7f-b76a8e5b78c8
94         customizationUUID: 37d74cc1-d060-4cbc-8a23-b0b81424e984
95         version: '2.0'
96         name: ContrailPort
97         description: Represents a logical entity that associates between Compute and Network normative types for contrail.
98         type: CP
99         category: Generic
100         subcategory: Network Elements
101         resourceVendor: ATT (Tosca)
102         resourceVendorRelease: 1.0.0.wd03
103         resourceVendorModelNumber: ''
104       properties:
105         mac_requirements:
106           mac_count_required:
107             is_required: false
108         static_route: false
109         shared_ip: false
110         exCP_naming:
111           ecomp_generated_naming: true
112         is_default: false
113       requirements:
114       - link:
115           capability: tosca.capabilities.network.Linkable
116           node: ContrailVirtualNetwork 0
117           relationship: tosca.relationships.network.LinksTo
118       - binding:
119           capability: tosca.capabilities.network.Bindable
120           node: VDU-B
121           relationship: tosca.relationships.network.BindsTo
122     VDU-C:
123       type: tosca.nodes.Compute
124       metadata:
125         invariantUUID: 96ac4c35-bdc2-4018-b022-d7df39507d7d
126         UUID: 0da94c51-2271-4ee2-ae13-cd89f46dbdff
127         customizationUUID: 8e76a90e-4ec3-4177-bdef-92ce55934f9d
128         version: '1.0'
129         name: Compute
130         description: Represents a real or virtual machine or server. Information specified on the Compute node will be used to find the machine that fits the given requirements in the cloud available machines. If no sizing information are specified the cloud provider default machine will be used. It is strongly recommended to specify the required CPUs and memory at least.
131         type: VFC
132         category: Generic
133         subcategory: Infrastructure
134         resourceVendor: ATT (Tosca)
135         resourceVendorRelease: 1.0.0.wd03
136         resourceVendorModelNumber: ''
137     ContrailPort 1:
138       type: org.openecomp.resource.cp.nodes.heat.network.contrail.Port
139       metadata:
140         invariantUUID: 740aef05-3c26-4fc9-ab83-ef889801af59
141         UUID: 67110e55-8b3b-4595-9e7f-b76a8e5b78c8
142         customizationUUID: 723cf043-6243-4a82-b220-d3fa548ce79f
143         version: '2.0'
144         name: ContrailPort
145         description: Represents a logical entity that associates between Compute and Network normative types for contrail.
146         type: CP
147         category: Generic
148         subcategory: Network Elements
149         resourceVendor: ATT (Tosca)
150         resourceVendorRelease: 1.0.0.wd03
151         resourceVendorModelNumber: ''
152       properties:
153         mac_requirements:
154           mac_count_required:
155             is_required: false
156         static_route: false
157         shared_ip: false
158         exCP_naming:
159           ecomp_generated_naming: true
160         is_default: false
161       requirements:
162       - link:
163           capability: tosca.capabilities.network.Linkable
164           node: ContrailVirtualNetwork 0
165           relationship: tosca.relationships.network.LinksTo
166       - binding:
167           capability: tosca.capabilities.network.Bindable
168           node: VDU-A
169           relationship: tosca.relationships.network.BindsTo
170     BlockStorage 0:
171       type: tosca.nodes.BlockStorage
172       metadata:
173         invariantUUID: 0b40dcd5-3d95-4dd4-bf9b-22b2f10755b8
174         UUID: 9ad49f03-2aa2-48e2-8fae-82d3b7f81788
175         customizationUUID: 9239f0fc-eaaa-400d-bca1-8510841fa651
176         version: '1.0'
177         name: BlockStorage
178         description: Represents a server-local block storage device (i.e., not shared) offering evenly sized blocks of data from which raw storage volumes can be created.
179         type: VFC
180         category: Generic
181         subcategory: Infrastructure
182         resourceVendor: ATT (Tosca)
183         resourceVendorRelease: 1.0.0.wd03
184         resourceVendorModelNumber: ''
185     VDU-A:
186       type: tosca.nodes.Compute
187       metadata:
188         invariantUUID: 96ac4c35-bdc2-4018-b022-d7df39507d7d
189         UUID: 0da94c51-2271-4ee2-ae13-cd89f46dbdff
190         customizationUUID: 35ccbeed-443d-4899-9042-82433aea3c01
191         version: '1.0'
192         name: Compute
193         description: Represents a real or virtual machine or server. Information specified on the Compute node will be used to find the machine that fits the given requirements in the cloud available machines. If no sizing information are specified the cloud provider default machine will be used. It is strongly recommended to specify the required CPUs and memory at least.
194         type: VFC
195         category: Generic
196         subcategory: Infrastructure
197         resourceVendor: ATT (Tosca)
198         resourceVendorRelease: 1.0.0.wd03
199         resourceVendorModelNumber: ''
200     ExtCP 0:
201       type: org.openecomp.resource.cp.extCP
202       metadata:
203         invariantUUID: 68f72152-2c57-4099-8bbc-aedb388a8f81
204         UUID: 41d5a4a1-346e-4b47-a08f-936572916657
205         customizationUUID: 94e2a43c-2c99-487f-a74b-d82edbbd1d5f
206         version: '2.0'
207         name: ExtCP
208         description: The AT&T Connection Point base type all other CP derive from
209         type: CP
210         category: Generic
211         subcategory: Network Elements
212         resourceVendor: ATT (Tosca)
213         resourceVendorRelease: 1.0.0.wd03
214         resourceVendorModelNumber: ''
215       properties:
216         mac_requirements:
217           mac_count_required:
218             is_required: false
219         exCP_naming:
220           ecomp_generated_naming: true
221       requirements:
222       - virtualBinding:
223           capability: tosca.capabilities.network.Bindable
224           node: VDU-C
225           relationship: tosca.relationships.network.BindsTo
226     ObjectStorage 0:
227       type: tosca.nodes.ObjectStorage
228       metadata:
229         invariantUUID: 4e89d2a8-ff83-47f8-9788-4aef40feaf0e
230         UUID: e7217097-ada2-42b9-81af-ccf525514796
231         customizationUUID: 42cc06c5-3bf2-480b-8c30-aac34c48e39f
232         version: '1.0'
233         name: ObjectStorage
234         description: Represents storage that provides the ability to store data as objects (or BLOBs of data) without consideration for the underlying filesystem or devices.
235         type: VFC
236         category: Generic
237         subcategory: Infrastructure
238         resourceVendor: ATT (Tosca)
239         resourceVendorRelease: 1.0.0.wd03
240         resourceVendorModelNumber: ''
241     ContrailVirtualNetwork 0:
242       type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork
243       metadata:
244         invariantUUID: 86b02009-8634-44f1-a22f-dc685460c95d
245         UUID: 4ebcc4a7-d648-4b7b-a23c-a094ec89b7f0
246         customizationUUID: d320316b-e61e-44f4-991d-e06f5fa3f9d2
247         version: '1.0'
248         name: ContrailVirtualNetwork
249         description: Represents a network service with optional subnets and advanced configurations.
250         type: VL
251         category: Generic
252         subcategory: Network Elements
253         resourceVendor: ATT (Tosca)
254         resourceVendorRelease: 1.0.0.wd03
255         resourceVendorModelNumber: ''
256       properties:
257         dhcp_enabled: true
258         ip_version: 4
259   substitution_mappings:
260     node_type: org.openecomp.resource.vf.TestFyx
261     capabilities:
262       extcp0.feature:
263       - ExtCP 0
264       - feature
265       compute0.binding:
266       - Compute 0
267       - binding
268       contrailport1.network.outgoing.packets.rate:
269       - ContrailPort 1
270       - network.outgoing.packets.rate
271       objectstorage0.feature:
272       - ObjectStorage 0
273       - feature
274       compute1.binding:
275       - Compute 1
276       - binding
277       contrailport0.network.incoming.packets.rate:
278       - ContrailPort 0
279       - network.incoming.packets.rate
280       compute1.endpoint:
281       - Compute 1
282       - endpoint
283       contrailport1.network.incoming.packets:
284       - ContrailPort 1
285       - network.incoming.packets
286       objectstorage0.storage_endpoint:
287       - ObjectStorage 0
288       - storage_endpoint
289       compute2.binding:
290       - Compute 2
291       - binding
292       contrailport1.network.incoming.bytes.rate:
293       - ContrailPort 1
294       - network.incoming.bytes.rate
295       contrailport1.network.outpoing.packets:
296       - ContrailPort 1
297       - network.outpoing.packets
298       contrailport0.network.incoming.packets:
299       - ContrailPort 0
300       - network.incoming.packets
301       contrailport0.feature:
302       - ContrailPort 0
303       - feature
304       compute1.host:
305       - Compute 1
306       - host
307       compute0.endpoint:
308       - Compute 0
309       - endpoint
310       contrailport1.feature:
311       - ContrailPort 1
312       - feature
313       blockstorage0.attachment:
314       - BlockStorage 0
315       - attachment
316       contrailvirtualnetwork0.end_point:
317       - ContrailVirtualNetwork 0
318       - end_point
319       contrailport0.network.outgoing.packets.rate:
320       - ContrailPort 0
321       - network.outgoing.packets.rate
322       compute2.os:
323       - Compute 2
324       - os
325       compute0.os:
326       - Compute 0
327       - os
328       compute1.scalable:
329       - Compute 1
330       - scalable
331       contrailport1.network.incoming.bytes:
332       - ContrailPort 1
333       - network.incoming.bytes
334       contrailvirtualnetwork0.attachment:
335       - ContrailVirtualNetwork 0
336       - attachment
337       contrailvirtualnetwork0.link:
338       - ContrailVirtualNetwork 0
339       - link
340       extcp0.internal_connectionPoint:
341       - ExtCP 0
342       - internal_connectionPoint
343       contrailport1.network.incoming.packets.rate:
344       - ContrailPort 1
345       - network.incoming.packets.rate
346       contrailport0.network.outgoing.bytes.rate:
347       - ContrailPort 0
348       - network.outgoing.bytes.rate
349       compute2.endpoint:
350       - Compute 2
351       - endpoint
352       blockstorage0.feature:
353       - BlockStorage 0
354       - feature
355       contrailvirtualnetwork0.feature:
356       - ContrailVirtualNetwork 0
357       - feature
358       compute0.feature:
359       - Compute 0
360       - feature
361       compute0.host:
362       - Compute 0
363       - host
364       compute1.feature:
365       - Compute 1
366       - feature
367       contrailport1.network.outgoing.bytes:
368       - ContrailPort 1
369       - network.outgoing.bytes
370       compute0.scalable:
371       - Compute 0
372       - scalable
373       compute2.feature:
374       - Compute 2
375       - feature
376       compute2.scalable:
377       - Compute 2
378       - scalable
379       contrailport0.network.outgoing.bytes:
380       - ContrailPort 0
381       - network.outgoing.bytes
382       contrailport1.network.outgoing.bytes.rate:
383       - ContrailPort 1
384       - network.outgoing.bytes.rate
385       contrailport0.network.outpoing.packets:
386       - ContrailPort 0
387       - network.outpoing.packets
388       compute2.host:
389       - Compute 2
390       - host
391       contrailport0.network.incoming.bytes:
392       - ContrailPort 0
393       - network.incoming.bytes
394       compute1.os:
395       - Compute 1
396       - os
397       contrailport0.network.incoming.bytes.rate:
398       - ContrailPort 0
399       - network.incoming.bytes.rate
400     requirements:
401       compute2.local_storage:
402       - Compute 2
403       - local_storage
404       extcp0.virtualBinding:
405       - ExtCP 0
406       - virtualBinding
407       blockstorage0.dependency:
408       - BlockStorage 0
409       - dependency
410       contrailport0.dependency:
411       - ContrailPort 0
412       - dependency
413       compute2.dependency:
414       - Compute 2
415       - dependency
416       extcp0.dependency:
417       - ExtCP 0
418       - dependency
419       contrailport0.link:
420       - ContrailPort 0
421       - link
422       compute1.local_storage:
423       - Compute 1
424       - local_storage
425       contrailport0.binding:
426       - ContrailPort 0
427       - binding
428       compute0.local_storage:
429       - Compute 0
430       - local_storage
431       contrailport1.dependency:
432       - ContrailPort 1
433       - dependency
434       contrailport1.binding:
435       - ContrailPort 1
436       - binding
437       compute1.dependency:
438       - Compute 1
439       - dependency
440       compute0.dependency:
441       - Compute 0
442       - dependency
443       extcp0.external_virtualLink:
444       - ExtCP 0
445       - external_virtualLink
446       contrailport1.link:
447       - ContrailPort 1
448       - link
449       objectstorage0.dependency:
450       - ObjectStorage 0
451       - dependency
452       contrailvirtualnetwork0.dependency:
453       - ContrailVirtualNetwork 0
454       - dependency
455       extcp0.virtualLink:
456       - ExtCP 0
457       - virtualLink