fix bug showing no nodes when only one matches in netmap

This commit is contained in:
Oliver Gorwits
2019-03-02 18:47:44 +00:00
parent 78e30a7926
commit ce1b847cea

View File

@@ -219,8 +219,9 @@ ajax '/ajax/data/device/netmap' => require_login sub {
DEVICE: while (my $device = $devices->next) {
# if in neighbors or vlan mode then use %ok_dev to filter
next DEVICE if (($mapshow eq 'neighbors') or $vlan)
and (not $ok_dev{$device->ip});
next DEVICE if ($device->ip ne $qdev->ip)
and (($mapshow eq 'neighbors') or $vlan)
and (not $ok_dev{$device->ip}); # showing only neighbors but no link
# if location picked then filter
next DEVICE if ((scalar @lgrplist) and ((!defined $device->location)