From 66f50082c2c6d44ce86026d06a0147ba4c357138 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 12 May 2016 15:10:49 -0400 Subject: [PATCH] Add node status checks to FPC sensors In nextscale, the FPC has some potentially useful data about node state with explanation. Model those as sensors that may appear in nodehealth Change-Id: I9dd64740c4934d53d577defe9f3cc7b7a61dc499 --- pyghmi/ipmi/oem/lenovo/nextscale.py | 33 ++++++++++++++++++++++++++--- 1 file changed, 30 insertions(+), 3 deletions(-) diff --git a/pyghmi/ipmi/oem/lenovo/nextscale.py b/pyghmi/ipmi/oem/lenovo/nextscale.py index 8677c333..28ba747e 100644 --- a/pyghmi/ipmi/oem/lenovo/nextscale.py +++ b/pyghmi/ipmi/oem/lenovo/nextscale.py @@ -14,6 +14,7 @@ # See the License for the specific language governing permissions and # limitations under the License. +import pyghmi.constants as pygconst import pyghmi.ipmi.sdr as sdr import struct @@ -43,6 +44,20 @@ def fpc_read_psu_fan(ipmicmd, number): return struct.unpack_from('