Re: BIRD export reject not working

2017-09-19 Thread Marek Królikowski
-Oryginalna wiadomość- From: Ondrej Zajicek I suggest to use something like: > >if bgp_path ~ [= * 64515 * =] then reject; This should work, but simpler way is this: if 64515 ~ bgp_path then reject; Ok question why if bgp_path = 64515 then reject; not working and don`t give errors if

Re: BIRD export reject not working

2017-09-19 Thread Ondrej Zajicek
On Tue, Sep 19, 2017 at 11:27:58AM +0200, Tim Weippert wrote: > Hi, > > IIRC, bird added your local ASN before export filter, so 64515 is > neither first nor last in ASN Path, and it isn't exactly only 64515 in > the path. Hi, you are right, but note that 'if bgp_path = 64515 then reject;' does

Re: BIRD export reject not working

2017-09-19 Thread Alexander Zubkov
Hi. You check 64515 to be firs, last or the only (which is redundant check here) AS in the path. And in your example: MY-ASN 64515 20473 1299 21430 - it is not the first or last. On Tue, Sep 19, 2017 at 10:50 AM, Marek Królikowski wrote: > Hello guys, > I got strange problem with BGP i share da

Re: BIRD export reject not working

2017-09-19 Thread Tim Weippert
Hi, IIRC, bird added your local ASN before export filter, so 64515 is neither first nor last in ASN Path, and it isn't exactly only 64515 in the path. I suggest to use something like: if bgp_path ~ [= * 64515 * =] then reject; This should reject any bgp_path contains AS 64515. HTH, tim On T

BIRD export reject not working

2017-09-19 Thread Marek Królikowski
Hello guys, I got strange problem with BGP i share data to Collector but i put to reject some bgp path This is how look configuration of BGP session of Collector: protocol bgp Collector { description "Collector"; local as MY-ASN; source address IPv61; neighbor IPV62 as SOMEONE-