I have almost the same problem.
I have this script but its not working in V7
/queue simple add max-limit=5M/25M name="Total_Clients" target=10.4.29.0/23
:local child "MacAddr - $leaseActMAC"
:if ($leaseBound = "1") do={
/queue simple add name="MacAddr - $leaseActMAC" target=($leaseActIP."/32") limit-at=2M/25M max-limit=2M/25M burst-limit=2M/25M burst-threshold=2M/25M burst-time=5/5 priority=8/8 parent="Total_Clients" comment=("Computer LAN ".[/ip dhcp-server lease get [find where active-mac-address=$leaseActMAC && active-address=$leaseActIP] host-name]);
} else={
/queue simple remove $child
}
I ve try the above script but it creates queues for every lease. That what i need is to create queues only for this dhcp-server that the script is triggering.
I believe that is something with variables - not accepting :local in dhcp script, but i am not sure!
I have this script but its not working in V7
/queue simple add max-limit=5M/25M name="Total_Clients" target=10.4.29.0/23
:local child "MacAddr - $leaseActMAC"
:if ($leaseBound = "1") do={
/queue simple add name="MacAddr - $leaseActMAC" target=($leaseActIP."/32") limit-at=2M/25M max-limit=2M/25M burst-limit=2M/25M burst-threshold=2M/25M burst-time=5/5 priority=8/8 parent="Total_Clients" comment=("Computer LAN ".[/ip dhcp-server lease get [find where active-mac-address=$leaseActMAC && active-address=$leaseActIP] host-name]);
} else={
/queue simple remove $child
}
I ve try the above script but it creates queues for every lease. That what i need is to create queues only for this dhcp-server that the script is triggering.
I believe that is something with variables - not accepting :local in dhcp script, but i am not sure!
Statistics: Posted by dotis — Sat Feb 17, 2024 12:32 pm