DM modification to align with R2 DM clean version
[sdc.git] / catalog-be / src / main / resources / import / tosca / nfv-types / vduCompute / vduCompute.yml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 node_types:
3     tosca.nodes.nfv.Vdu.Compute:
4       derived_from: tosca.nodes.Root
5       properties:
6         name:
7           type: string
8           required: true
9         description:
10           type: string
11           required: true
12         boot_order:
13           type: map
14           entry_schema:
15             type: string
16           required: false
17         nfvi_constraints: 
18           type: map # Align with IM, it shoul be a array of KeyValuePair/NameValuePair
19           entry_schema:
20             type: string
21           required: false
22         configurable_properties:
23            type: map   #In the IM, the multipilicity of VnfcConfigurableProperties is 1, not a map.
24            entry_schema:
25               type: tosca.datatypes.nfv.VnfcConfigurableProperties
26            required: true 
27         vdu_profile:         
28            type: tosca.datatypes.nfv.VduProfile
29            required: true
30         inject_files: # Used for vCPE usecase Aligned with ONAP R2 IM. not defined in IFA011 v2.4.1 and SOL001 v0.6.0.
31            type: tosca.datatypes.nfv.injectFile
32            required: false  #Aligned with ONAP R2 IM. it should be false.
33         meta_data: #metadata attached to the VM or container
34            type: map
35            entry_schema:
36              type: string
37            required: false
38         user_data: #cloudinit userdata script support
39           type: string
40           required: false
41       capabilities:
42         virtual_compute:
43           type: tosca.capabilities.nfv.VirtualCompute
44         virtual_binding:
45           type: tosca.capabilities.nfv.VirtualBindable
46           occurrences:
47           - 1
48           - UNBOUNDED
49         monitoring_parameter:    
50           type: tosca.capabilities.nfv.Metric
51           occurrences:
52           - 0
53           - UNBOUNDED
54       requirements:
55         - virtual_storage:
56             capability: tosca.capabilities.nfv.VirtualStorage
57             relationship: tosca.relationships.nfv.Vdu.AttachedTo
58             node: tosca.nodes.nfv.Vdu.VirtualStorage
59             occurences:
60             - 0
61             - UNBOUNDED
62       #artifacts: artifacts should be defined in template file instead of node type  
63       #  - sw_image:
64       #      file:   
65       #      type: tosca.artifacts.nfv.SwImage