summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-03-17 14:44:02 +0100
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2024-03-18 19:48:13 +0000
commitd24b35b39560d66613d1e9de9e2a526e744a8d87 (patch)
tree1f30a074f46ee7d14e6402442433cb44945311e0
parent20e08490e0a2c84c4925400c51fa9eb05f96f5b6 (diff)
downloadvyos-1x-d24b35b39560d66613d1e9de9e2a526e744a8d87.tar.gz
vyos-1x-d24b35b39560d66613d1e9de9e2a526e744a8d87.zip
op-mode: T6133: add support to manually trigger commit-archive update
Automatic update of the remote commit-archive could fail under certian circumstances, add an op-mode command to manually trigger the update: cpo@LR1.wue3# run force commit-archive Archiving config... git+https://git.FOOO.de/cpo/vyos-config-backup [edit] (cherry picked from commit 09de453194e9f8e7aa5dcb2e5c8de5a89e82708d)
-rw-r--r--op-mode-definitions/force-commit-archive.xml.in13
1 files changed, 13 insertions, 0 deletions
diff --git a/op-mode-definitions/force-commit-archive.xml.in b/op-mode-definitions/force-commit-archive.xml.in
new file mode 100644
index 000000000..162323c20
--- /dev/null
+++ b/op-mode-definitions/force-commit-archive.xml.in
@@ -0,0 +1,13 @@
+<?xml version="1.0"?>
+<interfaceDefinition>
+ <node name="force">
+ <children>
+ <leafNode name="commit-archive">
+ <properties>
+ <help>Manually archive configuration</help>
+ </properties>
+ <command>/usr/bin/config-mgmt</command>
+ </leafNode>
+ </children>
+ </node>
+</interfaceDefinition>