Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hpe: Remove redundant calls to enclosurechassis endpoint
On mono-node HPE chassis, the current code is calling the enclosurechassis endpoint for each monitoring loop. This call is perfectly useless since the enclosurechassis does not exists. This patch is about adding a is_multinode_chassis() function to be cached that try this endpoint and get a constant answer. Regarding this cached status, a real read of the enclosurechassis is done for multinode chassis only. Tested on DL380, ilorest 4.9.0.0, Model: 'iLO 5' FW: 'iLO 5 v3.03' Tested on XL225n (Apollo 2000 Gen10), iloreset 4.9.0.0, Model: 'iLO 5' FW: 'iLO 5 v3.08' Tested on DL340Gen12, ilorest 4.9.0.0, Model: 'iLO 6' FW: 'iLO 6 v1.62' Signed-off-by: Erwan Velu <[email protected]>
- Loading branch information