Correct LLDP address type detection in L3::IBMGbTor

This commit is contained in:
Eric A. Miller
2013-10-25 20:15:01 -04:00
parent 7a8ebffd40
commit 539943fb0f

View File

@@ -121,7 +121,7 @@ sub lldp_ip {
foreach my $key ( keys %$rman_addr ) {
my $type = $rman_type->{$key};
next unless defined $type;
next unless $type == 1;
next unless $type eq 'ipV4';
if ( $key =~ /^(\d+)\./ ) {
$lldp_ip{$1} = $rman_addr->{$key};
}