Skip to content

Commit

Permalink
work in progress for auto-population, idaholab#135
Browse files Browse the repository at this point in the history
  • Loading branch information
mmguero committed Jul 6, 2023
1 parent bd8e8ba commit a70971b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion logstash/ruby/netbox_enrich.rb
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,11 @@ def filter(event)
then
_autopopulate_ip = _ip_create_reponse
end
end # check if interface was created and has IP
end # check if interface was created and has ID

if !_autopopulate_ip.nil? && _autopopulate_ip.fetch(:id, nil)&.nonzero?
# TODO: set IP address as primary for device
end # check if IP was created and has ID

# yield return value for cache_hash getset
_lookup_result
Expand Down

0 comments on commit a70971b

Please sign in to comment.