4458N/A# vim: tabstop=4 shiftwidth=4 softtabstop=4
4458N/A#
4458N/A# Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
4458N/A#
4458N/A# Licensed under the Apache License, Version 2.0 (the "License"); you may
4458N/A# not use this file except in compliance with the License. You may obtain
4458N/A# a copy of the License at
4458N/A#
4458N/A# http://www.apache.org/licenses/LICENSE-2.0
4458N/A#
4458N/A# Unless required by applicable law or agreed to in writing, software
4458N/A# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
4458N/A# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
4458N/A# License for the specific language governing permissions and limitations
4458N/A# under the License.
4458N/A"""
4458N/ASolaris Driver and supporting meta-classes.
4458N/A"""
6853N/Afrom oslo_log import log as logging
4458N/A
4458N/Afrom ironic.drivers import base
4458N/Afrom ironic.drivers.modules import ipmitool
4458N/Afrom ironic.drivers.modules import solaris_ipmitool
4458N/A
4458N/ALOG = logging.getLogger(__name__)
4458N/A
4458N/A
4458N/Aclass SolarisAndIPMIToolDriver(base.BaseDriver):
4458N/A """Solaris + IPMITool driver.
4458N/A
4458N/A This driver implements the 'core' functionality, combining
4458N/A :class:'ironic.drivers.ipmi.IPMI' for power on/off and reboot with
4458N/A :class:'ironic.drivers.solaris for image deployment. Implementations are in
4458N/A those respective classes; this class is merely the glue between them.
4458N/A """
4458N/A
4458N/A def __init__(self):
4458N/A LOG.debug(_("Loading Solaris And IPMI Tool Driver"))
4458N/A self.power = ipmitool.IPMIPower()
4458N/A self.deploy = solaris_ipmitool.SolarisDeploy()
4458N/A self.console = None # Not implemented yet
4458N/A self.rescue = None # Not implemented yet
4458N/A self.management = solaris_ipmitool.SolarisManagement()
5403N/A self.inspect = solaris_ipmitool.SolarisInspect()
4458N/A self.vendor = None # No VendorSpecific methods yet