From deaeab2670b430fe7a170cacc1b9ad93a5849fa6 Mon Sep 17 00:00:00 2001 From: Oliver Gorwits Date: Sat, 6 May 2017 14:18:27 +0100 Subject: [PATCH] SNMP only stanza has access to full check_acl features --- lib/App/Netdisco/Util/SNMP.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/App/Netdisco/Util/SNMP.pm b/lib/App/Netdisco/Util/SNMP.pm index 15339c84..57b504ee 100644 --- a/lib/App/Netdisco/Util/SNMP.pm +++ b/lib/App/Netdisco/Util/SNMP.pm @@ -300,7 +300,7 @@ sub _build_communities { if not $stanza->{tag} and !exists $stanza->{community}; - if ($stanza->{$mode} and check_acl($device->ip, $stanza->{only})) { + if ($stanza->{$mode} and check_acl($device, $stanza->{only})) { if ($device->in_storage and $stored_tag and $stored_tag eq $stanza->{tag}) { # last known-good by tag