From f1806f227ba5dfcadc98ce04689d55a01a374646 Mon Sep 17 00:00:00 2001 From: "Eric A. Miller" Date: Sat, 14 Jul 2012 07:56:24 -0400 Subject: [PATCH] Add check required due to default partial --- Info/LLDP.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/Info/LLDP.pm b/Info/LLDP.pm index fe6a5fed..11a60fbe 100644 --- a/Info/LLDP.pm +++ b/Info/LLDP.pm @@ -105,6 +105,7 @@ sub lldp_if { foreach my $key ( keys %$addr ) { my @aOID = split( '\.', $key ); my $port = $aOID[1]; + next unless $port; # Local LLDP port may not equate to ifIndex # Cross reference lldpLocPortDesc with ifDescr to get ifIndex my $lldp_desc = $lldp->lldpLocPortDesc($port);