code: def set_name(self, new_name):
          
  
          yield from self._hypervisor.send('ethsw rename "{name}" "{new_name}"'.format(name=self._name, new_name=new_name))
          log.info('Ethernet switch "{name}" [{id}]: renamed to "{new_name}"'.format(name=self._name,
                                                                                     id=self._id,
                                                                                     new_name=new_name))
          self._name = new_name
docs: Renames this Ethernet switch.
  
          :param new_name: New name for this switch