fix port neighbors being identified as macsuck_unsupported

This commit is contained in:
Oliver Gorwits
2017-07-09 13:41:38 +01:00
parent 1a26515356
commit 6a8308e58c
2 changed files with 5 additions and 1 deletions

View File

@@ -6,6 +6,10 @@
* #324 use a (better) host group for internal localnet filter * #324 use a (better) host group for internal localnet filter
* #325 significant speed-up to Device > Ports tab (thx to T. Teräs) * #325 significant speed-up to Device > Ports tab (thx to T. Teräs)
[BUG FIXES]
* fix port neighbors being identified as macsuck_unsupported
2.036005 - 2017-07-05 2.036005 - 2017-07-05
[ENHANCEMENTS] [ENHANCEMENTS]

View File

@@ -368,7 +368,7 @@ sub _walk_fwtable {
# do not expose MAC address tables via SNMP. relies on prefetched # do not expose MAC address tables via SNMP. relies on prefetched
# neighbors otherwise it would kill the DB with device lookups. # neighbors otherwise it would kill the DB with device lookups.
my $neigh_cannot_macsuck = eval { # can fail my $neigh_cannot_macsuck = eval { # can fail
check_acl_no($device_port->neighbor, 'macsuck_unsupported') || check_acl_no(($device_port->neighbor || "0 but true"), 'macsuck_unsupported') ||
match_devicetype($device_port->remote_type, 'macsuck_unsupported_type') }; match_devicetype($device_port->remote_type, 'macsuck_unsupported_type') };
if ($device_port->is_uplink) { if ($device_port->is_uplink) {