code: def reset(all=False, vms=False, switches=False):
      '''
      Reset the running state of VMM or a subsystem.
  
      all:
          Reset the running state.
  
      switches:
          Reset the configured switches.
  
      vms:
          Reset and terminate all VMs.
  
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' vmctl.reset all=True
      '''
      ret = False
      cmd = ['vmctl', 'reset']
  
      if all:
          cmd.append('all')
      elif vms:
          cmd.append('vms')
      elif switches:
          cmd.append('switches')
  
      result = __salt__['cmd.run_all'](cmd,
                                       output_loglevel='trace',
                                       python_shell=False)
      if result['retcode'] == 0:
          ret = True
      else:
          raise CommandExecutionError(
              'Problem encountered running vmctl',
              info={'errors': [result['stderr']], 'changes': ret}
          )
  
      return ref reset(all=False, vms=False, switches=False):
      '''
      Reset the running state of VMM or a subsystem.
  
      all:
          Reset the running state.
  
      switches:
          Reset the configured switches.
  
      vms:
          Reset and terminate all VMs.
  
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' vmctl.reset all=True
      '''
      ret = False
      cmd = ['vmctl', 'reset']
  
      if all:
          cmd.append('all')
      elif vms:
          cmd.append('vms')
      elif switches:
          cmd.append('switches')
  
      result = __salt__['cmd.run_all'](cmd,
                                       output_loglevel='trace',
                                       python_shell=False)
      if result['retcode'] == 0:
          ret = True
      else:
          raise CommandExecutionError(
              'Problem encountered running vmctl',
              info={'errors': [result['stderr']], 'changes': ret}
          )
  
      return ret
docs: Reset the running state of VMM or a subsystem.
  
      all:
          Reset the running state.
  
      switches:
          Reset the configured switches.
  
      vms:
          Reset and terminate all VMs.
  
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' vmctl.reset all=True