On Fri, Dec 24, 2010 at 11:23:44PM +0200, Alexander Shikoff wrote: > Hello, > > There is possible bug in calculation of expressions. > Let's assume that bgp_path.first is a 32-bit ASN. > > Then this line does not work: > bgp_community.add((MyASN,bgp_path.first-bgp_path.first/65536*65536)); > > P.S. I'm still using version 1.2.4. Could someone check it with 1.2.5?
This is a bug caused by low priority of dot. Already fixed in CVS, but not yet in v1.2.5 . Can be also workarounded by using parenthesis around bgp_path.first (and other expressions with dot). > It does not raise syntax error etc. but bird stops announces of prefix which > the adding is applied to. There are probably runtime errors reported in your logfile. -- Elen sila lumenn' omentielvo Ondrej 'SanTiago' Zajicek (email: santi...@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."
signature.asc
Description: Digital signature