On Thu, Jul 08, 2021 at 01:53:21PM +0200, Elmar K. Bins wrote: > Hello fellows, > > I have my bird config failing on something as trivial as > > if defined (some_variable_never_defined) > then ... ; > > with "syntax error, unexpected CF_SYM_UNDEFINED" on the "some_...". > > Am I wrongly assuming that defined() would check for the variable to exist > within BIRD's global scope (e.g., appear in the namespace)?
Hello No, defined() checks for whether given route attribute is defined for the current route. So it requires known attribute names, like bgp_path or ospf_metric1. -- 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."