Giter Site home page Giter Site logo

support for where about librouteros HOT 8 CLOSED

luqasz avatar luqasz commented on June 15, 2024
support for where

from librouteros.

Comments (8)

luqasz avatar luqasz commented on June 15, 2024 1

How do you want me to support regex since API does not support it ?

from librouteros.

luqasz avatar luqasz commented on June 15, 2024 1

@zentavr I've added rawCmd() method for passing in custom commands. This will work for passing queries as well.

from librouteros.

edelalva avatar edelalva commented on June 15, 2024

I got it the solution from other inquiry. Thanks.

from librouteros.

zentavr avatar zentavr commented on June 15, 2024

@edelalva I wonder what was the solution?

from librouteros.

zentavr avatar zentavr commented on June 15, 2024

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.

luqasz avatar luqasz commented on June 15, 2024

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.

zentavr avatar zentavr commented on June 15, 2024

@luqasz unfortunately I need regexp here so this won’t work either

from librouteros.

zentavr avatar zentavr commented on June 15, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.