ytti/oxidized · error · InvalidConfig
map/name is a mandatory source attribute, edit #{Oxidized::C
Error message
map/name is a mandatory source attribute, edit #{Oxidized::Config.configfile} What it means
Error "map/name is a mandatory source attribute, edit #{Oxidized::Config.configfile}" thrown in ytti/oxidized.
Source
Thrown at lib/oxidized/source/sql.rb:24
rescue LoadError
raise OxidizedError, 'sequel not found: sudo gem install sequel'
end
def setup
if @cfg.empty?
Oxidized.asetus.user.source.sql.adapter = 'sqlite'
Oxidized.asetus.user.source.sql.database = File.join(Config::ROOT, 'sqlite.db')
Oxidized.asetus.user.source.sql.table = 'devices'
Oxidized.asetus.user.source.sql.map.name = 'name'
Oxidized.asetus.user.source.sql.map.model = 'rancid'
Oxidized.asetus.save :user
raise NoConfig, "No source sql config, edit #{Oxidized::Config.configfile}"
end
# map.name is mandatory
return if @cfg.map.has_key?('name')
raise InvalidConfig, "map/name is a mandatory source attribute, edit #{Oxidized::Config.configfile}"
end
def load(node_want = nil)
nodes = []
db = connect
query = db[@cfg.table.to_sym]
query = query.with_sql(@cfg.query) if @cfg.query?
query = query.where(@cfg.map.name.to_sym => node_want) if node_want
query.each do |node|
# map node parameters
keys = {}
@cfg.map.each { |key, sql_column| keys[key.to_sym] = node_var_interpolate node[sql_column.to_sym] }
keys[:model] = map_model keys[:model] if keys.has_key? :model
keys[:group] = map_group keys[:group] if keys.has_key? :group
# map node specific varsView on GitHub (pinned to 687ed4262d)
When it happens
Trigger: Thrown at lib/oxidized/source/sql.rb:24 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of ytti/oxidized@687ed4262d (2026-08-23).
Data as JSON: /api/errors/339b66be5ef80bde.
Report an issue: GitHub.