add endofmibview exception handling

This commit is contained in:
Eric Miller
2005-03-28 00:52:17 +00:00
parent 0967634043
commit 1162dc3a7b

View File

@@ -2366,6 +2366,12 @@ sub _load_attr {
last; last;
} }
# Check if last element, V2 devices may report ENDOFMIBVIEW even if
# instance or object doesn't exist.
if ($val eq 'ENDOFMIBVIEW'){
last;
}
if ($val eq 'NOSUCHOBJECT'){ if ($val eq 'NOSUCHOBJECT'){
$self->error_throw("SNMP::Info::_load_attr: $attr : NOSUCHOBJECT"); $self->error_throw("SNMP::Info::_load_attr: $attr : NOSUCHOBJECT");
next; next;