summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-01-05Expose the Vytree.adopt function in the module interface.Daniil Baturin
This is useful in the parser and possibly other code that creates nodes from scratch.
2017-01-04Add "version" attribute to component definition schema.Daniil Baturin
It will be used for migrating configs if incompatible syntax change is made.
2017-01-04Add a grammar for generating curly configs for parser fuzzing tests.Daniil Baturin
Subject to improvement and extension to cover more cases.
2017-01-04Add an RNG XML version of the component definition schema.Daniil Baturin
2017-01-03Add a function to get completion data from a reference tree node.Daniil Baturin
2017-01-02Last missing accessor: value help.Daniil Baturin
2016-12-31Fix format of validation error messages (paths in square brackets, no quotes).Daniil Baturin
2016-12-30Remove the extends attribute from <interfaceDefinition>Daniil Baturin
It's problematic for multiple reasons: 1. It's plaintext and is hard to verify 2. If it's wrong, it may have a very "interesting" effect on the resulting reference tree, such as lots of misplaced nodes 3. It's hardly ever needed as most nodes only go one or two levels deep in VyOS, such as "service $something" or "interfaces $something", and I think it's unlikely that other appliances will differ much.
2016-12-30Fix missing quotes around values in Session.string_of_opDaniil Baturin
2016-12-30Add some unit tests for the Session.string_of_op function.Daniil Baturin
2016-12-30Expose the string_of_op function in the module interface.Daniil Baturin
2016-12-30Fix the string_of_path test (square brackets are no longer part of the output).Daniil Baturin
2016-12-28Add a function to convert config operations to commands.Daniil Baturin
2016-12-28Update the session module interface to expose the new functions.Daniil Baturin
2016-12-25Remove square brackets around the path string from Util.string_of_pathDaniil Baturin
They are trivial to add with printf when needed anyway, and this function is useful for generating commands from a tree.
2016-12-25Add value retrieval functions to the session module.Daniil Baturin
2016-12-25Add Vytree.children_of_path : 'a t -> string list function as a convenient ↵Daniil Baturin
shortcut for getting children of a non-root node
2016-12-24Extend the README a bit.Daniil Baturin
2016-12-23Merge branch 'philsummers-master'Daniil Baturin
2016-12-23T230: Add missing data access functions to the Reference_tree module with ↵Phil Summers
Unit tests
2016-12-23T230: Add missing data access functions to the Reference_tree module with ↵Phil Summers
unit tests
2016-12-23Make log template and log level configurable.Daniil Baturin
2016-12-23Handle Xml exceptions in Reference_tree.load_from_xml and re-raise as ↵Daniil Baturin
Bad_interface_definition to make things simpler for callers.
2016-12-23Move housekeeping stuff from vyconfd.ml to Startup module.Daniil Baturin
2016-12-22Re-generate the RNG schema for interface definitions.Daniil Baturin
2016-12-22Merge branch 'philsummers-master'Daniil Baturin
2016-12-22T226: Add secret and hidden properties to the reference tree.Phil Summers
2016-12-22Merge branch 'philsummers-master'Daniil Baturin
2016-12-21T225: Added inactive and ephemeral fields to node data in Config_treePhil Summers
2016-12-20Add merlin setup to the repo.Daniil Baturin
2016-12-20Add tests for the Reference_tree.is_multi function.Daniil Baturin
2016-12-20Merge branch 'master' of github.com:dmbaturin/vyconf-experimentalDaniil Baturin
2016-12-20T224: add node comment functionality to the config tree.Daniil Baturin
2016-12-19Merge pull request #1 from hiroyuki-sato/fix_docDaniil Baturin
Add toml and fileutils to the build dependencies information in the README
2016-12-19Add toml and fileutilsHiroyuki Sato
2016-12-15Add a few missing reference tree test cases for valueless nodes and garbage ↵Daniil Baturin
after the value.
2016-12-15T212: use a directory (normally $program_dir/validators) for external ↵Daniil Baturin
validators. What's bad is that right now way too many things are aware of the nature of external validators, and the validators dir (formerly validators hashtable) is passed around a lot. We'll need to think it through.
2016-12-15Add Directories module for storing directory structure information.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: Add tests and test data for the vyconfd config loader.Daniil Baturin
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-14Move version info out of defaults to its own module.Daniil Baturin
2016-12-14T210: use TOML for the vyconf config file.Daniil Baturin
Add an example of the file too.
2016-12-14Add default values for optional config fields to the Defaults module.Daniil Baturin
Related to T210.
2016-12-13README revamp.Daniil Baturin
2016-12-13Ignore binaries and oasis-generated files.Daniil Baturin
If we ever modify those files, we'll remove them from .gitignore of course.
2016-12-13Remove oasis-generated files, not needed at least until we modify anything ↵Daniil Baturin
in them.
2016-12-13Fix a few instances of sloppy sequences (with non-unit expressions).Daniil Baturin
2016-12-13Add -strict-sequence flag.Daniil Baturin
The correct way to write sequences with expressions of type other than unit is to use the ignore function: ignore 42; exit 0