Re-designing the config parsers

Daniil Baturin daniil at baturin.org
Tue Sep 9 15:28:37 UTC 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

What is wrong with Bison dependency? It's available from
repositories/ports/etc.
on any UNIX-like system in existence and can be installed even on
platforms that
do not exist anymore. :)



On 09/09/2014 10:20 PM, Marcin Siodelski wrote:
> We have been discussing for a while that our configuration parsers are
> not friendly and adding new configuration parameters to Kea is a pain. I
> created a thread on this mailing list, not so long ago, which is about
> changing the CfgMgr to support atomic commits and rolling back changes
> if the configuration fails:
> https://lists.isc.org/pipermail/kea-dev/2014-August/000065.html
>
> As a followup to this thread I would like to propose that we re-design
> our configuration parsers so as adding new configuration parameters to
> Kea is easier and less error prone.
>
> Briefly....
>
> I'd like to propose that we make use of the .spec files to define the
> supported parameters, the required order in which the parsing should be
> done, to associate the parsed parameter with the actual parser and to
> allow self documentation of the supported parameters.
>
> I would also like to create a central repository of the parsers which
> will expose a factory function returning appropriate parser instance for
> each element in the spec file (either default parser or specialized one
> when defined).
>
> Please see the draft document for full details:
> http://kea.isc.org/wiki/ConfigParseDesign and throw tomatoes if needed.
>
> I should also explain that we discussed with Tomek a use of Bizon
> framework (http://www.gnu.org/software/bison/) in Kea.
>
> However, since we already have the JSON parsers and spec files I am not
> sure we want to create additional dependency for Kea or include a third
> party software in our code base. But, it is obviously something that we
> can take into consideration.
>
> Marcin
> _______________________________________________
> kea-dev mailing list
> kea-dev at lists.isc.org
> https://lists.isc.org/mailman/listinfo/kea-dev


- -- 
#!/usr/bin/env perl
@a=split(//, "daniil @ baturin  .  org" );# Daniil Baturin
@b=split(//,q/Px%!+o0Q6lh*7dp$. at 8#%|y{/);while($i<24){$_.=
chr((ord(@b[$i])-ord(@a[$i])+62)%94+32);$i++};print"$_\n"#
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBAgAGBQJUDxykAAoJEEcm35UR4K8fyucQAPHpUCOLHUz/fBwUvIAGkxvr
g1agFVZ1PUteuMNG7zWRChZ5aEr20odR/+Q95GrANPh5kSJLwl43NQWAvQhR6QE7
QxgeHjoFG56jXkqd69Iokn/l8BGkBHG7H9xmRAHt5usjnOfDLpQQmZgyGUHjQdvv
/EODw/Xqv4KLCwZO4tD05diUydOk2gyYBPg1Pu+AzLJnYX5xaAV7ctcGOyly+JiI
F3Sp+O8OUBuC770fQzXCV3LyL6AvYmufsBV2yt5A4C4lOElG6pOdJo623JgwpLU8
7goSHSAuMn4l8s9KBioq2HY5rFaC4EJczI9KwegQvqGzC4CEvsVWG7sbwB7ilAM5
nzRmDowBDcUDJAutdNA+KYs3/Wb6RoyLy80WnePvU1RcG/1dBuB+fbbHWrNiTUqo
Pt75ODowV3pHg4S7bYbKf3eWA2dHNQIa7XXOnE/CW/uJRac9FW6OseLUYSlNqaiE
9/enK2zNDInt4BIfpcrq3LW1xue2crSShddzgk+MoR5u1/DFg2DWzQHtKlnf0t/H
V40A5PXTJtg0kdd4C1hNsQsZXu9sPwKfMNB5PHnzKA7ZfUx1WzmAVOdFd21kitqd
Fb2uP9UltROxJQLaAEfidP1NEdcHKIH1ZwsdlcUUYYCSjaDaYhXF2sjLh2RNJJbg
IJTbhuUpxKanNRy0knc+
=TPIR
-----END PGP SIGNATURE-----




More information about the kea-dev mailing list