Dear Bird Users, we (Vienna Internet Exchange) are one step closer to deploying bird into beta for our exchange - we have an automated configuration generation tool that grabs all data from our database and creates a bird.conf (ipv6 support is on it's way). Now the same tool that generates the configuration will also reload bird. As all this doesn't need human intervention it would be great to find out - before reloading bird - if the configuration file is syntactically correct (I realize that bird doesn't crash or anything if it can't read the config, but I need to know it anyway) - is there a way to find out if bird would accept the config-file - other than calling configure soft from birdc and parsing the output? Ideally I'd like to call 'bird -c /etc/bird.conf --check-config' and check the return-status of this script. I guess this wouldn't be hard to do, would it? Wolfgang -- www.vix.at | www.aco.net wh@univie.ac.at | WH844-RIPE Vienna University Computer Center
On Thu, Nov 19, 2009 at 07:30:02AM +0100, Wolfgang Hennerbichler wrote:
Dear Bird Users,
we (Vienna Internet Exchange) are one step closer to deploying bird into beta for our exchange - we have an automated configuration generation tool that grabs all data from our database and creates a ... and parsing the output? Ideally I'd like to call 'bird -c /etc/bird.conf --check-config' and check the return-status of this script. I guess this wouldn't be hard to do, would it?
There are two ways how it could be implemented: 1) send configure [soft] command and use the return code of the command. - using bird control socket, return code is prepend to the answer. 2) add that option as you suggested. I think we could implement it in the next version. -- 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."
On Nov 19, 2009, at 10:39 , Ondrej Zajicek wrote:
On Thu, Nov 19, 2009 at 07:30:02AM +0100, Wolfgang Hennerbichler wrote:
Dear Bird Users,
we (Vienna Internet Exchange) are one step closer to deploying bird into beta for our exchange - we have an automated configuration generation tool that grabs all data from our database and creates a ... and parsing the output? Ideally I'd like to call 'bird -c /etc/bird.conf --check-config' and check the return-status of this script. I guess this wouldn't be hard to do, would it?
There are two ways how it could be implemented:
1) send configure [soft] command and use the return code of the command. - using bird control socket, return code is prepend to the answer.
allright, sounds like a plan .
2) add that option as you suggested. I think we could implement it in the next version.
that would be nice. I could also live with a standalone-executable that just runs the configure soft command like mentioned above and returns the status in shell-ish-return-code. great, thanks.
-- 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."
-- www.vix.at | www.aco.net wh@univie.ac.at | WH844-RIPE Vienna University Computer Center
participants (2)
-
Ondrej Zajicek -
Wolfgang Hennerbichler