list of networks as global definition

Ondrej Zajicek santiago at crfreenet.org
Mon Feb 23 21:30:35 CET 2015


On Sun, Feb 15, 2015 at 01:02:42PM +0200, Tapio Haapala wrote:
> Hi,
> I try make conf where all networks are at begin of sipmple format as
> possible at well commented. Rules & other thing use them later.
> Is it possible to do global network list as variable or are variables
> possible only in blocks?
> 
> I tried put thist begind of conf
> define local_nets = [
>                 2a00:X::/32, #My networkA
>                 2a00:X::/48 #My network B
>         ];

This should work in recent versions of BIRD
(and works for me if i replace X with 1, 2).

> define own_nets = [
> 	2a00:X::/32, #My network C at another place
> 	local_nets
> 	];

This should not - you cannot embed one set in another like this.

-- 
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: 181 bytes
Desc: Digital signature
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20150223/bf49e4d4/attachment.asc>


More information about the Bird-users mailing list