code: def _parse_settings_source(opts, iface_type, enabled, iface):
      '''
      Filters given options and outputs valid settings for a
      network interface.
      '''
      adapters = salt.utils.odict.OrderedDict()
      adapters[iface] = salt.utils.odict.OrderedDict()
  
      adapters[iface]['type'] = iface_type
  
      adapters[iface]['data'] = salt.utils.odict.OrderedDict()
      iface_data = adapters[iface]['data']
      iface_data['sources'] = [opts['source']]
  
      return adapterf _parse_settings_source(opts, iface_type, enabled, iface):
      '''
      Filters given options and outputs valid settings for a
      network interface.
      '''
      adapters = salt.utils.odict.OrderedDict()
      adapters[iface] = salt.utils.odict.OrderedDict()
  
      adapters[iface]['type'] = iface_type
  
      adapters[iface]['data'] = salt.utils.odict.OrderedDict()
      iface_data = adapters[iface]['data']
      iface_data['sources'] = [opts['source']]
  
      return adapters
docs: Filters given options and outputs valid settings for a
      network interface.