summaryrefslogtreecommitdiff
path: root/op-mode-definitions
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-12-18 19:37:22 +0100
committerGitHub <noreply@github.com>2024-12-18 19:37:22 +0100
commitfdb9ce311ae485bcdaa59c5653c631df7efd3e29 (patch)
tree05c1684c9c1e000ed7255c519fa2f434e3a81e7d /op-mode-definitions
parent11e89b1a1295b21d8c3b3e3d556ecb00506856ab (diff)
parent73b9eba81999744ba0adf4c252ccdb2bd0bd2a19 (diff)
downloadvyos-1x-fdb9ce311ae485bcdaa59c5653c631df7efd3e29.tar.gz
vyos-1x-fdb9ce311ae485bcdaa59c5653c631df7efd3e29.zip
Merge pull request #4233 from HollyGurza/T6934
T6934: Add preshared key for zabbix-agent monitoring service
Diffstat (limited to 'op-mode-definitions')
-rw-r--r--op-mode-definitions/generate-psk.xml.in28
1 files changed, 28 insertions, 0 deletions
diff --git a/op-mode-definitions/generate-psk.xml.in b/op-mode-definitions/generate-psk.xml.in
new file mode 100644
index 000000000..69963f5be
--- /dev/null
+++ b/op-mode-definitions/generate-psk.xml.in
@@ -0,0 +1,28 @@
+<?xml version="1.0"?>
+<interfaceDefinition>
+ <node name="generate">
+ <children>
+ <node name="psk">
+ <properties>
+ <help>Generate PSK key</help>
+ </properties>
+ <children>
+ <node name="random">
+ <properties>
+ <help>Generate random hex PSK key</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/generate_psk.py</command>
+ <children>
+ <tagNode name="size">
+ <properties>
+ <help>Key size in bytes</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/generate_psk.py --hex_size "$5"</command>
+ </tagNode>
+ </children>
+ </node>
+ </children>
+ </node>
+ </children>
+ </node>
+</interfaceDefinition>