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

@@ -368,7 +368,7 @@ sub _walk_fwtable {
# do not expose MAC address tables via SNMP. relies on prefetched
# neighbors otherwise it would kill the DB with device lookups.
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') };
if ($device_port->is_uplink) {