How to set local pref based on prefix or AS path for a specific peer?
netstx opened this issue · 2 comments
netstx commented
I would like to do some basic traffic engineering and able to set higher local pref on specific prefixes or specific AS PATH on routes received by a specific peer. Is this possible without custom config?
Thanks,
Rafael
netstx commented
Sorry for the noise - shortly after creating this issue I managed to figure this out.
I used the following config line in my peer:
pre-import-accept: 'if (bgp_path ~ [= 123 789 * =]) then bgp_local_pref=300;'
Now I am wondering if there's another way of doing this utilizing some other pathvector config parameter (maybe one that was purposed made for this?), rather than injecting into bird.conf.
Thanks,
Rafael