At the moment I have a 30 line script to ensure only 1 DHCP lease can be active per Remote-ID at a time, the newest lease clears all other entries that have the same Remote-ID (potential issue if a client plugged a switch into their WAN connection instead of a router) but there's currently a bug in the script. Rather than running through it again and trying to debug, the script could be very simple if certain parameters are parsed to it from the DHCP server
At the moment it iterates through every single lease, finds the newest, then purges all others
If parsed parameters can be used then instead I could do it all on 1 line with something like
/ip dhcp-server lease remove [find where remote-id=%8 active-mac-address!=%1]
Where %1 would be the MAC address of the lease that triggered the script, %8 would be the remote-id
Is this supported in the MikroTik world?