[prev in list] [next in list] [prev in thread] [next in thread] 

List:       bird-users
Subject:    Re: Syntax for setting bgp_origin
From:       <iggorok () yandex ! ua>
Date:       2015-12-22 15:52:37
Message-ID: 685001450799557 () web23g ! yandex ! ru
[Download RAW message or body]

Thank you for answer. As I understand it will be fixed in next releases?

22.12.2015, 12:20, "Ondrej Zajicek" <santiago@crfreenet.org>:
> On Tue, Dec 22, 2015 at 10:31:44AM +0100, Olivier Benghozi wrote:
>>  Maybe it's not the doc but the code that is problematic.
>>  We need an Ondrej outlook on this.
>>
>>  > Le 22 déc. 2015 à 08:31, Гаврилов Игорь <iggorok@yandex.ua> a écrit :
>>  >
>>  > Thank you, it work, but why in if statement it works:
>>  > filter TEST {
>>  > if bgp_origin = ORIGIN_IGP then {
>>  > bgp_origin = 2;
>>  > accept;
>>  > }
>>  > reject;
>>  > }
>
> Hi
>
> Well, the ORIGIN_* constants are supposed to work, but there is a bug and
> the attribute is handled as integer. Using 0, 1, 2 instead should work
> in both setting and testing.
>
> For me, testing 'show route where bgp_origin = ORIGIN_IGP' does not work
> (causes error message in the log), but 'show route where bgp_origin = 0'
> works. I expect that in the filter (as above) it is the same.
>
> --
> Elen sila lumenn' omentielvo
>
> Ondrej 'Santiago' Zajicek (email: santiago@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."
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic