mirror of
https://opendev.org/x/pyghmi
synced 2025-01-28 11:57:34 +00:00
Add custom OEM get remote KVM availability
for Lenovo ThinkServers Change-Id: Ic62d8c4b64eb76f355403ad55ee34c32aa436d82
This commit is contained in:
parent
9b16aba8a8
commit
2b8aa23676
@ -1630,3 +1630,9 @@ class Command(object):
|
||||
"""
|
||||
self.oem_init()
|
||||
return self._oem.set_oem_capping_enabled(enable)
|
||||
|
||||
def get_remote_kvm_available(self):
|
||||
"""Get remote KVM availability
|
||||
"""
|
||||
self.oem_init()
|
||||
return self._oem.get_oem_remote_kvm_available()
|
||||
|
@ -172,3 +172,8 @@ class OEMHandler(object):
|
||||
:param enable: True for enable and False for disable
|
||||
"""
|
||||
return ()
|
||||
|
||||
def get_oem_remote_kvm_available(self):
|
||||
"""Get remote KVM availability
|
||||
"""
|
||||
return False
|
||||
|
@ -355,3 +355,9 @@ class OEMHandler(generic.OEMHandler):
|
||||
self.ipmicmd.xraw_command(netfn=0x3a, command=0x1a,
|
||||
data=(3, statecode))
|
||||
return True
|
||||
|
||||
def get_oem_remote_kvm_available(self):
|
||||
if self.has_tsm:
|
||||
rsp = self.ipmicmd.raw_command(netfn=0x3a, command=0x13)
|
||||
return rsp['data'][0] == 0
|
||||
return False
|
||||
|
Loading…
x
Reference in New Issue
Block a user