From dfbc7cfd0788ec95570c0181ff6b858a7f9f2102 Mon Sep 17 00:00:00 2001 From: Eric Miller <> Date: Wed, 10 Oct 2007 02:24:58 +0000 Subject: [PATCH] Fix to avoid inheritance issues in psuedo classes with e_index() --- Info/Entity.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Info/Entity.pm b/Info/Entity.pm index 0452a112..dbc8d151 100644 --- a/Info/Entity.pm +++ b/Info/Entity.pm @@ -77,14 +77,16 @@ sub e_index { my $entity = shift; my $partial = shift; - my $e_descr = $entity->e_descr($partial); + # Force use of MIB leaf to avoid inheritance issues in psuedo classes + my $e_descr = $entity->entPhysicalDescr($partial); + return undef unless ($e_descr); + my %e_index; foreach my $iid (keys %$e_descr) { $e_index{$iid} = $iid; } - return \%e_index; }