From 114e9089472585b8f58ac6479f30698343a47c4a Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 12 Nov 2019 09:39:04 -0500 Subject: [PATCH] Try to deactive SOL on logout If we have an sol_handler, request SOL deactivation on the way out. This works around issues on select codebases where IPMI stack state gets corrupt if a payload is active during ipmi logout. Change-Id: Ie1bcada6206c340bb954e5d5c8a99678e1d3162c --- pyghmi/ipmi/private/session.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyghmi/ipmi/private/session.py b/pyghmi/ipmi/private/session.py index 7745c131..54c326fc 100644 --- a/pyghmi/ipmi/private/session.py +++ b/pyghmi/ipmi/private/session.py @@ -1775,6 +1775,8 @@ class Session(object): return {'success': True} if self.cleaningup: self.nowait = True + if self.sol_handler: + self.raw_command(netfn=6, command=0x49, data=(1, 1, 0, 0, 0, 0)) self.raw_command(command=0x3c, netfn=6, data=struct.unpack("4B",