Searched hist:"82 f80326afb1e1cfd6b682d4fa2f75319c83004f" (Results 1 – 2 of 2) sorted by relevance
/openbmc/bmcweb/redfish-core/lib/ |
H A D | pcie_slots.hpp | diff 82f80326afb1e1cfd6b682d4fa2f75319c83004f Mon Jul 10 07:00:38 CDT 2023 Konstantin Aladyshev <aladyshev22@gmail.com> Omit Slot "Lanes" property if it is equal to 0
In the context of a PCIeSlot the 0 value for the 'Lanes' property means undefined. According to the bmcweb guidelines, DBus properties with "unknown"/"unspecified" values should be omitted from the Redfish tree. Therefore don't populate 'Lanes' property if it is equal to 0.
Tested: validator passed
Change-Id: Ic3d142dd8b10da2367d73c370d5480208ba1510a Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com>
|
H A D | pcie.hpp | diff 82f80326afb1e1cfd6b682d4fa2f75319c83004f Mon Jul 10 07:00:38 CDT 2023 Konstantin Aladyshev <aladyshev22@gmail.com> Omit Slot "Lanes" property if it is equal to 0
In the context of a PCIeSlot the 0 value for the 'Lanes' property means undefined. According to the bmcweb guidelines, DBus properties with "unknown"/"unspecified" values should be omitted from the Redfish tree. Therefore don't populate 'Lanes' property if it is equal to 0.
Tested: validator passed
Change-Id: Ic3d142dd8b10da2367d73c370d5480208ba1510a Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com>
|