code: def rename(self, new_name):
          
  
          yield from self._hypervisor.send("nio rename {name} {new_name}".format(name=self._name, new_name=new_name))
  
          log.info("NIO {name} renamed to {new_name}".format(name=self._name, new_name=new_name))
          self._name = new_name
docs: Renames this NIO
  
          :param new_name: new NIO name