diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-11-11 19:56:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-11 19:56:18 +0100 |
commit | b3412d5d3ea15f5880536242d3067dd1393b75de (patch) | |
tree | cbbbf56cf8309183b489b26663060d70108eddd8 | |
parent | 693638320db4493f7042363bc672e90d441155a7 (diff) | |
parent | 26463065e7482e6fb3ad4a78b0a31f9bb5008a8e (diff) | |
download | vyos-1x-b3412d5d3ea15f5880536242d3067dd1393b75de.tar.gz vyos-1x-b3412d5d3ea15f5880536242d3067dd1393b75de.zip |
Merge pull request #1061 from srividya0208/T3796
T3796:op-mode: wireguard interface not shown
-rw-r--r-- | op-mode-definitions/wireguard.xml | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/op-mode-definitions/wireguard.xml b/op-mode-definitions/wireguard.xml index 681bb5f47..52789a886 100644 --- a/op-mode-definitions/wireguard.xml +++ b/op-mode-definitions/wireguard.xml @@ -19,7 +19,7 @@ <help>generate a wireguard preshared key</help> </properties> <command>${vyos_op_scripts_dir}/wireguard.py --genpsk</command> - </leafNode> + </leafNode> </children> </node> </children> @@ -51,10 +51,10 @@ <properties> <help>show wireguard interface information</help> <completionHelp> - <script>${vyos_completion_dir}/list_interfaces.py -t wireguard</script> + <script>${vyos_completion_dir}/list_interfaces.py --type wireguard</script> </completionHelp> </properties> - <command>sudo wg show "$4"</command> + <command>${vyatta_bindir}/vyatta-show-interfaces.pl --intf="$4"</command> <children> <leafNode name="allowed-ips"> <properties> @@ -74,12 +74,17 @@ </properties> <command>sudo wg show "$4" peers</command> </leafNode> - <!-- more commands upon request --> + <!-- more commands upon request --> </children> </tagNode> + <node name="wireguard"> + <properties> + <help>Show WireGuard interface information</help> + </properties> + <command> ${vyatta_bindir}/vyatta-show-interfaces.pl --intf-type=wireguard --action=show-brief</command> + </node> </children> </node> </children> </node> </interfaceDefinition> - |