summaryrefslogtreecommitdiff
path: root/op-mode-definitions
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-07-22 22:53:45 +0200
committerChristian Poessinger <christian@poessinger.com>2021-07-22 23:04:33 +0200
commit6c571d9a99005d6ab32766d597985c6459241615 (patch)
treea80c79b4406ce8de457dc70c992185aa722e2a48 /op-mode-definitions
parent688022de47c366cffbf14f0f3cda511cea585ebc (diff)
downloadvyos-1x-6c571d9a99005d6ab32766d597985c6459241615.tar.gz
vyos-1x-6c571d9a99005d6ab32766d597985c6459241615.zip
pki: wireguard: T3642: add new op-mode command for public-key
Per interface public-key can now be retrieved via: vyos@vyos:~$ show interfaces wireguard wg10 public-key +XZr0oUjYRQuB/kcO1f+puOjKkiOWBG8eZX1Jpyq2n0=
Diffstat (limited to 'op-mode-definitions')
-rw-r--r--op-mode-definitions/show-interfaces-wireguard.xml.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/op-mode-definitions/show-interfaces-wireguard.xml.in b/op-mode-definitions/show-interfaces-wireguard.xml.in
index be22bbf98..ecbb903f8 100644
--- a/op-mode-definitions/show-interfaces-wireguard.xml.in
+++ b/op-mode-definitions/show-interfaces-wireguard.xml.in
@@ -31,6 +31,12 @@
</properties>
<command>sudo wg show "$4" peers</command>
</leafNode>
+ <leafNode name="public-key">
+ <properties>
+ <help>Show interface public-key</help>
+ </properties>
+ <command>sudo wg show "$4" public-key</command>
+ </leafNode>
<leafNode name="summary">
<properties>
<help>Shows current configuration and device information</help>