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 ++++++++++++++++++++++ op-mode-definitions/wireguard.xml.in | 53 ------------------- 2 files changed, 60 insertions(+), 53 deletions(-) create mode 100644 op-mode-definitions/show-interfaces-wireguard.xml.in (limited to 'op-mode-definitions') 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 + + + + + + + + diff --git a/op-mode-definitions/wireguard.xml.in b/op-mode-definitions/wireguard.xml.in index ac3daa3b8..04e200b32 100644 --- a/op-mode-definitions/wireguard.xml.in +++ b/op-mode-definitions/wireguard.xml.in @@ -93,59 +93,6 @@ - - - - - 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