summaryrefslogtreecommitdiff
path: root/src/reference_tree.ml
AgeCommit message (Collapse)Author
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-16Add logging of interface definition file loading.Daniil Baturin
Move the high level load_interface_definitions function from Reference_tree to Startup.
2018-02-11Rename Util.string_of_path to string_of_list since it can be used for any lists,Daniil Baturin
not just config tree paths. Add analogous function for converting a list of strings to JSON.
2017-01-17T231: Add a function for loading interface definitions from a directory (#5)Shon Feder
* T231: Load directory of interface definitions * T231: Add ounit package to merlin config * T231: Add tests for loading dir of definitions * squash! T231: Load directory of interface definitions * squash! T231: Add tests for loading dir of definitions
2017-01-16Remove the assumptions about validator argument being mandatory.Daniil Baturin
2017-01-16Update reference tree loader to match the schema.Daniil Baturin
2017-01-13T254: disallow node names with characters significant to the curly config parserDaniil Baturin
(whitespace, braces, square brackets, quotes, and hash).
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-23T230: Add missing data access functions to the Reference_tree module with ↵Phil Summers
unit tests
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-22T226: Add secret and hidden properties to the reference tree.Phil Summers
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.
2015-09-25Move the node_type type to Reference_treeDaniil Baturin
It shall not be used by Config_tree, so there is no reason to keep it there.
2015-08-28Add is_multi function to the reference tree module.Daniil Baturin
This is important for decision is set should add or replace a value.
2015-04-26Add an option to keep child order, will be used for rendering.Daniil Baturin
2015-04-26Add path validation functionality.Daniil Baturin
2015-04-24Remove debug prints.Daniil Baturin
2015-04-24Initial implementation of the reference tree module.Daniil Baturin