I want remove active hotspot users with specify simple queue attributes (for ex: 512k/512k).
Code: Select all
/queue simple
:foreach i in=[ find ] do={
:local max [get value-name=max-limit $i]
:local ip [get value-name=target $i]
:if ($max ="512k/512k") do={
/ip hotspot active
:foreach j in=[ find=~$ip] do={
/ip hotspot active remove $ip;
}
}
}
But it not working.
anyone can help me ?
thank you in advance.