Skip to content

Commit

Permalink
work in progress for idaholab#393, fuzzy matching for manufacturers b…
Browse files Browse the repository at this point in the history
…ased on OUI to NetBox list is not very good
  • Loading branch information
mmguero committed Feb 13, 2024
1 parent ef35f07 commit 558ae6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions logstash/ruby/netbox_enrich.rb
Original file line number Diff line number Diff line change
Expand Up @@ -252,11 +252,11 @@ def filter(event)
_autopopulate_default_role = (@default_role.nil? || @default_role.empty?) ? "Unspecified" : @default_role
_autopopulate_default_dtype = (@default_dtype.nil? || @default_dtype.empty?) ? "Unspecified" : @default_dtype
_autopopulate_default_site = (@lookup_site.nil? || @lookup_site.empty?) ? "default" : @lookup_site
_autopopulate_fuzzy_threshold = @autopopulate_fuzzy_threshold
_autopopulate_create_manuf = @autopopulate_create_manuf && !_autopopulate_oui.nil? && !_autopopulate_oui.empty?
_autopopulate_hostname = event.get("#{@source_hostname}")
_autopopulate_mac = event.get("#{@source_mac}")
_autopopulate_oui = event.get("#{@source_oui}")
_autopopulate_fuzzy_threshold = @autopopulate_fuzzy_threshold
_autopopulate_create_manuf = @autopopulate_create_manuf && !_autopopulate_oui.nil? && !_autopopulate_oui.empty?

_result = @cache_hash.getset(_lookup_type){
LruRedux::TTL::ThreadSafeCache.new(_cache_size, _cache_ttl)
Expand Down

0 comments on commit 558ae6a

Please sign in to comment.