Fix logic for determining if MIB leaf supports set operations

This commit is contained in:
Eric A. Miller
2018-03-27 21:05:26 -04:00
parent eab89e4736
commit 9af7a7661c

View File

@@ -4625,7 +4625,7 @@ sub _validate_autoload_method {
# skip the check and return
if ($access) {
unless ( ( $method =~ /^set/ && $access =~ /Write|Create/ )
|| $access =~ /Read|Create/ )
|| ($method !~ /^set/ && $access =~ /Read|Create/) )
{
print
"SNMP::Info::_validate_autoload_method($attr : $oid) Not accessable for requested operation.\n"