mirror of
https://github.com/nymurbd/MikroTik-scripts.git
synced 2025-07-09 17:44:31 +02:00
dhcp-to-dns: info on mac address bound multiple time
This commit is contained in:
parent
c34599fe46
commit
576364f44a
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue