On Mon, Aug 12, 2013 at 01:28:55PM +0300, Sergey Popovich wrote:
Having mostly identical configurations for IPv4 and IPv6 BIRD (especially routing policies) with few AFI specific parts we try to aggregate common part for both IPv4 and IPv6 in external include file.
However there is need in some branch parts to known address family at configuration file processing by bird: for example to properly use maximum prefix length (IPv4: 32, IPv6: 128).
Is there are any way to known (some constant, etc.) in configuration for which AFI bird was build?
I don't know about any. But you could define one at the beginning of your AFI-specific config file. -- 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."