Skip to content

Commit

Permalink
for idaholab#415, work on using DNS for populating hostnames in netbox
Browse files Browse the repository at this point in the history
  • Loading branch information
mmguero committed Apr 23, 2024
1 parent b669237 commit 9d72051
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions logstash/pipelines/enrichment/21_netbox.conf
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ filter {
"target" => "[source][device]"
"source_oui" => "[source][oui]"
"source_mac" => "[source][mac]"
"source_hostname" => "[source][ip_reverse_dns]"
"enabled_env" => "NETBOX_ENRICHMENT"
"verbose_env" => "NETBOX_ENRICHMENT_VERBOSE"
"lookup_site_env" => "NETBOX_DEFAULT_SITE"
Expand Down Expand Up @@ -244,6 +245,7 @@ filter {
"target" => "[destination][device]"
"source_oui" => "[destination][oui]"
"source_mac" => "[destination][mac]"
"source_hostname" => "[destination][ip_reverse_dns]"
"enabled_env" => "NETBOX_ENRICHMENT"
"verbose_env" => "NETBOX_ENRICHMENT_VERBOSE"
"lookup_site_env" => "NETBOX_DEFAULT_SITE"
Expand Down
2 changes: 1 addition & 1 deletion logstash/ruby/netbox_enrich.rb
Original file line number Diff line number Diff line change
Expand Up @@ -995,7 +995,7 @@ def create_device_interface(
_ip_primary_reponse.is_a?(Hash) &&
_ip_primary_reponse.has_key?(:id)
then
_autopopulate_device = _ip_create_reponse
_autopopulate_device = _ip_primary_reponse
end
end # check if the IP address was created and has an ID

Expand Down

0 comments on commit 9d72051

Please sign in to comment.