Relax validation of MIB access checks until we have broader test coverage that this is a non-breaking change

Mark corresponding test TODO in Info test class
This commit is contained in:
Eric A. Miller
2018-04-01 21:50:26 -04:00
parent 66bedd4d54
commit facdf5b7a7
3 changed files with 15 additions and 11 deletions

View File

@@ -4626,15 +4626,13 @@ sub _validate_autoload_method {
# If we were given a fully qualified OID because we don't have the MIB
# file, it will translate above but we won't be able to check access so
# skip the check and return
if ($access) {
unless ( ( $method =~ /^set/ && $access =~ /Write|Create/ )
|| ($method !~ /^set/ && $access =~ /Read|Create/) )
{
if ($access && $method =~ /^set/ && $access !~ /Write|Create/) {
print
"SNMP::Info::_validate_autoload_method($attr : $oid) Not accessable for requested operation.\n"
if $self->debug();
return;
}
}
# If the parent of the leaf has indexes it is contained within a table