diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-07-12 08:10:22 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-07-12 08:11:28 +0200 |
commit | 84305a8b98bb2aa3b616324d6088b7892103ae77 (patch) | |
tree | 8fb7b849c69f447e7030ceb6ec77514438c17248 /op-mode-definitions | |
parent | 7acd5e4b5319143630317f8d39fee9043aed63f5 (diff) | |
download | vyos-1x-84305a8b98bb2aa3b616324d6088b7892103ae77.tar.gz vyos-1x-84305a8b98bb2aa3b616324d6088b7892103ae77.zip |
op-mode: T427: add "summary" command for WireGuard interface information
(cherry picked from commit 2f3043ffce8a2556d12b3193df7fd3cdc9fdad09)
Diffstat (limited to 'op-mode-definitions')
-rw-r--r-- | op-mode-definitions/wireguard.xml.in | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/op-mode-definitions/wireguard.xml.in b/op-mode-definitions/wireguard.xml.in index 7e16d87e9..22b08002d 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"> |