Class: ForemanDiscovery::ImportHooks::LldpNeighbor

Inherits:
ForemanDiscovery::ImportHook show all
Defined in:
app/services/foreman_discovery/import_hooks/lldp_neighbor.rb

Instance Attribute Summary

Attributes inherited from ForemanDiscovery::ImportHook

#facts, #host

Instance Method Summary collapse

Methods inherited from ForemanDiscovery::ImportHook

#initialize

Constructor Details

This class inherits a constructor from ForemanDiscovery::ImportHook

Instance Method Details

#after_populateObject



5
6
7
8
# File 'app/services/foreman_discovery/import_hooks/lldp_neighbor.rb', line 5

def after_populate
  return unless Setting[:discovery_auto_bond]
  ::ForemanDiscovery::LldpNeighbors.eventually_make_bond(host)
end