From 576364f44a99f35ca7055338a5f95228f46b0492 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Fri, 27 Oct 2023 10:12:47 +0200 Subject: dhcp-to-dns: info on mac address bound multiple time --- dhcp-to-dns.rsc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'dhcp-to-dns.rsc') diff --git a/dhcp-to-dns.rsc b/dhcp-to-dns.rsc index 5bd4462..e363b85 100644 --- a/dhcp-to-dns.rsc +++ b/dhcp-to-dns.rsc @@ -54,6 +54,9 @@ $ScriptLock $0 false 10; :local LeaseVal; :do { :set LeaseVal [ /ip/dhcp-server/lease/get $Lease ]; + :if ([ :len [ /ip/dhcp-server/lease/find where active-mac-address=($LeaseVal->"active-mac-address") status=bound ] ] > 1) do={ + $LogPrintOnce info $0 ("Multiple bound leases found for mac-address " . ($LeaseVal->"active-mac-address") . "!"); + } } on-error={ $LogPrintExit2 debug $0 ("A lease just vanished, ignoring.") false; } -- cgit v1.2.3-54-g00ecf