ssd and nvme drives are static, so extend the list of accepted
disk_rotation values to accomodate this.
Use '0' so the enum can still be parsed as a numeric value.
Change-Id: Ib8ef8cceb495c7eb588c68d151690747463167f5
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
enum: ['sata', 'sas', 'ssd', 'nvme']
disk_rotation:
type: 'number'
- enum: [5400, 7200, 10000, 15000]
+ enum: [0, 5400, 7200, 10000, 15000]
required: ['name', 'disk_capacity', 'disk_type', 'disk_interface', 'disk_rotation']
additionalProperties: false
remote_management:
# several interface types possible
disk_interface: {sata|sas|ssd|nvme}
# define rotation speed of disk
- disk_rotation: {5400|7200|10000|15000}
+ disk_rotation: {0|5400|7200|10000|15000}
# second disk
- name: 'disk2'
disk_capacity: 2048G