From 9af3f7c579275e71bfea11406974c3d74f86a7ea Mon Sep 17 00:00:00 2001 From: "Eric A. Miller" Date: Wed, 2 May 2018 22:47:46 -0400 Subject: [PATCH] #140 LLDP fixes - treat remote port type of 'local' as an interface name --- Changes | 6 ++++++ lib/SNMP/Info/LLDP.pm | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Changes b/Changes index a65b9d90..da73820c 100644 --- a/Changes +++ b/Changes @@ -1,3 +1,9 @@ +Version 3.60 + + [BUG FIXES] + + * #140 LLDP fixes - treat remote port type of 'local' as an interface name + Version 3.59 (2018-05-01) [NEW FEATURES] diff --git a/lib/SNMP/Info/LLDP.pm b/lib/SNMP/Info/LLDP.pm index 4b491821..d428bdd1 100644 --- a/lib/SNMP/Info/LLDP.pm +++ b/lib/SNMP/Info/LLDP.pm @@ -233,7 +233,7 @@ sub lldp_port { foreach my $key ( sort keys %$pid ) { my $port = $pdesc->{$key}; my $type = $ptype->{$key}; - if ( $type and $type eq 'interfaceName' ) { + if ( $type and ($type eq 'interfaceName' or $type eq 'local') ) { # If the pid claims to be an interface name, # believe it.