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,13 +957,11 @@ sub discover_new_neighbors {
next; next;
} }
# Don't queue if job already exists jq_insert({
if (List::MoreUtils::none {$_ eq $ip} jq_queued('discover')) { device => $ip,
jq_insert({ action => 'discover',
device => $ip, subaction => 'with-nodes',
action => 'discover', });
});
}
} }
} }