Bgp_local_pref path depending

Ondrej Zajicek santiago at crfreenet.org
Fri Sep 20 16:06:32 CEST 2019


On Fri, Sep 20, 2019 at 03:09:38PM +0200, mattia.milani at studenti.unitn.it wrote:
> 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.

Hello

That seems like a correct filter, what 'show route all' for given route shows?

-- 
Elen sila lumenn' omentielvo

Ondrej 'Santiago' Zajicek (email: santiago at crfreenet.org)
OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net)
"To err is human -- to blame it on a computer is even more so."



More information about the Bird-users mailing list