summaryrefslogtreecommitdiff
path: root/src/vyconf_config.ml
AgeCommit message (Collapse)Author
2025-01-14T7046: move reftree.cache to unique directoryJohn Estabrook
This will simplify updates of the reference_tree in case of supplemental contributions, say, addon packages.
2024-10-27T6718: read reference tree json file on startupJohn Estabrook
2024-10-27T6718: update build system, drop batteries, and adjust for lib changesJohn Estabrook
Update as needed for use with contemporary vyos1x-config: . update build system to use dune . drop use of batteries . update for protoc breaking changes in versions >= 3.0 . remove files now in vyos1x-config (config_tree et. al.; parsing)
2018-02-12Revert "Fix build with new Toml module version."Daniil Baturin
Seems lenses are back. This reverts commit 8938e627c04c01f8f30a854be6903a9abcd2fa5b.
2018-01-26Fix build with new Toml module version.Daniil Baturin
I have no idea where TomlLenses module is gone but frankly the whole thing is a lot less pretty without it.
2017-02-09Revert "Add basepath option to the vyconfd config."Daniil Baturin
Basepath is better be a command line option, since when it's really needed, having it in the config is pretty much useless. This reverts commit 377de9472716266bb932813a8f7a7ba9aa1630fb.
2017-01-23Add basepath option to the vyconfd config.Daniil Baturin
Right now the primary motivation is ease of testing without installing any appliance on a real system, but in real appliances, this may be handy for those who want things in /opt, even if I'm not a fan of /opt
2017-01-20Use BatOption.defalt instead of homegrown equivalent.Daniil Baturin
If we are going to use batteries for numeric_compare, why not take advantage of the rest.
2017-01-16Use the new Util.substitute_default in Vyconf_config.Daniil Baturin
2016-12-23Make log template and log level configurable.Daniil Baturin
2016-12-15Rename type Vyconf_config.vyconf_config to Vyconf_config.t for brevityDaniil Baturin
It's the only type it exports.
2016-12-14T210: Oops, missing exception handler. mandatory_field raises Missing_fieldDaniil Baturin
2016-12-14T210: Do not use the Result compatibility library, use built-in result type.Daniil Baturin
Use of the Result module from a compatibility library came from using Yojson for config parsing, which uses it for compatibility with older OCaml, since the ('a, 'b) result type appeared in Pervasives only in OCaml 4.03 All projects using vyconf library, however, by definition will be new projects, and will not have any reasons to use older compilers.
2016-12-14T210: use TOML for the vyconf config file.Daniil Baturin
Add an example of the file too.
2016-12-08Fix build for ocaml 4.03Daniil Baturin
Yojson now uses the Result.result type for its decoding functions instead of polymorphic variants.
2015-09-24Add minimal vyconfd config loader.Daniil Baturin