def _parse_settings_source(opts, iface_type, enabled, iface):
 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

def _parse_settings_source ( opts , iface_type , enabled , iface ) : 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
filters given options and outputs valid settings for a network interface .