Problem with case / else: in filters
Ondrej Zajicek
santiago at crfreenet.org
Sat Jan 1 10:49:04 CET 2011
On Fri, Dec 31, 2010 at 09:30:51AM +0100, Jerome Durand wrote:
> Yep, that was a copy/paste error (I tool the example from the web site)
> Actually I found a workaround for which I don't need an "else:"
> statement, and which is much better... !
>
> Here was the faulty filter (of course replace example, XXX, prefix1 and
> prefix1 by valid info!)
>
> filter in_asset_ASexample {
> if is_nexthop_false() then reject;
> case bgp_path.last {
> example: if ! (net ~ [ pref1+, pref2+ ]) then
> bgp_community.add((myas,XXX));
> else: bgp_community.add((myas,XXX));
> }
So the problem appears only when there is if/then in the case
before else: branch. It seems like a problem in BIRD grammar.
--
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: 197 bytes
Desc: Digital signature
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20110101/a7992b54/attachment.asc>
More information about the Bird-users
mailing list