Add check required due to default partial

This commit is contained in:
Eric A. Miller
2012-07-14 07:56:24 -04:00
parent e21d8516fb
commit f1806f227b

View File

@@ -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);