Filtering oddities

This has been happening for awhile now. I see very odd behavior with filter rules and BGP.

For example
add action=discard chain=DENY protocol=bgp may work when add action=discard chain=DENY protocol=“” does not

And sometimes just the opposite works, just depends on the peer. Sometimes moving the filter rule around kicks it into working. This is not specific to a certain routeros version.

porotocol=“” means no protocol, there are no routes without protocol so obviously rule will not match anything. If you want to unset protocol parameter then use command ‘unset’