mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-23 01:53:28 +00:00
Enable IPMI on SMMv2
This commit is contained in:
parent
a263851614
commit
2ba05fb7b1
@ -82,6 +82,14 @@ class NodeHandler(bmchandler.NodeHandler):
|
||||
|
||||
def _webconfignet(self, wc, nodename):
|
||||
cfg = self.configmanager
|
||||
if 'service:lenovo-smm2' in self.info.get('services', []):
|
||||
# need to enable ipmi for now..
|
||||
wc.request('POST', '/data', 'set=DoCmd(0x06,0x40,0x01,0x82,0x84)')
|
||||
rsp = wc.getresponse()
|
||||
rsp.read()
|
||||
wc.request('POST', '/data', 'set=DoCmd(0x06,0x40,0x01,0x42,0x44)')
|
||||
rsp = wc.getresponse()
|
||||
rsp.read()
|
||||
cd = cfg.get_node_attributes(
|
||||
nodename, ['hardwaremanagement.manager'])
|
||||
smmip = cd.get(nodename, {}).get('hardwaremanagement.manager', {}).get('value', None)
|
||||
|
Loading…
Reference in New Issue
Block a user