mirror of
https://opendev.org/x/pyghmi
synced 2026-04-01 07:43:39 +00:00
Add reset to defaults to tsma
Change-Id: I43834f8126e8e6f7e3bdb219dc299d6d597cfd64
This commit is contained in:
@@ -1233,6 +1233,8 @@ class OEMHandler(generic.OEMHandler):
|
||||
return self.immhandler.clear_bmc_configuration()
|
||||
elif self.is_fpc:
|
||||
return self.smmhandler.clear_bmc_configuration()
|
||||
elif self.has_tsma:
|
||||
return self.tsmahandler.clear_bmc_configuration()
|
||||
return super(OEMHandler, self).clear_system_configuration()
|
||||
|
||||
def clear_system_configuration(self):
|
||||
|
||||
@@ -114,6 +114,27 @@ class TsmHandler(generic.OEMHandler):
|
||||
self.tsm = webclient.thehost
|
||||
self._certverify = webclient._certverify
|
||||
|
||||
def clear_bmc_configuration(self):
|
||||
wc = self.wc
|
||||
rsp, status = wc.grab_json_response_with_status(
|
||||
'/api/maintenance/restore_defaults',
|
||||
{"id": 1,
|
||||
"sdr": 0,
|
||||
"fru": 1,
|
||||
"sel": 1,
|
||||
"ipmi": 1,
|
||||
"network": 1,
|
||||
"ntp": 1,
|
||||
"snmp": 1,
|
||||
"ssh": 1,
|
||||
"kvm": 1,
|
||||
"authentication": 1,
|
||||
"syslog": 0,
|
||||
"web": 1,
|
||||
"extlog": 0,
|
||||
"redfish": 1},
|
||||
method='PUT')
|
||||
|
||||
def get_bmc_configuration(self):
|
||||
wc = self.wc
|
||||
rsp, status = wc.grab_json_response_with_status(
|
||||
|
||||
Reference in New Issue
Block a user