code: def reboot(self, devices):
          
          for device in devices:
              self.logger.info('Rebooting: %s', device.id)
              try:
                  device.reboot()
              except packet.baseapi.Error:
                  raise PacketManagerException('Unable to reboot instance "{}"'.format(device.id))
docs: Reboot one or more devices.