docs: def reboot(name, call=None, session=None):
      '''
      Reboot a vm
  
      .. code-block:: bash
  
          salt-cloud -a reboot xenvm01
  
      '''
      if call == 'function':
          raise SaltCloudException(
              'The show_instnce function must be called with -a or --action.'
          )
      if session is None:
          session = _get_session()
      log.info('Starting VM %s', name)
      vm = _get_vm(name, session)
      power_state = session.xenapi.VM.get_power_state(vm)
      if power_state == 'Running':
          task = session.xenapi.Async.VM.clean_reboot(vm)
          _run_async_task(task, session)
          return show_instance(name)
      else:
          return '{} is not running to be rebooted'.format(name)