Age | Commit message (Collapse) | Author | |
---|---|---|---|
2024-12-09 | T6718: use correct lib name in absence of libvyatta-cfg-dev | John Estabrook | |
An artifact of development was the use of lib name libvyatta-cfg.so for dlopen instead of libyatta-cfg.so.1. The former exists when the libvyatta-cfg-dev package is installed, as it is when vyatta-cfg is built locally. As the dev package is not needed nor used by default builds, correct to the latter lib name, as installed by libvyatta-cfg. | |||
2024-11-07 | Merge pull request #11 from jestabro/vyconf-minimal | Daniil Baturin | |
T6718: use the vyconf daemon for validation of set commands | |||
2024-10-27 | T6718: drop output of rendered config on startup | John Estabrook | |
2024-10-27 | T6718: read argv explicity instead of using Arg | John Estabrook | |
The standard package Arg is understandably confused by paths such as: interfaces openvpn vtun0 openvpn-option --persist-tun Collect args from Sys.argv and use env vars for debug options. | |||
2024-10-27 | T6718: handle_connection should close fd on End_of_file | John Estabrook | |
2024-10-27 | T6718: drop unnecessary reference to file descriptor | John Estabrook | |
2024-10-27 | T6718: move vyos1x-adapter into subdirectory | John Estabrook | |
The vyos1x-adapter provides access to the legacy CStore set/delete functions using ctypes. Developed as a separate package, include as a subdir, to be retired when full replacements are available. | |||
2024-10-27 | T6718: add client_session module and test executable validate.ml | John Estabrook | |
2024-10-27 | T6718: fix teardown method | John Estabrook | |
An empty protobuf message does not correctly generate encode/decode functions. This appears to be fixed upstream, but for now, use workaround of adding a reasonable field. | |||
2024-10-27 | T6718: set perms on socket for group write access | John Estabrook | |
2024-10-27 | T6718: drop ref to util | John Estabrook | |
For convenience and to avoid dune build conflict, all util functions now reside in vyos1x-config.util. | |||
2024-10-27 | T6718: split path strings with single-quoted values containing ws | John Estabrook | |
2024-10-27 | T6718: add independent validate field and methods | John Estabrook | |
2024-10-27 | T6718: usr refpath to translate config paths to reference tree paths | John Estabrook | |
2024-10-27 | T6718: use vycli as test case | John Estabrook | |
2024-10-27 | T6718: root node now has empty name | John Estabrook | |
The root node name was changed in vyos1x-config (T4491) so as not to conflict with actual nodes named "root". | |||
2024-10-27 | T6718: restrict directory existence check to validators dir | John Estabrook | |
2024-10-27 | T6718: vyconfd.conf will be installed in /etc/vyos | John Estabrook | |
2024-10-27 | T6718: add vyconfd.conf for installation | John Estabrook | |
2024-10-27 | T6718: read reference tree json file on startup | John Estabrook | |
2024-10-27 | T6718: update tests | John Estabrook | |
Update tests, as appropriate: for example, the Vyconf config file grammar is distinct from the one currently used in vyos1x-config, consequently the curly_parser_test is not included. | |||
2024-10-27 | T6718: add rule to generate protobuf with name change | John Estabrook | |
Regenerate protobuf files: ocaml-protoc --ml_out src/ data/vyconf.proto The generated files vyconf.* are renamed vyconf_pbt.* instead of the split into vyconf_pb/vyconf_types as in the original implementation. | |||
2024-10-27 | T6718: reorganize layout for dune build of libs/executables | John Estabrook | |
2024-10-27 | T6718: update build system, drop batteries, and adjust for lib changes | John 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) | |||
2020-03-12 | Make the exeprimental status clear. | Daniil Baturin | |
2020-03-12 | Fix module path for newer versions of the Protobuf compiler runtime. | Daniil Baturin | |
2019-02-16 | Update the opam and oasis files with proper dependencies.VyOS_1.2-2019Q4 | Daniil Baturin | |
2019-02-14 | Add functions for copying and moving nodes. | Daniil Baturin | |
2019-02-14 | Fix lwt package names. | Daniil Baturin | |
2019-01-24 | Update README.mdv0.1 | Christian Poessinger | |
2019-01-20 | README: update build instructions | Christian Poessinger | |
2019-01-19 | Adjust the build for latest Lwt and README for latest OCaml. | Daniil Baturin | |
2018-11-29 | Escape special characters inside value strings when converting configs to ↵ | Daniil Baturin | |
commands. | |||
2018-09-02 | Add support for node renaming. | Daniil Baturin | |
2018-06-06 | Use String.concat instead of reinventing it with fold. | Daniil Baturin | |
2018-06-05 | Add a function for getting sorted children from a node and use it for ↵ | Daniil Baturin | |
sorting set commands. | |||
2018-06-04 | Initial implementation of the commands formatter. | Daniil Baturin | |
2018-05-23 | Expose missing exceptions from Config_tree in the module interface. | Daniil Baturin | |
2018-05-23 | Render valueless nodes correctly. | Daniil Baturin | |
The canonical format for valueless nodes is "foo;". There are two cases: when it's known from the reference tree that a node is valueless, we should render it the canonical way. However, a valueless node is not the same as a normal node with no children, semantically, so nodes that are note valueless should be rendered as "foo {}". If the reference tree is not present, resort to rendering all nodes without values as if they were normal nodes with no children rather than as if they were valueless. The parser is unaware of the distinction, so there are no implications for it. | |||
2018-05-22 | Remove a leftover debug print. | Daniil Baturin | |
2018-05-22 | Send a response to the client if error occurs. | Daniil Baturin | |
2018-05-21 | Merge branch 'master' of github.com:vyos/vyconf | Daniil Baturin | |
2018-05-21 | Get the show_config operation to work correctly. | Daniil Baturin | |
2018-05-14 | Merge pull request #10 from Taniadz/master | Daniil Baturin | |
T413: Make a schema for op mode | |||
2018-02-18 | Do not quote values that don't need quoting in Config_tree.render | Daniil Baturin | |
i.e. if they don't contain whitespace or characters of special significance to the parser (;[]{}#). | |||
2018-02-17 | Add Config_tree.render_at_level function for correct rendering of configs ↵ | Daniil Baturin | |
for human consumption. The idea of the correct (for subsequent parsing) and familiar for all other purposes rendering: * When rendering the entire config, do not render the invisible "root" node, only render its children. * When rendering config at specified path, do not include any nodes that are within the path (e.g. if path "system login" exists, "show system" request output should start with "login {", not "system { login { ..."). | |||
2018-02-16 | Delete the old socket file if it exists. | Daniil Baturin | |
Since there's no REUSEADDR semantic for UNIX domain sockets, that's best we can do. | |||
2018-02-16 | Implement config reading functions and a minimal command line client for ↵ | Daniil Baturin | |
using them. Yes, I hate oversized commits too, but this is hard to avoid sometimes. Adjustments to the Session functions logic required to make it work: Do not try to validate the path. The validation function is geared towards validating _set_ paths, so when path lacks a value, it doesn't work right. We assume that the path has been through set at some point, so if a path currently exists in the config tree, it is also a valid path that can be used for Reference_tree.is_leaf etc. | |||
2018-02-16 | Add logging of interface definition file loading. | Daniil Baturin | |
Move the high level load_interface_definitions function from Reference_tree to Startup. | |||
2018-02-12 | Add client support for the config read functions. | Daniil Baturin | |