mirror of
https://opendev.org/x/pyghmi
synced 2026-05-02 14:37:47 +00:00
Add reset bmc command
Change-Id: I3d027303667ade4ad3790c5c614ea01f2ead6e39
This commit is contained in:
@@ -267,6 +267,13 @@ class Command(object):
|
||||
else:
|
||||
return lastresponse
|
||||
|
||||
def reset_bmc(self):
|
||||
"""Do a cold reset in BMC
|
||||
"""
|
||||
response = self.raw_command(netfn=6, command=2)
|
||||
if 'error' in response:
|
||||
raise exc.IpmiException(response['error'])
|
||||
|
||||
def set_bootdev(self,
|
||||
bootdev,
|
||||
persist=False,
|
||||
|
||||
Reference in New Issue
Block a user