Add check required due to default partial
This commit is contained in:
@@ -105,6 +105,7 @@ sub lldp_if {
|
|||||||
foreach my $key ( keys %$addr ) {
|
foreach my $key ( keys %$addr ) {
|
||||||
my @aOID = split( '\.', $key );
|
my @aOID = split( '\.', $key );
|
||||||
my $port = $aOID[1];
|
my $port = $aOID[1];
|
||||||
|
next unless $port;
|
||||||
# Local LLDP port may not equate to ifIndex
|
# Local LLDP port may not equate to ifIndex
|
||||||
# Cross reference lldpLocPortDesc with ifDescr to get ifIndex
|
# Cross reference lldpLocPortDesc with ifDescr to get ifIndex
|
||||||
my $lldp_desc = $lldp->lldpLocPortDesc($port);
|
my $lldp_desc = $lldp->lldpLocPortDesc($port);
|
||||||
|
|||||||
Reference in New Issue
Block a user