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: [email protected])
OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net)
"To err is human -- to blame it on a computer is even more so."
signature.asc
Description: Digital signature
