[#71] Don't try to match on a false port description in lldp_if
This commit is contained in:
@@ -12,6 +12,7 @@ version 3.18
|
|||||||
* Correctly identify device type (class) for instantiated objects which
|
* Correctly identify device type (class) for instantiated objects which
|
||||||
have overridden layers.
|
have overridden layers.
|
||||||
* [#58] Fix inheritance in L3::FWSM and L3::CiscoASA
|
* [#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)
|
version 3.17 (2014-06-23)
|
||||||
|
|
||||||
|
|||||||
@@ -121,9 +121,9 @@ sub lldp_if {
|
|||||||
my $lldp_desc = $lldp->lldpLocPortDesc($port);
|
my $lldp_desc = $lldp->lldpLocPortDesc($port);
|
||||||
my $desc = $lldp_desc->{$port};
|
my $desc = $lldp_desc->{$port};
|
||||||
# If cross reference is successful use it, otherwise stick with lldpRemLocalPortNum
|
# 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};
|
$port = $r_i_descr{$desc};
|
||||||
} elsif ( exists $r_i_alias{$desc} ) {
|
} elsif ( $desc && exists $r_i_alias{$desc} ) {
|
||||||
$port = $r_i_alias{$desc};
|
$port = $r_i_alias{$desc};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user