summaryrefslogtreecommitdiff
path: root/src/session.mli
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2025-06-24 07:07:09 -0500
committerJohn Estabrook <jestabro@vyos.io>2025-07-06 18:27:40 -0500
commit59ebae9198439ddd1e9bbdec61d163f638e1071a (patch)
tree119133764b05a6cd1a5a182c555044b2170f4a17 /src/session.mli
parent1e4f661b8c29edf0b03eac4adf032735d6a885a7 (diff)
downloadvyconf-59ebae9198439ddd1e9bbdec61d163f638e1071a.tar.gz
vyconf-59ebae9198439ddd1e9bbdec61d163f638e1071a.zip
T7499: use direct request to vyconfd to avoid re-validating paths
Merging before passing to the backend results in re-validation of existing paths in the proposed config; this is unavoidable with the legacy backend. For vyconf, send the merge proposal with the request, so validation is only required on new paths.
Diffstat (limited to 'src/session.mli')
-rw-r--r--src/session.mli2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/session.mli b/src/session.mli
index 0398bb1..1a9b79f 100644
--- a/src/session.mli
+++ b/src/session.mli
@@ -39,6 +39,8 @@ val session_changed : world -> session_data -> bool
val load : world -> session_data -> string -> bool -> session_data
+val merge : world -> session_data -> string -> bool -> session_data
+
val save : world -> session_data -> string -> session_data
val get_value : world -> session_data -> string list -> string