Good afternoon everyone, I am trying to move a queue to first position through php api, but sometimes the script removes all queues rather than move it, someone could give me a hand with this script? routeros version routeros 5.2x
very grateful to all!
$API->write('/queue/simple/getall', false);
$API->write('?name=' . $name);
$ARRAY = $API->read();
$ARRAY = $ARRAY[0];
$API->write('/queue/simple/move', false);
$API->write('=.id=' . $ARRAY['.id'],false);
$API->write('=destination=*0',true);
$ARRAY = $API->read();
$API->disconnect();