code: def shutdown(vm_):
      '''
      Send a soft shutdown signal to the named vm
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' virt.shutdown <vm name>
      '''
      with _get_xapi_session() as xapi:
          vm_uuid = _get_label_uuid(xapi, 'VM', vm_)
          if vm_uuid is False:
              return False
          try:
              xapi.VM.clean_shutdown(vm_uuid)
              return True
          except Exception:
              return Falsf shutdown(vm_):
      '''
      Send a soft shutdown signal to the named vm
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' virt.shutdown <vm name>
      '''
      with _get_xapi_session() as xapi:
          vm_uuid = _get_label_uuid(xapi, 'VM', vm_)
          if vm_uuid is False:
              return False
          try:
              xapi.VM.clean_shutdown(vm_uuid)
              return True
          except Exception:
              return False
docs: Send a soft shutdown signal to the named vm
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' virt.shutdown <vm name>