#140 LLDP fixes - treat remote port type of 'local' as an interface name

This commit is contained in:
Eric A. Miller
2018-05-02 22:47:46 -04:00
parent e7c93b7abd
commit 9af3f7c579
2 changed files with 7 additions and 1 deletions

View File

@@ -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.