Correct is_discoverable check in Undiscovered Neighbors report
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
2.021001
|
||||||
|
|
||||||
|
[BUG FIXES]
|
||||||
|
|
||||||
|
* Correct is_discoverable check in Undiscovered Neighbors report
|
||||||
|
|
||||||
2.021000 - 2014-01-08
|
2.021000 - 2014-01-08
|
||||||
|
|
||||||
[NEW FEATURES]
|
[NEW FEATURES]
|
||||||
|
|||||||
@@ -24,10 +24,9 @@ get '/ajax/content/admin/undiscoveredneighbors' => require_role admin => sub {
|
|||||||
return unless scalar @devices;
|
return unless scalar @devices;
|
||||||
|
|
||||||
# Don't include devices excluded from discovery by config
|
# Don't include devices excluded from discovery by config
|
||||||
my @results = grep {
|
my @results
|
||||||
is_discoverable( $_->{'ports'}->{remote_ip},
|
= grep { is_discoverable( $_->{'remote_ip'}, $_->{'remote_type'} ) }
|
||||||
$_->{'ports'}->{'remote_type'} )
|
@devices;
|
||||||
} @devices;
|
|
||||||
|
|
||||||
return unless scalar @results;
|
return unless scalar @results;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user