summaryrefslogtreecommitdiff
path: root/op-mode-definitions
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-03-17 14:44:02 +0100
committerChristian Breunig <christian@breunig.cc>2024-03-17 18:48:48 +0100
commit09de453194e9f8e7aa5dcb2e5c8de5a89e82708d (patch)
tree87a8a9a47ec0c9833fe7ce6c7121bf74103b7f2a /op-mode-definitions
parent5daebff4a5cc570f22c75e002ded8564b8e22e33 (diff)
downloadvyos-1x-09de453194e9f8e7aa5dcb2e5c8de5a89e82708d.tar.gz
vyos-1x-09de453194e9f8e7aa5dcb2e5c8de5a89e82708d.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]
Diffstat (limited to 'op-mode-definitions')
-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>