summaryrefslogtreecommitdiff
path: root/src/session.ml
diff options
context:
space:
mode:
Diffstat (limited to 'src/session.ml')
-rw-r--r--src/session.ml3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/session.ml b/src/session.ml
index 5f0d5a3..953df25 100644
--- a/src/session.ml
+++ b/src/session.ml
@@ -107,6 +107,9 @@ let delete w s path =
let config = apply_cfg_op op s.proposed_config in
{s with proposed_config=config; changeset=(op :: s.changeset)}
+let discard w s =
+ {s with proposed_config=w.running_config}
+
let load w s file =
let ct = Vyos1x.Config_file.load_config file in
match ct with