ytti/oxidized · error · Oxidized::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/csv.rb:24

        super
      end

      def setup
        if @cfg.empty?
          Oxidized.asetus.user.source.csv.file      = File.join(Config::ROOT, 'router.db')
          Oxidized.asetus.user.source.csv.delimiter = /:/
          Oxidized.asetus.user.source.csv.map.name  = 0
          Oxidized.asetus.user.source.csv.map.model = 1
          Oxidized.asetus.user.source.csv.gpg       = false
          Oxidized.asetus.save :user
          raise NoConfig, "no source csv config, edit #{Oxidized::Config.configfile}"
        end
        require 'gpgme' if @cfg.gpg?

        # 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 = []
        open_file.each_line do |line|
          next if line =~ /^\s*#/

          data = line.chomp.split(@cfg.delimiter, -1)
          next if data.empty?

          # map node parameters
          keys = {}
          @cfg.map.each do |key, position|
            keys[key.to_sym] = node_var_interpolate data[position]
          end
          keys[:model] = map_model keys[:model] if keys.has_key? :model
          keys[:group] = map_group keys[:group] if keys.has_key? :group

View on GitHub (pinned to 687ed4262d)

When it happens

Trigger: Thrown at lib/oxidized/source/csv.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/b3fda453168d3b4f. Report an issue: GitHub.