#365 Fix Checkpoint GAIA sshcollector (jcz1)

This commit is contained in:
Oliver Gorwits
2018-01-23 22:51:30 +00:00
parent 13a29dc8f8
commit d224454c98
2 changed files with 13 additions and 1 deletions

11
Changes
View File

@@ -1,3 +1,14 @@
2.038031
[ENHANCEMENTS]
* Add Circle CI integration for building Docker Images
* Add support for many environment variables to override config (see wiki)
[BUG FIXES]
* #365 Fix Checkpoint GAIA sshcollector (jcz1)
2.038028 2.038028
[BUG FIXES] [BUG FIXES]

View File

@@ -66,7 +66,8 @@ sub arpnip {
my @lines = split(m/\n/, $before); my @lines = split(m/\n/, $before);
# ? (192.168.17.178) at 5C:F9:DD:71:1F:08 [ether] on LAN1 # ? (192.168.17.178) at 5C:F9:DD:71:1F:08 [ether] on LAN1
my $linereg = qr/\?\s+\(([0-9\.]+)\)\s+at\s+([a-fA-F0-9:]+)/; # https://github.com/netdisco/netdisco/issues/365
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) {
my ($ip, $mac) = ($1, $2); my ($ip, $mac) = ($1, $2);