From 8c63ce392e79f99aa7a3709f527c07e3ab9fd655 Mon Sep 17 00:00:00 2001 From: luyf5 Date: Sat, 18 Sep 2021 15:08:58 +0800 Subject: [PATCH] configure the destination type to PET trap first. Changes are from: https://gitlab.icelab.lenovo.com/pygcon/pyghmi/commit/2fddbb49fca2b24a7fbc5a3a715f7c5e7121074e (101993) [trap_register] TSMC failed to configure the trap destination on sd350 Configure the destination type to PET trap first, in case the type is email. In the case of email, TMM will reject to accept the ip as the destination. Change-Id: Id2c17c78597c6982cb0cf57b9b45eb06da19ea68 --- pyghmi/ipmi/command.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyghmi/ipmi/command.py b/pyghmi/ipmi/command.py index 6709db1c..7b798761 100644 --- a/pyghmi/ipmi/command.py +++ b/pyghmi/ipmi/command.py @@ -1226,6 +1226,8 @@ class Command(object): currtype[1] |= 0b10000000 else: currtype[1] &= 0b1111111 + # set PET trap destination + currtype[1] &= 0b1111000 if acknowledge_timeout is not None: currtype[2] = acknowledge_timeout if retries is not None: