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/jsonfile.rb:25

        super
      end

      def setup
        if @cfg.empty?
          Oxidized.asetus.user.source.jsonfile.file      = File.join(Oxidized::Config::ROOT,
                                                                     'router.json')
          Oxidized.asetus.user.source.jsonfile.map.name  = "name"
          Oxidized.asetus.user.source.jsonfile.map.model = "model"
          Oxidized.asetus.user.source.jsonfile.gpg       = false
          Oxidized.asetus.save :user
          raise NoConfig, "No source json 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(*)
        data = JSON.parse(open_file.read)
        data = string_navigate_object(data, @cfg.hosts_location) if @cfg.hosts_location?

        transform_json(data)
      end

      private

      def transform_json(data)
        nodes = []
        data.each do |node|
          next if node.empty?

          # map node parameters
          keys = {}

View on GitHub (pinned to 687ed4262d)

When it happens

Trigger: Thrown at lib/oxidized/source/jsonfile.rb:25 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/ab2eaa36cb05a431. Report an issue: GitHub.