Code Monkey home page Code Monkey logo

Comments (3)

boenrobot avatar boenrobot commented on July 30, 2024

As you can see, this is an error message originating from the router. It is normal, and is the case even on the command line (try f.e. /ip firewall filter disable [find] and see the same error message appear).

If you want to disable all of "your" rules, you should instead target all rules that are not dynamic. Dynamic rules are removed when the thing that created them is disabled or removed. In the case of the dummy fasttrack rules, there's no such option, but at least the rule is always dynamic.

So f.e.

$util->setMenu('/ip firewall filter');
$util->disable(RouterOS\Query::where('dynamic', 'false'));

and the equivalent in CLI being /ip firewall filter disable [find where dynamic=no].

from net_routeros.

gaztelugatxe avatar gaztelugatxe commented on July 30, 2024

Thanks for the fast answer.

Yes, I understand is not a bug, but the

$util->disable(RouterOS\Query::where('dynamic', 'false'));

still throws an error, so I'll keep on trying things.

from net_routeros.

boenrobot avatar boenrobot commented on July 30, 2024

Oh... crap... testing this now, I'm seeing the query failing is actually the effect of bug #34... Already fixed, but the new version is not released yet.

If you're using Composer, you can get it now by using "dev-develop" as your version vector. Or if you're using an extracted archive (as your error message seems to indicate), you can get an unpackaged zip (i.e. one that does NOT include dependencies) from here, and merge the new files with the old ones, replacing the original ones.

There are some more things I'd like to get around to before I make a new tagged and packaged release.

from net_routeros.

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.