configurations: ventura: fix PRUXLeakPortX display via redfish
1. When removing PRU1LeakPort1, the result of redfish, all
PRUXLeakPortX will disappear.
2. Add OR between each PRUXLeakPortX.
Test:
wIT_GEAR_RPU_LINK_PRSNT_N_R : 1
wIT_GEAR_RPU_LINK_PRSNT_SPARE_N_R : 0
wIT_GEAR_RPU_2_LINK_PRSNT_N_R : 0
wIT_GEAR_RPU_2_LINK_PRSNT_SPARE_N_R : 0
~# busctl tree xyz.openbmc_project.gpiopresence
└─ /xyz
└─ /xyz/openbmc_project
└─ /xyz/openbmc_project/GPIODeviceDetected
├─ /xyz/openbmc_project/GPIODeviceDetected/RPU1LeakPort2
├─ /xyz/openbmc_project/GPIODeviceDetected/RPU2LeakPort1
├─ /xyz/openbmc_project/GPIODeviceDetected/RPU2LeakPort2
~# curl -s -k -u root:0penBmc -X GET \
https://localhost/redfish/v1/Cables | grep odata.id
"@odata.id": "/redfish/v1/Cables",
"@odata.id": "/redfish/v1/Cables/RPU1LeakPort1"
"@odata.id": "/redfish/v1/Cables/RPU1LeakPort2"
"@odata.id": "/redfish/v1/Cables/RPU2LeakPort1"
Change-Id: If6cdcc499fe1723442886f1d3c2bc0feb89d9811
Signed-off-by: Sue Wang <sue.wang@quantatw.com>
diff --git a/configurations/meta/ventura/ventura_cable.json b/configurations/meta/ventura/ventura_cable.json
index e95d37a..c8f4fb3 100644
--- a/configurations/meta/ventura/ventura_cable.json
+++ b/configurations/meta/ventura/ventura_cable.json
@@ -65,8 +65,11 @@
"Name": "$Name",
"Probe": [
"xyz.openbmc_project.Inventory.Source.DevicePresence({'Name': '^RPU1LeakPort1$'})",
+ "OR",
"xyz.openbmc_project.Inventory.Source.DevicePresence({'Name': '^RPU1LeakPort2$'})",
+ "OR",
"xyz.openbmc_project.Inventory.Source.DevicePresence({'Name': '^RPU2LeakPort1$'})",
+ "OR",
"xyz.openbmc_project.Inventory.Source.DevicePresence({'Name': '^RPU2LeakPort2$'})"
],
"Type": "Cable",