summaryrefslogtreecommitdiff
path: root/op-mode-definitions
diff options
context:
space:
mode:
authorhagbard <vyosdev@derith.de>2018-08-20 21:42:36 +0000
committerhagbard <vyosdev@derith.de>2018-08-20 21:42:36 +0000
commit521c32104c063011088f981e3dc136f32e744deb (patch)
tree7c450e8013f9d89e5edf7e44e447daaacf4c103c /op-mode-definitions
parent2a4b380ecdf5c51a41dfee64652cd77789a8204c (diff)
parentb3892fe872202b97d8ed58a60d15d7d0efa7a22f (diff)
downloadvyos-1x-521c32104c063011088f981e3dc136f32e744deb.tar.gz
vyos-1x-521c32104c063011088f981e3dc136f32e744deb.zip
Merge branch 'T427' into current
Diffstat (limited to 'op-mode-definitions')
-rw-r--r--op-mode-definitions/wireguard.xml34
1 files changed, 34 insertions, 0 deletions
diff --git a/op-mode-definitions/wireguard.xml b/op-mode-definitions/wireguard.xml
index 29fce33b6..a7e156d8d 100644
--- a/op-mode-definitions/wireguard.xml
+++ b/op-mode-definitions/wireguard.xml
@@ -36,6 +36,40 @@
</leafNode>
</children>
</node>
+ <node name="interfaces">
+ <children>
+ <tagNode name="wireguard">
+ <properties>
+ <help>show wireguard interface information</help>
+ <completionHelp>
+ <script>${vyos_completion_dir}/list_interfaces.py -t wireguard</script>
+ </completionHelp>
+ </properties>
+ <command>sudo wg show "$4"</command>
+ <children>
+ <leafNode name="allowed-ips">
+ <properties>
+ <help>show all allowed-ips for the specified interface</help>
+ </properties>
+ <command>sudo wg show "$4" allowed-ips</command>
+ </leafNode>
+ <leafNode name="endpoints">
+ <properties>
+ <help>show all endpoints for the specified interface</help>
+ </properties>
+ <command>sudo wg show "$4" endpoints</command>
+ </leafNode>
+ <leafNode name="peers">
+ <properties>
+ <help>show all peer IDs for the specified interface</help>
+ </properties>
+ <command>sudo wg show "$4" peers</command>
+ </leafNode>
+ <!-- more commands upon request -->
+ </children>
+ </tagNode>
+ </children>
+ </node>
</children>
</node>
</interfaceDefinition>