-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Special dummy fasttrack counters rule #36
Comments
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. 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 |
Thanks for the fast answer. Yes, I understand is not a bug, but the
still throws an error, so I'll keep on trying things. |
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. |
Commands that should work such as:
don't work when the special dummy rule to show fasttrack counters is present. PHP throws this error:
If we skip that first dummy rule, for example:
no error happens and the rule is correctly disabled.
The text was updated successfully, but these errors were encountered: