summaryrefslogtreecommitdiff
path: root/op-mode-definitions/generate-wireguard.xml.in
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-08-08 22:21:40 +0200
committerChristian Poessinger <christian@poessinger.com>2021-08-08 22:21:40 +0200
commitb40e57cc9b516f4ce206681a17f8624a2ab04139 (patch)
treeffe2636c25097a0cd2e01cf94d9fbbcb9b437a98 /op-mode-definitions/generate-wireguard.xml.in
parent9cde21563cd291c3ccd3c629e4d491277ee1f356 (diff)
downloadvyos-1x-b40e57cc9b516f4ce206681a17f8624a2ab04139.tar.gz
vyos-1x-b40e57cc9b516f4ce206681a17f8624a2ab04139.zip
pki: wireguard: T3642: add alias "generate wireguard key-pair" command
Triggers the same code as "generate pki wireguard key-pair" which makes it easier for users switching from 1.3 -> 1.4.
Diffstat (limited to 'op-mode-definitions/generate-wireguard.xml.in')
-rw-r--r--op-mode-definitions/generate-wireguard.xml.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/op-mode-definitions/generate-wireguard.xml.in b/op-mode-definitions/generate-wireguard.xml.in
index 6f9f62a30..6557b463b 100644
--- a/op-mode-definitions/generate-wireguard.xml.in
+++ b/op-mode-definitions/generate-wireguard.xml.in
@@ -59,6 +59,12 @@
</tagNode>
</children>
</tagNode>
+ <leafNode name="key-pair">
+ <properties>
+ <help>Generate Wireguard key pair for use with server or peer</help>
+ </properties>
+ <command>sudo ${vyos_op_scripts_dir}/pki.py --action generate --wireguard --key "noname"</command>
+ </leafNode>
</children>
</node>
</children>