route server community evaluation examples - bug and fix

Ondrej Zajicek santiago at crfreenet.org
Sun Jul 8 13:10:35 CEST 2018


On Fri, Jul 06, 2018 at 06:35:24PM +0000, Chris Caputo wrote:
> On Mon, 22 Jan 2018, Chris Caputo wrote:
> > To see the communities supported by the SIX route servers, refer to:
> > 
> >   https://www.seattleix.net/route-servers#communities
> > 
> > Below is how we do it with bird 1.6.3.  Not sure about 2.0+.
> > 
> > 
>    {                                                                                    
>      if (ro,0,peeras) ~ bgp_ext_community then return false;             
>      if (ro,myas,peeras) ~ bgp_ext_community then return true;                      
> -    if ((ro,0,myas) ~ bgp_ext_community) then return false;           
>    } else {                                                                         
>      if ((0,peeras) ~ bgp_community) || ((ro,0,peeras) ~ bgp_ext_community) then return false;
>      if ((myas,peeras) ~ bgp_community) || ((ro,myas,peeras) ~ bgp_ext_community) then return true;
> -    if ((0,myas) ~ bgp_community) || ((ro,0,myas) ~ bgp_ext_community) then return false;
>    }                                                                                          
> +                                                                                                  
> +  if ((0,myas) ~ bgp_community) || ((ro,0,myas) ~ bgp_ext_community) then return false;  
> +                                                                         
>    return true;                                                            
>  }                                                                                      
> ---
> 
> Feedback welcome and if agreed, I think the wiki should be updated.

Hi

I think you are right, i will update the wiki.

-- 
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."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20180708/f1801469/attachment.sig>


More information about the Bird-users mailing list