code: def set_idlesleep(self, idlesleep):
          
  
          is_running = yield from self.is_running()
          if is_running:  # router is running
              yield from self._hypervisor.send('vm set_idle_sleep_time "{name}" 0 {idlesleep}'.format(name=self._name,
                                                                                                      idlesleep=idlesleep))
  
          log.info('Router "{name}" [{id}]: idlesleep updated from {old_idlesleep} to {new_idlesleep}'.format(name=self._name,
                                                                                                              id=self._id,
                                                                                                              old_idlesleep=self._idlesleep,
                                                                                                              new_idlesleep=idlesleep))
  
          self._idlesleep = idlesleep
docs: Sets CPU idle sleep time value.
  
          :param idlesleep: idle sleep value (integer)