summaryrefslogtreecommitdiff
path: root/op-mode-definitions
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-07-12 08:10:22 +0200
committerChristian Poessinger <christian@poessinger.com>2021-07-12 08:10:55 +0200
commit2f3043ffce8a2556d12b3193df7fd3cdc9fdad09 (patch)
treeded26c2c10a2f8d02124683b1274e1db211aa289 /op-mode-definitions
parent562f4c276215cb8175aea1af8b279bd8e2a21171 (diff)
downloadvyos-1x-2f3043ffce8a2556d12b3193df7fd3cdc9fdad09.tar.gz
vyos-1x-2f3043ffce8a2556d12b3193df7fd3cdc9fdad09.zip
op-mode: T427: add "summary" command for WireGuard interface information
Diffstat (limited to 'op-mode-definitions')
-rw-r--r--op-mode-definitions/wireguard.xml.in7
1 files changed, 6 insertions, 1 deletions
diff --git a/op-mode-definitions/wireguard.xml.in b/op-mode-definitions/wireguard.xml.in
index 0df838b50..a84980b44 100644
--- a/op-mode-definitions/wireguard.xml.in
+++ b/op-mode-definitions/wireguard.xml.in
@@ -145,7 +145,12 @@
</properties>
<command>sudo wg show "$4" peers</command>
</leafNode>
- <!-- more commands upon request -->
+ <leafNode name="summary">
+ <properties>
+ <help>Shows current configuration and device information</help>
+ </properties>
+ <command>sudo wg show "$4"</command>
+ </leafNode>
</children>
</tagNode>
<node name="wireguard">