def get_backend_configuration(backend_name):
 config_stanzas = CONF.list_all_sections()
 if (backend_name not in config_stanzas):
  msg = _('Could not find backend stanza %(backend_name)s in configuration. Available stanzas are %(stanzas)s')
  params = {'stanzas': config_stanzas, 'backend_name': backend_name}
  raise exception.ConfigNotFound(message=(msg % params))
 config = configuration.Configuration(driver.volume_opts, config_group=backend_name)
 config.append_config_values(na_opts.netapp_proxy_opts)
 config.append_config_values(na_opts.netapp_connection_opts)
 config.append_config_values(na_opts.netapp_transport_opts)
 config.append_config_values(na_opts.netapp_basicauth_opts)
 config.append_config_values(na_opts.netapp_provisioning_opts)
 config.append_config_values(na_opts.netapp_cluster_opts)
 config.append_config_values(na_opts.netapp_san_opts)
 config.append_config_values(na_opts.netapp_replication_opts)
 return config

def get_backend_configuration ( backend_name ) : config_stanzas = CONF . list_all_sections ( ) if ( backend_name not in config_stanzas ) : msg = _ ( 'Could not find backend stanza %(backend_name)s in configuration. Available stanzas are %(stanzas)s' ) params = { 'stanzas' : config_stanzas , 'backend_name' : backend_name } raise exception . ConfigNotFound ( message = ( msg % params ) ) config = configuration . Configuration ( driver . volume_opts , config_group = backend_name ) config . append_config_values ( na_opts . netapp_proxy_opts ) config . append_config_values ( na_opts . netapp_connection_opts ) config . append_config_values ( na_opts . netapp_transport_opts ) config . append_config_values ( na_opts . netapp_basicauth_opts ) config . append_config_values ( na_opts . netapp_provisioning_opts ) config . append_config_values ( na_opts . netapp_cluster_opts ) config . append_config_values ( na_opts . netapp_san_opts ) config . append_config_values ( na_opts . netapp_replication_opts ) return config
get a cdot configuration object for a specific backend .