Example #1
0
    def __init__(self, fantray_index):

        FanDrawerBase.__init__(self)
        # FanTray is 1-based in DellEMC platforms
        self.fantrayindex = fantray_index + 1
        for i in range(Z9332F_FANS_PER_FANTRAY):
            self._fan_list.append(Fan(fantray_index, i))
Example #2
0
    def __init__(self, fantray_index):

        FanDrawerBase.__init__(self)
        # FanTray is 1-based in DellEMC platforms
        self.fantrayindex = fantray_index + 1
        for i in range(Z9432F_FANS_PER_FANTRAY):
            self._fan_list.append(Fan(fantray_index, i))
        self.fru = IpmiFru(self.FAN_FRU_MAPPING[self.fantrayindex])
Example #3
0
    def __init__(self, fantray_index):
        FanDrawerBase.__init__(self)
        # FanTray is 1-based in DellEMC platforms
        self.index = fantray_index + 1
        self.presence_reg = "fan{}_fault".format(2 * self.index - 1)
        self.serialno_reg = "fan{}_serialno".format(2 * self.index - 1)

        self._fan_list.append(Fan(self.index, dependency=self))
Example #4
0
    def __init__(self, fantray_index):

        FanDrawerBase.__init__(self)
        # FanTray is 1-based in DellEMC platforms
        self.fantray_led_reg = "fan{}_led".format(fantray_index)
        self.fantrayindex = fantray_index + 1
        for i in range(N3248TE_FANS_PER_FANTRAY):
            self._fan_list.append(Fan(fantray_index, i))
    def __init__(self, fantray_index):
        FanDrawerBase.__init__(self)
        # FanTray is 1-based in DellEMC platforms
        self.index = fantray_index + 1
        self.eeprom = Eeprom(is_fantray=True, fantray_index=self.index)
        self.fantray_presence_reg = "fan_prs"
        self.fantray_led_reg = "fan{}_led".format(self.index - 1)
        self.supported_led_color = ['off', 'green', 'amber']

        for i in range(1, MAX_S6000_FANS_PER_FANTRAY + 1):
            self._fan_list.append(
                Fan(fantray_index=self.index, fan_index=i, dependency=self))
    def __init__(self, tray_idx, pddf_data=None, pddf_plugin_data=None):
        FanDrawerBase.__init__(self)
        if not pddf_data or not pddf_plugin_data:
            raise ValueError('PDDF JSON data error')

        self.pddf_obj = pddf_data
        self.plugin_data = pddf_plugin_data
        self.platform = self.pddf_obj.get_platform()

        if tray_idx < 0 or tray_idx >= self.platform['num_fantrays']:
            print("Invalid fantray index %d\n" % tray_idx)
            return

        self.fantray_index = tray_idx + 1
        for j in range(self.platform['num_fans_pertray']):
            # Fan index is 0-based for the init call
            self._fan_list.append(
                Fan(tray_idx, j, self.pddf_obj, self.plugin_data))
Example #7
0
    def __init__(self, fantray_index):

        FanDrawerBase.__init__(self)
        self.fantrayindex = fantray_index
        for i in range(CENTEC_FANS_PER_FANTRAY):
            self._fan_list.append(Fan(fantray_index, i))
Example #8
0
 def __init__(self, parent, slot):
     FanDrawerBase.__init__(self)
     self._parent = parent
     self._fan_list = [Fan(self, fan) for fan in slot.getFans()]
     self._slot = slot
     self._hotswappable = True
Example #9
0
 def __init__(self, fan):
     FanDrawerBase.__init__(self)
     # XXX: temporary 1:1 fan to fan_drawer mapping
     self._fan_list = [fan]
Example #10
0
    def __init__(self, fantray_index):

        FanDrawerBase.__init__(self)
        # FanTray is 1-based in DellEMC platforms
        self.fantrayindex = fantray_index + 1
        self._fan_list.append(Fan(fantray_index))
Example #11
0
    def __init__(self, index, fan_list):
        FanDrawerBase.__init__(self)

        self._fan_list = fan_list
        self._index = index + 1
Example #12
0
 def __init__(self, index):
     FanDrawerBase.__init__(self)
     self.index = index + 1
Example #13
0
    def __init__(self, fantray_index):

        FanDrawerBase.__init__(self)
        # FanTray is 0-based in platforms
        self.fantrayindex = fantray_index
        self.__initialize_fan_drawer()
Example #14
0
 def __init__(self, fantray_index):
     FanDrawerBase.__init__(self)
     self.fantrayindex = fantray_index
     self._fan_list.append(Fan(fantray_index))
 def __init__(self, fantray_index):
     FanDrawerBase.__init__(self)
     self._index = fantray_index + 1
     self._init_fan(fantray_index)