deterministic order for include by wildcard

Ondrej Zajicek santiago at crfreenet.org
Mon Dec 28 22:56:29 CET 2015


On Mon, Dec 28, 2015 at 10:32:37AM -0800, Warren Turkal wrote:
> Hey folks,
> 
> Do wildcards in includes resolve in a deterministic order? I'd like to just
> put something like the following in my bird.conf:
> 
> include "/etc/bird.d/*.conf"
> 
> If I do that, can I rely on 10-common.conf to be included before
> 20-bgp_to_other_place.conf so that I can define templates in a common place
> and use those templated in the later included files?
> 
> Also, if the ordering does exist, does anything affect the ordering?

Hi

Results are alphabetically sorted. The wildcard expansion is implemented
by standard glob() libc function, and unfortunately both Single UNIX
specification and GNU C library documentation are lacking details about
that. I would expect that it is a plain ASCII, non-localized alphabetic sort.


> If there is a deterministic order, it might make sense to identify that
> order in the docs. I only found [1], which does not say anything about the
> order of the files included.

Will fix that.


> As a side note, it would also be nice to add an anchor to each option in
> the different sections where there are options so that one could link
> directly to the option within the section. If that had existed, I could
> have linked to the "include" option directly.

A good idea.


> Is there a bug tracker somewhere for bird for this type of request?

Not really. There is a bug tracker as a part of gitlab package used for
BIRD, but it is not much used. I generally prefer bugs and requests to be
are discussed on the mailing list. But for trivial fixes and subsequent
progress tracking using bug tracker makes sense, so perhaps we could
start to use it.


-- 
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/20151228/145bacbe/attachment.asc>


More information about the Bird-users mailing list