Closed lipingxue closed 9 months ago
@lipingxue in your testing result why UsedCapacityInMb
is -1
?
UsedCapacityInMb: -1,
@lipingxue in your testing result why
UsedCapacityInMb
is-1
?UsedCapacityInMb: -1,
"-1" means CNS cannot determine the value of this field. See the following from VMODL definition. I have confirmed with Yang that this field is not always set.
This is the rolled up allocated space of the FCD's snapshots.
Set to -1 if unknown.
Per offline discussion, Field "UsedCapacityInMb" should not be used by CNS and should not added to cns type. Close this MR.
/close
Description
This change add new field "UsedCapacityInMb" in struct "CnsBlockBackingDetails". This field is s the rolled up used capacity of the FCD and its snapshots. Closes: #(issue-number)
Type of change
Please mark options that are relevant:
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. If applicable, please also list any relevant details for your test configuration.
unit test passed and in the QueryVolume API output. Field "UsedCapacityInMb" exists in struct "CnsBlockBackingDetails".
Checklist:
CONTRIBUTION
guidelines of this project