[#250] Linux SSHColletor cannot handle uppercase MACs

This commit is contained in:
Oliver Gorwits
2015-11-28 23:44:37 +00:00
parent e70f0656d7
commit 535e48cf63
2 changed files with 2 additions and 1 deletions

View File

@@ -7,6 +7,7 @@
[BUG FIXES] [BUG FIXES]
* [#255] undefined host error in netdisco-do psql * [#255] undefined host error in netdisco-do psql
* [#250] Linux SSHColletor cannot handle uppercase MACs
2.033004 - 2015-11-16 2.033004 - 2015-11-16

View File

@@ -62,7 +62,7 @@ sub arpnip {
my @lines = split(m/\n/, $before); my @lines = split(m/\n/, $before);
# 192.168.1.1 ether 00:b6:aa:f5:bb:6e C eth1 # 192.168.1.1 ether 00:b6:aa:f5:bb:6e C eth1
my $linereg = qr/([0-9\.]+)\s+ether\s+([a-f0-9:]+)/; my $linereg = qr/([0-9\.]+)\s+ether\s+([a-fA-F0-9:]+)/;
foreach my $line (@lines) { foreach my $line (@lines) {
if ($line =~ $linereg) { if ($line =~ $linereg) {