From: Alexandru Avadanii Date: Sat, 13 Jan 2018 18:43:48 +0000 (+0100) Subject: [PDF] [SPEC] Extend disk_rotation enum with '0' X-Git-Tag: 6.0.0~34^2~2 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?p=pharos.git;a=commitdiff_plain;h=2ae8d4462ce772f247bd899104e43cd50add8b33 [PDF] [SPEC] Extend disk_rotation enum with '0' 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 --- diff --git a/config/pdf/pod1.schema.yaml b/config/pdf/pod1.schema.yaml index 12ce38d5..ad7466e0 100644 --- a/config/pdf/pod1.schema.yaml +++ b/config/pdf/pod1.schema.yaml @@ -59,7 +59,7 @@ definitions: 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: diff --git a/config/pdf/pod1.yaml b/config/pdf/pod1.yaml index d9028c23..03ec9d12 100644 --- a/config/pdf/pod1.yaml +++ b/config/pdf/pod1.yaml @@ -34,7 +34,7 @@ jumphost: # 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