summaryrefslogtreecommitdiff
path: root/op-mode-definitions/generate_tech-support_archive.xml.in
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-10-16 21:22:54 +0200
committerGitHub <noreply@github.com>2023-10-16 21:22:54 +0200
commitc5627b3268b6edd4ff3ff485ef13ebd30e577f03 (patch)
tree7c934c347e165236dc535d04be45d2dc67af0393 /op-mode-definitions/generate_tech-support_archive.xml.in
parentc345f83ed46f5721757003fd4763186cfd7345ec (diff)
parenteccad99d1388fa364bb9ac7549b54b2af294f07c (diff)
downloadvyos-1x-c5627b3268b6edd4ff3ff485ef13ebd30e577f03.tar.gz
vyos-1x-c5627b3268b6edd4ff3ff485ef13ebd30e577f03.zip
Merge pull request #2368 from vyos/mergify/bp/sagitta/pr-2367
op-mode: T5642: 'generate tech-support archive' moved to vyos-1x (backport #2367)
Diffstat (limited to 'op-mode-definitions/generate_tech-support_archive.xml.in')
-rw-r--r--op-mode-definitions/generate_tech-support_archive.xml.in29
1 files changed, 29 insertions, 0 deletions
diff --git a/op-mode-definitions/generate_tech-support_archive.xml.in b/op-mode-definitions/generate_tech-support_archive.xml.in
new file mode 100644
index 000000000..e95be3e28
--- /dev/null
+++ b/op-mode-definitions/generate_tech-support_archive.xml.in
@@ -0,0 +1,29 @@
+<?xml version="1.0"?>
+<interfaceDefinition>
+ <node name="generate">
+ <children>
+ <node name="tech-support">
+ <properties>
+ <help>Generate tech support info</help>
+ </properties>
+ <children>
+ <node name="archive">
+ <properties>
+ <help>Generate tech support archive</help>
+ </properties>
+ <command>sudo ${vyos_op_scripts_dir}/generate_tech-support_archive.py</command>
+ </node>
+ <tagNode name="archive">
+ <properties>
+ <help>Generate tech support archive to defined location</help>
+ <completionHelp>
+ <list> &lt;file&gt; &lt;scp://user:passwd@host&gt; &lt;ftp://user:passwd@host&gt;</list>
+ </completionHelp>
+ </properties>
+ <command>sudo ${vyos_op_scripts_dir}/generate_tech-support_archive.py $4</command>
+ </tagNode>
+ </children>
+ </node>
+ </children>
+ </node>
+</interfaceDefinition>