diff options
author | srividya0208 <a.srividya@vyos.io> | 2021-10-30 15:54:40 -0400 |
---|---|---|
committer | srividya0208 <a.srividya@vyos.io> | 2021-11-08 00:06:09 -0500 |
commit | 26463065e7482e6fb3ad4a78b0a31f9bb5008a8e (patch) | |
tree | 8f3f17694455e821dccf71aba0a9988c674c4d25 /op-mode-definitions/wireguard.xml | |
parent | 25fea6d05b378792fde1effc757fc8922253251e (diff) | |
download | vyos-1x-26463065e7482e6fb3ad4a78b0a31f9bb5008a8e.tar.gz vyos-1x-26463065e7482e6fb3ad4a78b0a31f9bb5008a8e.zip |
T3796:op-mode: wireguard interface not shown
When executed the command 'show interfaces wireguard' command, it is not
showing the configured interface in the output. Modified the script to show
the interface results.
** Correected the indentation of the properties field of line number 81-83**
Diffstat (limited to 'op-mode-definitions/wireguard.xml')
-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> - |