示例#1
0
 def __init__(self):
     if not importutils.try_import('pyghmi'):
         raise exception.DriverLoadError(
             driver=self.__class__.__name__,
             reason=_("Unable to import pyghmi library"))
     self.power = ipminative.NativeIPMIPower()
     self.console = ipminative.NativeIPMIShellinaboxConsole()
     self.boot = pxe.PXEBoot()
     self.deploy = iscsi_deploy.ISCSIDeploy()
     self.management = ipminative.NativeIPMIManagement()
     self.iscsi_vendor = iscsi_deploy.VendorPassthru()
     self.ipminative_vendor = ipminative.VendorPassthru()
     self.mapping = {
         'send_raw': self.ipminative_vendor,
         'bmc_reset': self.ipminative_vendor,
         'heartbeat': self.iscsi_vendor,
         'pass_bootloader_install_info': self.iscsi_vendor,
         'pass_deploy_info': self.iscsi_vendor,
     }
     self.driver_passthru_mapping = {'lookup': self.iscsi_vendor}
     self.vendor = utils.MixinVendorInterface(self.mapping,
                                              self.driver_passthru_mapping)
     self.inspect = inspector.Inspector.create_if_enabled(
         'PXEAndIPMINativeDriver')
     self.raid = agent.AgentRAID()
示例#2
0
 def __init__(self):
     if not importutils.try_import('pyghmi'):
         raise exception.DriverLoadError(
             driver=self.__class__.__name__,
             reason=_("Unable to import pyghmi IPMI library"))
     self.power = ipminative.NativeIPMIPower()
     self.console = ipminative.NativeIPMIShellinaboxConsole()
     self.deploy = fake.FakeDeploy()
     self.management = ipminative.NativeIPMIManagement()
示例#3
0
 def __init__(self):
     self.power = ipminative.NativeIPMIPower()
     self.boot = pxe.PXEBoot()
     self.deploy = agent.AgentDeploy()
     self.management = ipminative.NativeIPMIManagement()
     self.console = ipminative.NativeIPMIShellinaboxConsole()
     self.vendor = ipminative.VendorPassthru()
     self.raid = agent.AgentRAID()
     self.inspect = inspector.Inspector.create_if_enabled(
         'AgentAndIPMINativeDriver')
示例#4
0
 def __init__(self):
     self.power = ipminative.NativeIPMIPower()
     self.deploy = pxe.PXEDeploy()
     self.pxe_vendor = pxe.VendorPassthru()
     self.ipmi_vendor = ipminative.VendorPassthru()
     self.mapping = {
         'pass_deploy_info': self.pxe_vendor,
         'set_boot_device': self.ipmi_vendor
     }
     self.vendor = utils.MixinVendorInterface(self.mapping)
示例#5
0
 def __init__(self):
     if not importutils.try_import('pyghmi'):
         raise exception.DriverLoadError(
             driver=self.__class__.__name__,
             reason=_("Unable to import pyghmi library"))
     self.power = ipminative.NativeIPMIPower()
     self.console = ipminative.NativeIPMIShellinaboxConsole()
     self.deploy = pxe.PXEDeploy()
     self.management = ipminative.NativeIPMIManagement()
     self.vendor = pxe.VendorPassthru()
     self.inspect = inspector.Inspector.create_if_enabled(
         'PXEAndIPMINativeDriver')
示例#6
0
文件: pxe.py 项目: JoProvost/ironic
 def __init__(self):
     if not importutils.try_import('pyghmi'):
         raise exception.DriverLoadError(
                 driver=self.__class__.__name__,
                 reason=_("Unable to import pyghmi library"))
     self.power = ipminative.NativeIPMIPower()
     self.deploy = pxe.PXEDeploy()
     self.pxe_vendor = pxe.VendorPassthru()
     self.ipmi_vendor = ipminative.VendorPassthru()
     self.mapping = {'pass_deploy_info': self.pxe_vendor,
                     'set_boot_device': self.ipmi_vendor}
     self.vendor = utils.MixinVendorInterface(self.mapping)
 def __init__(self):
     self.power = ipminative.NativeIPMIPower()
     self.boot = pxe.PXEBoot()
     self.deploy = agent.AgentDeploy()
     self.management = ipminative.NativeIPMIManagement()
     self.console = ipminative.NativeIPMIShellinaboxConsole()
     self.agent_vendor = agent.AgentVendorInterface()
     self.ipminative_vendor = ipminative.VendorPassthru()
     self.mapping = {
         'send_raw': self.ipminative_vendor,
         'bmc_reset': self.ipminative_vendor,
         'heartbeat': self.agent_vendor,
     }
     self.driver_passthru_mapping = {'lookup': self.agent_vendor}
     self.vendor = utils.MixinVendorInterface(self.mapping,
                                              self.driver_passthru_mapping)
     self.raid = agent.AgentRAID()
     self.inspect = inspector.Inspector.create_if_enabled(
         'AgentAndIPMINativeDriver')
示例#8
0
文件: fake.py 项目: mshabdiz/ironic
 def __init__(self):
     self.power = ipminative.NativeIPMIPower()
     self.deploy = fake.FakeDeploy()
     self.vendor = ipminative.VendorPassthru()
示例#9
0
 def __init__(self):
     self.power = ipminative.NativeIPMIPower()
     self.deploy = pxe.PXEDeploy()
     self.rescue = self.deploy
     self.vendor = pxe.VendorPassthru()
示例#10
0
文件: agent.py 项目: johalee/Ironic
 def __init__(self):
     self.power = ipminative.NativeIPMIPower()
     self.deploy = agent.AgentDeploy()
     self.management = ipminative.NativeIPMIManagement()
     self.console = ipminative.NativeIPMIShellinaboxConsole()
     self.vendor = agent.AgentVendorInterface()