Exemplo n.º 1
0
    def __init__(self):
        ChassisBase.__init__(self)

        self._eeprom = Eeprom()

        for index in range(Sfp.port_start(), Sfp.port_end() + 1):
            sfp_node = Sfp(index)
            self._sfp_list.append(sfp_node)

        for i in range(1, Psu.get_num_psus() + 1):
            psu = Psu(i)
            self._psu_list.append(psu)

        self._fan_drawer_list = fan_drawer_list_get()
        self._thermal_list = thermal_list_get()
Exemplo n.º 2
0
 def _thermal_list(self):
     if self.__thermals is None:
         self.__thermals = thermal_list_get()
     return self.__thermals