From ff25cb35c93e464acb7c18d329323ba841311abe Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Tue, 7 Sep 2021 11:26:42 +0200 Subject: op-mode: xml: improve "show interfaces " help text (cherry picked from commit bd2c79ebb8abbd844f4b0568110c7bcea0d8f4f1) --- .../show-interfaces-wireguard.xml.in | 66 ++++++++++++++++++++++ 1 file changed, 66 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..c9b754dcd --- /dev/null +++ b/op-mode-definitions/show-interfaces-wireguard.xml.in @@ -0,0 +1,66 @@ + + + + + + + + + Show specified WireGuard interface information + + + + + ${vyos_op_scripts_dir}/show_interfaces.py --intf="$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 + + + + Show interface public-key + + sudo wg show "$4" public-key + + + + 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