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)); } print bgp_community; but without success: bird> configure Reading configuration from /usr/local/etc/bird.conf /usr/local/etc/bird.conf, line 61: syntax error Any ideas? Thanks in advance! -- MINO-RIPE
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,*) ~ bgp_community ) then {
Proper syntax is: if ! (bgp_community ~ [(31210,*)] ) then { Expressions like (123,*) are allowed only in pair sets (enclosed by [ ... ] ). -- 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."
participants (2)
-
Alexander Shikoff -
Ondrej Zajicek