mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00: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…
Reference in a new issue