I’m trying to convert a whole set of BGP filtering logic to Mikrotik ROS v7. Because of its complexity, I want to try and keep filters modular and reusable. I’m struggling with the control flow options between chains a bit.
There seem to be two options:
-
jumpaction to another chain, which does its thing -acceptorrejecting prefixes - and callsreturnwhen it is done. -
chain <otherchain>matcher in anifstatement. This matches when the other chainaccepts the prefix.
The way I understand it, accept in the jump option shortcuts all following processing and instantly returns, while with the chain option processing will continue as normal.
Are there other differences? Performance impact? What does return do if called in a chain used by the chain matcher or standalone, does it count as accept or reject?