Example #1
0
 def get_sensor_reading(self, sensorname):
     if self.is_fpc:
         return nextscale.get_sensor_reading(sensorname, self.ipmicmd,
                                             self._fpc_variant)
     elif self.has_imm:
         return self.immhandler.get_oem_sensor_reading(
             sensorname, self.ipmicmd)
     return ()
Example #2
0
 def get_sensor_data(self):
     if self.is_fpc:
         for name in nextscale.get_sensor_names(self._fpc_variant):
             yield nextscale.get_sensor_reading(name, self.ipmicmd,
                                                self._fpc_variant)
     elif self.has_imm:
         for name in self.immhandler.get_oem_sensor_names(self.ipmicmd):
             yield self.immhandler.get_oem_sensor_reading(
                 name, self.ipmicmd)
Example #3
0
 def get_sensor_reading(self, sensorname):
     if self.is_fpc:
         return nextscale.get_sensor_reading(sensorname, self.ipmicmd)
     return ()
Example #4
0
 def get_sensor_data(self):
     if self.is_fpc:
         for name in nextscale.fpc_sensors:
             yield nextscale.get_sensor_reading(name, self.ipmicmd)
Example #5
0
 def get_sensor_reading(self, sensorname):
     if self.is_fpc:
         return nextscale.get_sensor_reading(sensorname, self.ipmicmd)
     return ()
Example #6
0
 def get_sensor_data(self):
     if self.is_fpc:
         for name in nextscale.get_sensor_names():
             yield nextscale.get_sensor_reading(name, self.ipmicmd)
Example #7
0
 def get_sensor_data(self):
     if self.is_fpc:
         for name in nextscale.get_sensor_names(self._fpc_variant):
             yield nextscale.get_sensor_reading(name, self.ipmicmd,
                                                self._fpc_variant)