2
0
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:
Juliana Motira
2015-08-27 08:41:54 -03:00
parent 41db3b8866
commit 9d7782692a

View File

@@ -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,