diff --git a/ChangeLog b/ChangeLog index 164a8950..1bd45260 100644 --- a/ChangeLog +++ b/ChangeLog @@ -12,6 +12,7 @@ version 3.18 * Correctly identify device type (class) for instantiated objects which have overridden layers. * [#58] Fix inheritance in L3::FWSM and L3::CiscoASA + * [#71] Don't try to match on a false port description in lldp_if version 3.17 (2014-06-23) diff --git a/Info/LLDP.pm b/Info/LLDP.pm index 5b24eb03..24ddddda 100644 --- a/Info/LLDP.pm +++ b/Info/LLDP.pm @@ -121,9 +121,9 @@ sub lldp_if { my $lldp_desc = $lldp->lldpLocPortDesc($port); my $desc = $lldp_desc->{$port}; # If cross reference is successful use it, otherwise stick with lldpRemLocalPortNum - if ( exists $r_i_descr{$desc} ) { + if ( $desc && exists $r_i_descr{$desc} ) { $port = $r_i_descr{$desc}; - } elsif ( exists $r_i_alias{$desc} ) { + } elsif ( $desc && exists $r_i_alias{$desc} ) { $port = $r_i_alias{$desc}; }