The requirements for filtering on the loopback, i.e. filtering traffic to the system Routing Engine / JunOS itself, is essentially the same between our layer-3 switches (i.e. drmrs QFX5120 devices) and core routers (typically MX480 or MX204s).
So it is realistic for us to use the same Capirca policy definition to build the 'loopback4' and 'loopback6' filters for all of them. There are certain terms that aren't needed in both cases, but won't cause any issue if they are configured and get no matches (i.e. there is no VRRP on L3 switches, EVPN devices need to include overlay BGP sessions the others don't have).
Creating this task with the aim of:
- Adjusting the capirca policy for cr-loopbacks, so it will build the filter in a way that is compatible / has same effect as existing (manually configured) filters on drmrs asw's.
- Further modifying the policy to include the additional elements needed for EVPN lsw/ssw.