{"record":{"id":"79e43bbdb553e1ee","repo":"theforeman/foreman","slug":"unable-to-perform-lan-bmc-operation","errorCode":null,"errorMessage":"Unable to perform lan BMC operation","messagePattern":"Unable to perform lan BMC operation","errorType":"exception","errorClass":"ProxyAPI::ProxyException","httpStatus":null,"severity":"error","filePath":"app/services/proxy_api/bmc.rb","lineNumber":101,"sourceCode":"    rescue => e\n      raise ProxyException.new(url, e, N_(\"Unable to perform identify BMC operation\"))\n    end\n\n    # perform a lan get operation on the bmc device\n    def lan(args)\n      # get \"/bmc/:host/lan/:action\"\n      case args[:action]\n      when \"ip\", \"netmask\", \"mac\", \"gateway\"\n        full_path_as_hash = bmc_url_for_get('lan', args[:action])\n        response = parse(get(full_path_as_hash[:path], query: full_path_as_hash[:query]))\n        response.is_a?(Hash) ? response['result'] : response\n      else\n        raise NoMethodError\n      end\n    rescue NoMethodError => e\n      raise e\n    rescue => e\n      raise ProxyException.new(url, e, N_(\"Unable to perform lan BMC operation\"))\n    end\n\n    private\n\n    def bmc_url_for(controller, action)\n      case controller\n      when \"lan\"\n        \"/#{@target}/lan/#{action}\"\n      else\n        \"/#{@target}/chassis/#{controller}/#{action}\"\n      end\n    end\n\n    def bmc_url_for_get(controller, action)\n      if @provider\n        {path: bmc_url_for(controller, action).to_s, query: { bmc_provider: @provider } }\n      else\n        {path: bmc_url_for(controller, action) }","sourceCodeStart":83,"sourceCodeEnd":119,"githubUrl":"https://github.com/theforeman/foreman/blob/6b05625475cfe6aac31a88f8c8ee6e62e4efe620/app/services/proxy_api/bmc.rb#L83-L119","documentation":"Error \"Unable to perform lan BMC operation\" thrown in theforeman/foreman.","triggerScenarios":"Thrown at app/services/proxy_api/bmc.rb:101 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"6b05625475cfe6aac31a88f8c8ee6e62e4efe620","analyzedAt":"2026-08-23T17:46:34.094Z","schemaVersion":2},"datasetVersion":"2026-08-23T21:17:23.414Z"}