From 539943fb0feed15d5c49cb968106d89f3e3283c6 Mon Sep 17 00:00:00 2001 From: "Eric A. Miller" Date: Fri, 25 Oct 2013 20:15:01 -0400 Subject: [PATCH] Correct LLDP address type detection in L3::IBMGbTor --- Info/Layer3/IBMGbTor.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Info/Layer3/IBMGbTor.pm b/Info/Layer3/IBMGbTor.pm index ae27d42a..dfeeeeb5 100644 --- a/Info/Layer3/IBMGbTor.pm +++ b/Info/Layer3/IBMGbTor.pm @@ -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}; }