Hey I Currently have
:local queueName "Client- $leaseActMAC";
:if ($leaseBound = "1" do={
/queue simple add name=$queueName target=($leaseActIP . "/32") limit-at=5M/18M max-limit=5M/18M comment=[/ip dhcp-server lease get [find where active-mac-address=$leaseActMAC && active-address=$leaseActIP] host-name];
} else={
/queue simple remove $queueName
}
to create static queues on dhcp leases, this works fine however I want to be able to queue different packages based off of DHCP Options (as im not using these parameters for anything else) but i can not figure out how to get the variables from an array. DHCP Option is Surfer, Streamer, Binger
here's what i've tried:
:if ($leaseBound = "1" && $lease-options[0] = "Surfer")
:if ($leaseBound = "1" && $lease-options = "0" )
:if ($leaseBound = "1" && $lease-options = [0] )
I just don't get how to define which number in an array I'm asking it to look for
any help would be greatly appreciated