Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

T6718: use the vyconf daemon for validation of set commands #11

Merged
merged 22 commits into from
Nov 7, 2024

Commits on Oct 28, 2024

  1. T6718: update build system, drop batteries, and adjust for lib changes

    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)
    jestabro committed Oct 28, 2024
    Configuration menu
    Copy the full SHA
    5d7927e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    037c3ce View commit details
    Browse the repository at this point in the history
  3. T6718: add rule to generate protobuf with name change

    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.
    jestabro committed Oct 28, 2024
    Configuration menu
    Copy the full SHA
    92b9c5e View commit details
    Browse the repository at this point in the history
  4. T6718: update tests

    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.
    jestabro committed Oct 28, 2024
    Configuration menu
    Copy the full SHA
    60cc099 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    085b22f View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    cacbe9c View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    1e4123c View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    a2781ef View commit details
    Browse the repository at this point in the history
  9. T6718: root node now has empty name

    The root node name was changed in vyos1x-config (T4491) so as not to
    conflict with actual nodes named "root".
    jestabro committed Oct 28, 2024
    Configuration menu
    Copy the full SHA
    204624e View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    5616303 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    75441a5 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    bd17726 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    2f6348a View commit details
    Browse the repository at this point in the history
  14. T6718: drop ref to util

    For convenience and to avoid dune build conflict, all util functions now
    reside in vyos1x-config.util.
    jestabro committed Oct 28, 2024
    Configuration menu
    Copy the full SHA
    43df38f View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    73652e2 View commit details
    Browse the repository at this point in the history
  16. T6718: fix teardown method

    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.
    jestabro committed Oct 28, 2024
    Configuration menu
    Copy the full SHA
    a547303 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    b8dbd4d View commit details
    Browse the repository at this point in the history
  18. T6718: move vyos1x-adapter into subdirectory

    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.
    jestabro committed Oct 28, 2024
    Configuration menu
    Copy the full SHA
    4aee642 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    54c0bb2 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    aae8fbf View commit details
    Browse the repository at this point in the history
  21. T6718: read argv explicity instead of using Arg

    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.
    jestabro committed Oct 28, 2024
    Configuration menu
    Copy the full SHA
    7c093d7 View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    9b90d3c View commit details
    Browse the repository at this point in the history