> Il giorno 20 set 2019, alle ore 16:06, Ondrej Zajicek 
> <[email protected]> ha scritto:
> 
> On Fri, Sep 20, 2019 at 03:09:38PM +0200, [email protected] 
> 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?

Yeah, you are right, this filter is correct.
The problem was on the exporter filter of other nodes, I’m sorry for bothering 
you.

Thanks,
Mattia

> 
> -- 
> Elen sila lumenn' omentielvo
> 
> Ondrej 'Santiago' Zajicek (email: [email protected])
> OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net)
> "To err is human -- to blame it on a computer is even more so."

Reply via email to