Bgp_local_pref path depending
mattia.milani at studenti.unitn.it
mattia.milani at studenti.unitn.it
Fri Sep 20 15:09:38 CEST 2019
Hello all, I’m writing this email because i was trying to create an input filter for my daemon.
Protocol: BGP
I would like to evaluate an input path and change the bgp preference if the path correspond to a certain path.
I configured a default bgp_local_pref with the command:
default bgp_local_pref 1;
And in the input filter I wrote a code like:
If bgp_path ~ [= * 1 2 3 =] then {
bgp_local_pref = 100;
}
But this doesn’t seems to do the expected work, if the path finish with 1 2 3 no matter how much it is long I would like to prefer it over other paths.
If anyone can suggest me how to handle it thanks,
Mattia
More information about the Bird-users
mailing list