From 688022de47c366cffbf14f0f3cda511cea585ebc Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Thu, 22 Jul 2021 22:52:47 +0200 Subject: xml: op-mode: move "show interfaces wireguard" to dedicated file --- .../show-interfaces-wireguard.xml.in | 60 ++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 op-mode-definitions/show-interfaces-wireguard.xml.in (limited to 'op-mode-definitions/show-interfaces-wireguard.xml.in') diff --git a/op-mode-definitions/show-interfaces-wireguard.xml.in b/op-mode-definitions/show-interfaces-wireguard.xml.in new file mode 100644 index 000000000..be22bbf98 --- /dev/null +++ b/op-mode-definitions/show-interfaces-wireguard.xml.in @@ -0,0 +1,60 @@ + + + + + + + + + Show Wireguard interface information + + + + + sudo ${vyos_op_scripts_dir}/wireguard.py --showinterface "$4" + + + + Show all IP addresses allowed for the specified interface + + sudo wg show "$4" allowed-ips + + + + Show all endpoints for the specified interface + + sudo wg show "$4" endpoints + + + + Show all peer IDs for the specified interface + + sudo wg show "$4" peers + + + + Shows current configuration and device information + + sudo wg show "$4" + + + + + + Show Wireguard interface information + + ${vyos_op_scripts_dir}/show_interfaces.py --intf-type=wireguard --action=show-brief + + + + Show detailed Wireguard interface information + + ${vyos_op_scripts_dir}/show_interfaces.py --intf-type=wireguard --action=show + + + + + + + + -- cgit v1.2.3