From b0288980036fe0fec8de1fb21c046a1341cd0b5f Mon Sep 17 00:00:00 2001 From: Christian Ramseyer Date: Fri, 18 Feb 2022 09:16:17 +0100 Subject: [PATCH] netdisco-do -D arpnip ... shows collected arp entries * debug message added in Util/Node.pm * works uniformely for SSH and CLI --- Changes | 6 ++++++ lib/App/Netdisco/Util/Node.pm | 2 ++ 2 files changed, 8 insertions(+) diff --git a/Changes b/Changes index 9afa6ac7..cf6a1460 100644 --- a/Changes +++ b/Changes @@ -1,3 +1,9 @@ +2.052002 - ? + + [ENHANCEMENTS] + + * netdisco-do -D arpnip ... shows collected arp entries + 2.052001 - 01-02-2022 [ENHANCEMENTS] diff --git a/lib/App/Netdisco/Util/Node.pm b/lib/App/Netdisco/Util/Node.pm index 73d9771a..f878c3da 100644 --- a/lib/App/Netdisco/Util/Node.pm +++ b/lib/App/Netdisco/Util/Node.pm @@ -173,6 +173,8 @@ sub store_arp { return if !defined $mac or $mac->errstr; + debug sprintf 'store_arp - mac %s ip %s', $mac->as_ieee, $ip; + schema('netdisco')->txn_do(sub { my $current = schema('netdisco')->resultset('NodeIp') ->search(