Determine Address Family (IPv4 or IPv6) in configuration file at runtime

Ondrej Zajicek santiago at crfreenet.org
Tue Aug 13 10:35:41 CEST 2013


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 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/20130813/843df215/attachment-0001.asc>


More information about the Bird-users mailing list