code: def set_mmap(self, mmap):
          
  
          if mmap:
              flag = 1
          else:
              flag = 0
  
          yield from self._hypervisor.send('vm set_ram_mmap "{name}" {mmap}'.format(name=self._name, mmap=flag))
  
          if mmap:
              log.info('Router "{name}" [{id}]: mmap enabled'.format(name=self._name, id=self._id))
          else:
              log.info('Router "{name}" [{id}]: mmap disabled'.format(name=self._name, id=self._id))
          self._mmap = mmap
docs: Enable/Disable use of a mapped file to simulate router memory.
          By default, a mapped file is used. This is a bit slower, but requires less memory.
  
          :param mmap: activate/deactivate mmap (boolean)