How to use max-limit= in this api
Closed this issue · 5 comments
Hello, I cant make work this - any escape charater dont allowed to add queue with parametr max-limit. Is some character change for "-"?
Paste exact code.
import librouteros
from librouteros import connect
from librouteros.login import plain, token
method = token
api = connect(username='admin', password='example', host='any', login_method=method)
queue = api.path('/queue/simple')
queue.add(max-limit="10M/10M", name='test')
I tried backslash, apostrophe, nothing works :(
This is python 101. Can you have variable names in python (or any other programming language) with -
in them ?
In routeros, the command is /queue simple add max-limit=10M/20M name=name target=1.2.3.4/32
- unfortunately variable is with -
. Any way to use your lib with simplq queue?