Discovered devices are polled for ARP and MAC immediately

This commit is contained in:
Oliver Gorwits
2014-11-19 22:05:34 +00:00
parent 59a53b2c65
commit d91ee66634
2 changed files with 6 additions and 7 deletions

View File

@@ -11,6 +11,7 @@
* [#170] Show device SNMP::Info class in web interface * [#170] Show device SNMP::Info class in web interface
* [#133] Custom reports respect sorting in SQL * [#133] Custom reports respect sorting in SQL
* Add "Run Expire Job" to the Admin Menu * Add "Run Expire Job" to the Admin Menu
* Discovered devices are polled for ARP and MAC immediately
[BUG FIXES] [BUG FIXES]

View File

@@ -957,14 +957,12 @@ sub discover_new_neighbors {
next; next;
} }
# Don't queue if job already exists
if (List::MoreUtils::none {$_ eq $ip} jq_queued('discover')) {
jq_insert({ jq_insert({
device => $ip, device => $ip,
action => 'discover', action => 'discover',
subaction => 'with-nodes',
}); });
} }
}
} }
1; 1;