示例#1
0
 def __init__(self, context, config):
     super(IpmiPxeTarget, self).__init__(context, config)
     self.proc = self.context.spawn(self.config.connection_command,
                                    timeout=1200)
     if self.config.ecmeip is None:
         msg = "The ecmeip address is not set for this target"
         logging.error(msg)
         raise CriticalError(msg)
     self.bootcontrol = IpmiPxeBoot(context, self.config.ecmeip,
                                    self.config.ipmi_power_sleep,
                                    self.config.ipmi_power_retries)