Isn't static routs advertised by BGP by default?
The neighbour has no export filter on it, only import filter.
set protocols bgp group N1 neighbor 10.10.10.2
set protocols bgp group N1 neighbor 10.10.10.2 import IMP-FILTER
set protocols bgp group N1 neighbor 10.10.10.2 peer-as 12345
But it doesn't redistribute it.
It is advertised on another peer on the same router. Which has an export filter where it specifies to advertise both bgp and static.
Is this something that is needed? Or is it something else that can block it? (It's a quite massive config)
In case that's the default way it works, would this be enough?
set policy-option policy-statement EXP-FILTER term STAT from protocol bgp
set policy-option policy-statement EXP-FILTER term STAT from protocol static
set policy-option policy-statement EXP-FILTER term STAT from protocol the accept
set protocols bgp group N1 neighbor 10.10.10.2 export