From 4f74d4c4f95bb3a02dbcb5ba7180b44d4791c613 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 6 Dec 2018 15:10:32 -0500 Subject: [PATCH] Allow SMM downgrade Call API to allow downgrades when going to apply firmware. Change-Id: I7953929ef5cb2aa410feeb7dba9d679d5c8ced6b --- pyghmi/ipmi/oem/lenovo/nextscale.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyghmi/ipmi/oem/lenovo/nextscale.py b/pyghmi/ipmi/oem/lenovo/nextscale.py index 80fc0746..a167f242 100644 --- a/pyghmi/ipmi/oem/lenovo/nextscale.py +++ b/pyghmi/ipmi/oem/lenovo/nextscale.py @@ -422,6 +422,8 @@ class SMMClient(object): if rsp.status != 200: raise Exception('Error validating firmware') progress({'phase': 'apply', 'progress': 0.0}) + self.wc.request('POST', '/data', 'set=securityrollback:1') + self.wc.getresponse().read() self.wc.request('POST', '/data', 'set=fwUpdate:1') rsp = self.wc.getresponse() rsp.read()