From edc64e7fb63757a3779df12945ecefca9c462952 Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Wed, 25 Jun 2025 17:35:01 +0100 Subject: op-mode: T7560: add support for virtual tag nodes for cases when commands need both fixed and variable arguments --- .../show-interfaces-wireguard.xml.in | 84 +++++++++++----------- 1 file changed, 42 insertions(+), 42 deletions(-) (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 index 6abca3a27..9457953ef 100644 --- a/op-mode-definitions/show-interfaces-wireguard.xml.in +++ b/op-mode-definitions/show-interfaces-wireguard.xml.in @@ -4,48 +4,6 @@ - - - Show specified WireGuard interface information - - - - - ${vyos_op_scripts_dir}/interfaces.py show --intf-name="$4" --intf-type=wireguard - - - - Show all IP addresses allowed for the specified interface - - wg show "$4" allowed-ips - - - - Show all endpoints for the specified interface - - wg show "$4" endpoints - - - - Show all peer IDs for the specified interface - - wg show "$4" peers - - - - Show interface public-key - - wg show "$4" public-key - - - - Shows current configuration and device information - - ${vyos_op_scripts_dir}/interfaces_wireguard.py show_summary --intf-name="$4" - - #include - - Show WireGuard interface information @@ -58,6 +16,48 @@ ${vyos_op_scripts_dir}/interfaces.py show --intf-type=wireguard + + + Show specified WireGuard interface information + + + + + ${vyos_op_scripts_dir}/interfaces.py show --intf-name="$4" --intf-type=wireguard + + + + Show all IP addresses allowed for the specified interface + + wg show "$4" allowed-ips + + + + Show all endpoints for the specified interface + + wg show "$4" endpoints + + + + Show all peer IDs for the specified interface + + wg show "$4" peers + + + + Show interface public-key + + wg show "$4" public-key + + + + Shows current configuration and device information + + ${vyos_op_scripts_dir}/interfaces_wireguard.py show_summary --intf-name="$4" + + #include + + -- cgit v1.2.3