Add comment to DHCP rate limit queue

Hello,

Is there a way to add a comment to a simple queue created by DHCP server? While testing my script, the command

/queue simple set dhcp-ds<XX:XX:XX:XX:XX:XX> comment="hello"

gave me the error

failure: cannot change dynamic

I just want to show the host name on the list of queues. A while ago I used a more complicated script to add/remove queues manually, but then I switched to static DHCP rate limiting since it’s a lot simpler to manage.

Can you delete dynamic simple queues? I think you can but I’m not somewhere i can check right now but if you can delete them what you could do is create a script on lease bound to find the queue that was created by the server, copy it’s information and delete the dynamic queue. then create a static queue based on the variables you got from finding the dynamic queue. then you could add the hostname as a comment.

on lease unbound you would want it to find that static queue and delete it probably.

DHCP Server Script
set the right “parent”
and set your wanted limits.

:local nameQueue "Queue $leaseActMAC"

/queue simple
remove [find where name=$nameQueue]
:if ($leaseBound = "1") do={
    add name=$nameQueue parent=MainQueue target="$leaseActIP/32" disabled=no \
    limit-at=100k/100k max-limit=500k/2M priority=5/5 \
    comment="$leaseServerName: >$"lease-hostname"<"
}