Default value for LanesInUse set to MAXINT
Changing the default value for property "LanesInUse" to accommodate
situations where the reason behind failure to get the value is not
known.
Some of the reason behind could be hardware failure or the link is
down or power to the I/O slot may be off.
Signed-off-by: Sunny Srivastava <sunnsr25@in.ibm.com>
Change-Id: If3bccd89382934f4bcf7ccf16f8068153d113d2c
diff --git a/yaml/xyz/openbmc_project/Inventory/Item/PCIeDevice.interface.yaml b/yaml/xyz/openbmc_project/Inventory/Item/PCIeDevice.interface.yaml
index 94b3578..e1dffb8 100644
--- a/yaml/xyz/openbmc_project/Inventory/Item/PCIeDevice.interface.yaml
+++ b/yaml/xyz/openbmc_project/Inventory/Item/PCIeDevice.interface.yaml
@@ -291,9 +291,12 @@
- name: LanesInUse
type: size
- default: 0
+ default: maxint
description: >
- The number of PCIe lanes in use by this device.
+ The number of PCIe lanes in use by this device. Deafult value of
+ maxint is to accommodate the situation where the value of this
+ property is not known due to some unknown reason, like hardware
+ failure or link down.
associations:
- name: upstream_pcie_slot