code: def is_enabled(iface):
      '''
      Returns ``True`` if interface is enabled, otherwise ``False``
  
      CLI Example:
  
      .. code-block:: bash
  
          salt -G 'os_family:Windows' ip.is_enabled 'Local Area Connection #2'
      '''
      cmd = ['netsh', 'interface', 'show', 'interface', 'name={0}'.format(iface)]
      iface_found = False
      for line in __salt__['cmd.run'](cmd, python_shell=False).splitlines():
          if 'Connect state:' in line:
              iface_found = True
              return line.split()[-1] == 'Connected'
      if not iface_found:
          raise CommandExecutionError(
              'Interface \'{0}\' not found'.format(iface)
          )
      return Falsf is_enabled(iface):
      '''
      Returns ``True`` if interface is enabled, otherwise ``False``
  
      CLI Example:
  
      .. code-block:: bash
  
          salt -G 'os_family:Windows' ip.is_enabled 'Local Area Connection #2'
      '''
      cmd = ['netsh', 'interface', 'show', 'interface', 'name={0}'.format(iface)]
      iface_found = False
      for line in __salt__['cmd.run'](cmd, python_shell=False).splitlines():
          if 'Connect state:' in line:
              iface_found = True
              return line.split()[-1] == 'Connected'
      if not iface_found:
          raise CommandExecutionError(
              'Interface \'{0}\' not found'.format(iface)
          )
      return False
docs: Returns ``True`` if interface is enabled, otherwise ``False``
  
      CLI Example:
  
      .. code-block:: bash
  
          salt -G 'os_family:Windows' ip.is_enabled 'Local Area Connection #2'