code: def stop(self):
          
  
          status = yield from self.get_status()
          if status != "inactive":
              try:
                  yield from self._hypervisor.send('vm stop "{name}"'.format(name=self._name))
              except DynamipsError as e:
                  log.warn("Could not stop {}: {}".format(self._name, e))
              self.status = "stopped"
              log.info('Router "{name}" [{id}] has been stopped'.format(name=self._name, id=self._id))
          if self._memory_watcher:
              self._memory_watcher.close()
              self._memory_watcher = None
          yield from self.save_configs()
docs: Stops this router.