Re: Community lists and ~ operator

2010-09-13 Thread Ondrej Zajicek
On Mon, Sep 13, 2010 at 08:50:23PM +0300, Alexander Shikoff wrote: > Hello, > > I have a problem with implementing following logic: > > if route has any of communities 31210:0 ... 31210:65535 then do nothing > else add community 31210:31210. > > I tried next control: > > if ! ( (31210,*

Deleting communities from outgoing prefixes

2010-09-13 Thread Alexander Shikoff
Hello, I want to store prefixes in RIB with communities but I want to delete communities when prefix is being announced to peer. I'm trying following function: function bgp_out (int peer_as) { if ! (source = RTS_BGP ) then return false; if (0,MyASN) ~ bgp_community then return fa

Re: Netlink: File exists

2010-09-13 Thread Timo Weingärtner
Hi, Am Dienstag, 2. Februar 2010 schrieb Ondrej Zajicek: > On Tue, Feb 02, 2010 at 06:57:14PM +, Chris Webb wrote: > > This seems to work fine, apart from the message "bird: Netlink: File > > exists" appearing in syslog every minute. > > in case this is related to bird being unable to overwri

Community lists and ~ operator

2010-09-13 Thread Alexander Shikoff
Hello, I have a problem with implementing following logic: if route has any of communities 31210:0 ... 31210:65535 then do nothing else add community 31210:31210. I tried next control: if ! ( (31210,*) ~ bgp_community ) then { bgp_community.add((31210,31210)); }

Re: Deleting unallowed communities

2010-09-13 Thread Alexander Shikoff
On Sat, Sep 11, 2010 at 08:17:49PM +0200, Ondrej Zajicek wrote: > On Tue, Sep 07, 2010 at 01:50:58PM +0300, Alexander Shikoff wrote: > > > This code works for me. > > > > > > This is a recent feature, perhaps you are using an old version of BIRD. > > > Try version 1.2.4 . > > I'm using 1.2.4. > >