RouterOS 7 OSPF filters question

So i wrote this filter in order to filter out the dynamic PPPoE /32 routes in one of my concentrators running 7.6:

if (dst in 100.64.8.0/22 && dst-len == 32) { reject; }

The above filter applied to the ospf out chain simple removes EVERY single route from being advertised, however, being explicit about the else clause like this:

if (dst in 100.64.8.0/22 && dst-len == 32) { reject; } else {accept;}

just works as expected and only routes in the 100.64.8.0/22 stop being advertised.

Is this a bug on the filters or it works like this by design ?

// Diego

Be aware that the default action of the routing filter chain is “reject”

https://help.mikrotik.com/docs/display/ROS/Route+Selection+and+Filters

Thanks a lot for pointing this out, i never saw that quote on the docs before.

I also updated the title on this post to remove the word “bug” from it to avoid confussion.

Cheers.
// Diego