Add console interface to agent_ipmitool driver

The agent_ipmitool driver (ironic.drivers.agent.AgentAndIPMIToolDriver)
doesn't have a console interface. It should be using IPMITools'
IPMIShellinaboxConsole().

Change-Id: I780ff2df9ed1d673fa5f124efb73ca3ecd945c85
Closes-Bug: #1359466
This commit is contained in:
Ruby Loo 2014-08-21 00:09:39 +00:00
parent 357081e366
commit d511d6ca7a

View File

@ -35,6 +35,7 @@ class AgentAndIPMIToolDriver(base.BaseDriver):
self.power = ipmitool.IPMIPower()
self.deploy = agent.AgentDeploy()
self.management = ipmitool.IPMIManagement()
self.console = ipmitool.IPMIShellinaboxConsole()
self.agent_vendor = agent.AgentVendorInterface()
self.mapping = {'heartbeat': self.agent_vendor}
self.dl_mapping = {'lookup': self.agent_vendor}