From 8a48f91c35bad58f3f1b8a8c12a3460fcaecde77 Mon Sep 17 00:00:00 2001 From: luyf5 Date: Sat, 18 Sep 2021 14:50:32 +0800 Subject: [PATCH] Change PSU Redundancy mode event data Changes are from: https://gitlab.icelab.lenovo.com/pygcon/pyghmi/commit/a65ff374914fe3f94410fa49cfe9f7528dbabcab (70395)[pyghmi]add PSU Redundancy sensor type and change PSU Redundancy mode event data Change-Id: I48d0feb79fb40a7ea17b6109a16a4291cad8db97 --- pyghmi/ipmi/events.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyghmi/ipmi/events.py b/pyghmi/ipmi/events.py index 07084708..ea653fa4 100644 --- a/pyghmi/ipmi/events.py +++ b/pyghmi/ipmi/events.py @@ -205,6 +205,8 @@ def decode_eventdata(sensor_type, offset, eventdata, sdr): elif sensor_type == 8 and offset == 6: # PSU cfg error errtype = eventdata[2] & 0b1111 return psucfg_errors.get(errtype, 'Unknown') + elif sensor_type == 0xC6: + return 'PSU Redundancy' elif sensor_type == 0xc and offset == 8: # Memory spare return 'Module {0}'.format(eventdata[2]) elif sensor_type == 0xf: