Syntax for setting bgp_origin

Olivier Benghozi olivier.benghozi at wifirst.fr
Tue Dec 22 10:31:44 CET 2015


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 at 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;
> }
> 
> 
> 22.12.2015, 03:05, "Olivier Benghozi" <olivier.benghozi at wifirst.fr>:
>> Yep, it's not very user friendly... The doc is problematic about this attribute.
>> 
>> In fact it appears that you must use 0/1/2 (values following the RFC), so for incomplete you must use 2.
>> 
>>>  Le 21 déc. 2015 à 21:48, Гаврилов Игорь <iggorok at yandex.ua> a écrit :
>>> 
>>>  Hi everyone! Could someone show me how to set bgp_origin attribute on redistributed prefixes?
>>>  I have tried
>>>  if net =10.0.0.0/8 then {
>>>  bgp_origin = ORIGIN_INCOMPLETE;
>>>  accept;
>>>  }
>>>  But it doesn't work.




More information about the Bird-users mailing list