this is not true for ARI in Traffic-selector , even though we change preference in Static route manually, ARI takes its default value : 5.
wrote: I think in that case you would need to set the default preference for static routes to be higher than BGP and then your other static routes you would have to set them to prerefence 5 or whatever value you chose. So when the SRX generates the VPN static route, its default would higher
Something like this:
set routing-options static defaults preference 180set routing-options static route 0.0.0.0/0 next-hop 172.18.1.1
set routing-options static route 0.0.0.0/0 preference 5
set routing-options static route 192.12.0.0/24 next-hop 172.18.1.2
set routing-options static route 192.12.0.0/24 preference 5