#321 clean interface descriptions of null and trailing space
This commit is contained in:
@@ -150,6 +150,10 @@ sub interfaces {
|
||||
my $port = $i_descr->{$iid};
|
||||
next unless defined $port;
|
||||
|
||||
my $port = SNMP::Info::munge_null($port);
|
||||
$port =~ s/^\s+//; $port =~ s/\s+$//;
|
||||
next unless length $port;
|
||||
|
||||
if ( $seen{$port}++ ) {
|
||||
# (#320) also fixup the port this is a duplicate of
|
||||
$interfaces->{ $first_seen_as{$port} }
|
||||
|
||||
Reference in New Issue
Block a user