2
0
mirror of https://opendev.org/x/pyghmi synced 2025-01-27 19:37:44 +00:00

Allow SMM downgrade

Call API to allow downgrades when going to apply firmware.

Change-Id: I7953929ef5cb2aa410feeb7dba9d679d5c8ced6b
This commit is contained in:
Jarrod Johnson 2018-12-06 15:10:32 -05:00
parent 3bf7fc543f
commit 4f74d4c4f9

View File

@ -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()