Re: Deleting communities from outgoing prefixes

2010-09-14 Thread Ondrej Zajicek
On Mon, Sep 13, 2010 at 09:56:07PM +0300, Alexander Shikoff wrote: 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 =

Re: Deleting communities from outgoing prefixes

2010-09-14 Thread Alexander Shikoff
On Tue, Sep 14, 2010 at 12:26:04PM +0200, Ondrej Zajicek wrote: On Mon, Sep 13, 2010 at 09:56:07PM +0300, Alexander Shikoff wrote: 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

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