Comments (8)
How do you want me to support regex since API does not support it ?
from librouteros.
@zentavr I've added rawCmd()
method for passing in custom commands. This will work for passing queries as well.
from librouteros.
I got it the solution from other inquiry. Thanks.
from librouteros.
@edelalva I wonder what was the solution?
from librouteros.
from the docs
Regular expressions are not supported in API, so do not try to send query with ~ symbol
Is #11 related to that?
Is the solution in this comment?
from librouteros.
I do not plan to support any wrapper for regex. If you want to use where
you can use this workaroud. I will add a rawCmd()
method so it will be easier untill I develop more elegant solution.
from librouteros.
@luqasz unfortunately I need regexp here so this won’t work either
from librouteros.
@luqasz no questions to you at all :)
Currently I’m developing the feature module which should fetch the counters from the firewall rules lists, so I’m filtering that at Python’s side. Not elegant solution, but it’s fine when you have a couple of rules only.
I use something like this:
https://github.com/zentavr/linet.mikrotik/blob/feature/logging/plugins/firewall.py#L83-L84
from librouteros.
Related Issues (20)
- How to use set method? HOT 3
- Add membership operator for query HOT 1
- Add count method for query
- Use prepared docker image for CI HOT 1
- API incompatibility and print method HOT 3
- Dependabot couldn't authenticate with https://pypi.org/simple/
- How to use max-limit= in this api HOT 5
- Arbitrary command implementation HOT 1
- Arbitrary command implementation HOT 1
- Am i doing it right? or its a bug HOT 7
- Bug Query Logical operators Or HOT 3
- Unicode in DHCP comments HOT 2
- RouterOS 7 and wifiwave2 instead of wireless HOT 3
- Licensing question HOT 9
- OSPF passive checkbox HOT 2
- Use poetry-bumpversion
- Add REST API support
- remove/optional automatic type conversion HOT 9
- I need to save the result of a query in a variable HOT 1
- Be able to "filter()" without specifying props in "select()" HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from librouteros.