summaryrefslogtreecommitdiff
path: root/op-mode-definitions
diff options
context:
space:
mode:
authorsarthurdev <965089+sarthurdev@users.noreply.github.com>2021-07-19 13:50:12 +0200
committersarthurdev <965089+sarthurdev@users.noreply.github.com>2021-07-19 19:11:33 +0200
commitc96c3ea2ed672394b04fcae924d351565ec9dc6c (patch)
tree41571da1693a25f5c695e62db0ccf0d4aefad2af /op-mode-definitions
parent75fbbc836d8a2fe521c2fa97a385266b693cde21 (diff)
downloadvyos-1x-c96c3ea2ed672394b04fcae924d351565ec9dc6c.tar.gz
vyos-1x-c96c3ea2ed672394b04fcae924d351565ec9dc6c.zip
pki: wireguard: T3642: Replace/remove old Wireguard op-mode commands
Diffstat (limited to 'op-mode-definitions')
-rw-r--r--op-mode-definitions/wireguard.xml.in41
1 files changed, 9 insertions, 32 deletions
diff --git a/op-mode-definitions/wireguard.xml.in b/op-mode-definitions/wireguard.xml.in
index a84980b44..ac3daa3b8 100644
--- a/op-mode-definitions/wireguard.xml.in
+++ b/op-mode-definitions/wireguard.xml.in
@@ -8,24 +8,6 @@
<help>Generate Wireguard keys</help>
</properties>
<children>
- <leafNode name="default-keypair">
- <properties>
- <help>Generate the default Wireguard keypair</help>
- </properties>
- <command>sudo ${vyos_op_scripts_dir}/wireguard.py --genkey</command>
- </leafNode>
- <leafNode name="preshared-key">
- <properties>
- <help>Generate a Wireguard preshared key</help>
- </properties>
- <command>${vyos_op_scripts_dir}/wireguard.py --genpsk</command>
- </leafNode>
- <tagNode name="named-keypairs">
- <properties>
- <help>Generate specified Wireguard keypairs</help>
- </properties>
- <command>sudo ${vyos_op_scripts_dir}/wireguard.py --genkey --location "$4"</command>
- </tagNode>
<tagNode name="client-config">
<properties>
<help>Generate Client config QR code</help>
@@ -94,25 +76,20 @@
<help>Show Wireguard keys</help>
</properties>
<children>
- <tagNode name="pubkey">
+ <leafNode name="pubkey">
<properties>
- <help>Show specified Wireguard public key</help>
- <completionHelp>
- <script>${vyos_op_scripts_dir}/wireguard.py --listkdir</script>
- </completionHelp>
+ <help>Show Wireguard public keys</help>
</properties>
- <command>${vyos_op_scripts_dir}/wireguard.py --showpub --location "$5"</command>
- </tagNode>
- <tagNode name="privkey">
+ <command>${vyos_op_scripts_dir}/wireguard.py --showpub</command>
+ </leafNode>
+ <leafNode name="privkey">
<properties>
- <help>Show specified Wireguard private key</help>
- <completionHelp>
- <script>${vyos_op_scripts_dir}/wireguard.py --listkdir</script>
- </completionHelp>
+ <help>Show Wireguard private keys</help>
</properties>
- <command>${vyos_op_scripts_dir}/wireguard.py --showpriv --location "$5"</command>
- </tagNode>
+ <command>${vyos_op_scripts_dir}/wireguard.py --showpriv</command>
+ </leafNode>
</children>
+ <command>${vyos_op_scripts_dir}/wireguard.py --showpub --showpriv</command>
</node>
</children>
</node>