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) --- op-mode-definitions/show-interfaces-bonding.xml.in | 4 +- op-mode-definitions/show-interfaces-bridge.xml.in | 4 +- op-mode-definitions/show-interfaces-dummy.xml.in | 4 +- .../show-interfaces-ethernet.xml.in | 4 +- op-mode-definitions/show-interfaces-input.xml.in | 4 +- op-mode-definitions/show-interfaces-l2tpv3.xml.in | 2 +- .../show-interfaces-loopback.xml.in | 4 +- op-mode-definitions/show-interfaces-pppoe.xml.in | 2 +- .../show-interfaces-pseudo-ethernet.xml.in | 4 +- op-mode-definitions/show-interfaces-tunnel.xml.in | 4 +- op-mode-definitions/show-interfaces-vti.xml.in | 4 +- op-mode-definitions/show-interfaces-vxlan.xml.in | 2 +- .../show-interfaces-wireguard.xml.in | 66 +++++++++++++++++ .../show-interfaces-wireless.xml.in | 82 ++++++++++++++++++++++ op-mode-definitions/show-interfaces-wwan.xml.in | 2 +- op-mode-definitions/wireguard.xml.in | 53 -------------- op-mode-definitions/wireless.xml.in | 79 --------------------- 17 files changed, 170 insertions(+), 154 deletions(-) create mode 100644 op-mode-definitions/show-interfaces-wireguard.xml.in create mode 100644 op-mode-definitions/show-interfaces-wireless.xml.in (limited to 'op-mode-definitions') diff --git a/op-mode-definitions/show-interfaces-bonding.xml.in b/op-mode-definitions/show-interfaces-bonding.xml.in index c1c76b059..d4e737d5b 100644 --- a/op-mode-definitions/show-interfaces-bonding.xml.in +++ b/op-mode-definitions/show-interfaces-bonding.xml.in @@ -6,7 +6,7 @@ - Show bonding interface information + Show specified Bonding interface information interfaces bonding @@ -46,7 +46,7 @@ - Show bonding interface information + Show Bonding interface information ${vyos_op_scripts_dir}/show_interfaces.py --intf-type=bonding --action=show-brief diff --git a/op-mode-definitions/show-interfaces-bridge.xml.in b/op-mode-definitions/show-interfaces-bridge.xml.in index cc4b248b6..d4908b341 100644 --- a/op-mode-definitions/show-interfaces-bridge.xml.in +++ b/op-mode-definitions/show-interfaces-bridge.xml.in @@ -6,7 +6,7 @@ - Show bridge interface information + Show specified Bridge interface information interfaces bridge @@ -23,7 +23,7 @@ - Show bridge interface information + Show Bridge interface information ${vyos_op_scripts_dir}/show_interfaces.py --intf-type=bridge --action=show-brief diff --git a/op-mode-definitions/show-interfaces-dummy.xml.in b/op-mode-definitions/show-interfaces-dummy.xml.in index 7c24c6921..52d2cc7ee 100644 --- a/op-mode-definitions/show-interfaces-dummy.xml.in +++ b/op-mode-definitions/show-interfaces-dummy.xml.in @@ -6,7 +6,7 @@ - Show dummy interface information + Show specified Dummy interface information interfaces dummy @@ -23,7 +23,7 @@ - Show dummy interface information + Show Dummy interface information ${vyos_op_scripts_dir}/show_interfaces.py --intf-type=dummy --action=show-brief diff --git a/op-mode-definitions/show-interfaces-ethernet.xml.in b/op-mode-definitions/show-interfaces-ethernet.xml.in index df9e304a7..e414291d1 100644 --- a/op-mode-definitions/show-interfaces-ethernet.xml.in +++ b/op-mode-definitions/show-interfaces-ethernet.xml.in @@ -6,7 +6,7 @@ - Show ethernet interface information + Show specified Ethernet interface information interfaces ethernet @@ -72,7 +72,7 @@ - Show ethernet interface information + Show Ethernet interface information ${vyos_op_scripts_dir}/show_interfaces.py --intf-type=ethernet --action=show-brief diff --git a/op-mode-definitions/show-interfaces-input.xml.in b/op-mode-definitions/show-interfaces-input.xml.in index 15e8203e5..9ae3828c8 100644 --- a/op-mode-definitions/show-interfaces-input.xml.in +++ b/op-mode-definitions/show-interfaces-input.xml.in @@ -6,7 +6,7 @@ - Show input interface information + Show specified Input interface information interfaces input @@ -23,7 +23,7 @@ - Show input interface information + Show Input (ifb) interface information ${vyos_op_scripts_dir}/show_interfaces.py --intf-type=input --action=show-brief diff --git a/op-mode-definitions/show-interfaces-l2tpv3.xml.in b/op-mode-definitions/show-interfaces-l2tpv3.xml.in index 60fee34a1..2a1d6a1c6 100644 --- a/op-mode-definitions/show-interfaces-l2tpv3.xml.in +++ b/op-mode-definitions/show-interfaces-l2tpv3.xml.in @@ -6,7 +6,7 @@ - Show L2TPv3 interface information + Show specified L2TPv3 interface information interfaces l2tpv3 diff --git a/op-mode-definitions/show-interfaces-loopback.xml.in b/op-mode-definitions/show-interfaces-loopback.xml.in index b30b57909..25a75ffff 100644 --- a/op-mode-definitions/show-interfaces-loopback.xml.in +++ b/op-mode-definitions/show-interfaces-loopback.xml.in @@ -6,7 +6,7 @@ - Show loopback interface information + Show specified Loopback interface information interfaces loopback @@ -23,7 +23,7 @@ - Show loopback interface information + Show Loopback interface information ${vyos_op_scripts_dir}/show_interfaces.py --intf-type=loopback --action=show-brief diff --git a/op-mode-definitions/show-interfaces-pppoe.xml.in b/op-mode-definitions/show-interfaces-pppoe.xml.in index 18697a275..767836abf 100644 --- a/op-mode-definitions/show-interfaces-pppoe.xml.in +++ b/op-mode-definitions/show-interfaces-pppoe.xml.in @@ -6,7 +6,7 @@ - Show PPPoE interface information + Show specified PPPoE interface information interfaces pppoe diff --git a/op-mode-definitions/show-interfaces-pseudo-ethernet.xml.in b/op-mode-definitions/show-interfaces-pseudo-ethernet.xml.in index 195944745..2ae4b5a9e 100644 --- a/op-mode-definitions/show-interfaces-pseudo-ethernet.xml.in +++ b/op-mode-definitions/show-interfaces-pseudo-ethernet.xml.in @@ -6,7 +6,7 @@ - Show pseudo-ethernet/MACvlan interface information + Show specified Pseudo-Ethernet/MACvlan interface information interfaces pseudo-ethernet @@ -23,7 +23,7 @@ - Show pseudo-ethernet/MACvlan interface information + Show Pseudo-Ethernet/MACvlan interface information ${vyos_op_scripts_dir}/show_interfaces.py --intf-type=pseudo-ethernet --action=show-brief diff --git a/op-mode-definitions/show-interfaces-tunnel.xml.in b/op-mode-definitions/show-interfaces-tunnel.xml.in index 416de0299..51b25efd9 100644 --- a/op-mode-definitions/show-interfaces-tunnel.xml.in +++ b/op-mode-definitions/show-interfaces-tunnel.xml.in @@ -6,7 +6,7 @@ - Show tunnel interface information + Show specified Tunnel interface information interfaces tunnel @@ -23,7 +23,7 @@ - Show tunnel interface information + Show Tunnel interface information ${vyos_op_scripts_dir}/show_interfaces.py --intf-type=tunnel --action=show-brief diff --git a/op-mode-definitions/show-interfaces-vti.xml.in b/op-mode-definitions/show-interfaces-vti.xml.in index f51be2d19..b436b8414 100644 --- a/op-mode-definitions/show-interfaces-vti.xml.in +++ b/op-mode-definitions/show-interfaces-vti.xml.in @@ -6,7 +6,7 @@ - Show vti interface information + Show specified VTI interface information interfaces vti @@ -23,7 +23,7 @@ - Show vti interface information + Show VTI interface information ${vyos_op_scripts_dir}/show_interfaces.py --intf-type=vti --action=show-brief diff --git a/op-mode-definitions/show-interfaces-vxlan.xml.in b/op-mode-definitions/show-interfaces-vxlan.xml.in index 4e3cb93cd..1befd428c 100644 --- a/op-mode-definitions/show-interfaces-vxlan.xml.in +++ b/op-mode-definitions/show-interfaces-vxlan.xml.in @@ -6,7 +6,7 @@ - Show VXLAN interface information + Show specified VXLAN interface information interfaces vxlan 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 + + + + + + + + diff --git a/op-mode-definitions/show-interfaces-wireless.xml.in b/op-mode-definitions/show-interfaces-wireless.xml.in new file mode 100644 index 000000000..4a37417aa --- /dev/null +++ b/op-mode-definitions/show-interfaces-wireless.xml.in @@ -0,0 +1,82 @@ + + + + + + + + + Show Wireless (WLAN) interface information + + ${vyos_op_scripts_dir}/show_interfaces.py --intf-type=wireless --action=show-brief + + + + Show detailed wireless interface information + + ${vyos_op_scripts_dir}/show_interfaces.py --intf-type=wireless --action=show + + + + Show wireless interface configuration + + ${vyos_op_scripts_dir}/show_wireless.py --brief + + + + + + Show specified wireless interface information + + + + + ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" + + + + Show summary of the specified wireless interface information + + ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" --action=show-brief + + + + Show summary of the specified wireless interface information + + sudo ${vyos_op_scripts_dir}/show_wireless.py --scan "$4" + + + + Show detailed scan results + + sudo /sbin/iw dev "$4" scan ap-force + + + + + + Show specified Wireless interface information + + ${vyos_op_scripts_dir}/show_wireless.py --stations "$4" + + + + Show specified virtual network interface (vif) information + + ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4.$6" + + + + Show summary of specified virtual network interface (vif) information + + ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4.$6" --action=show-brief + + + + + + + + + + diff --git a/op-mode-definitions/show-interfaces-wwan.xml.in b/op-mode-definitions/show-interfaces-wwan.xml.in index 7e5f49ba6..3cd29b38a 100644 --- a/op-mode-definitions/show-interfaces-wwan.xml.in +++ b/op-mode-definitions/show-interfaces-wwan.xml.in @@ -6,7 +6,7 @@ - Show Wireless Wire Area Network (WWAN) interface information + Show specified Wireless Wire Area Network (WWAN) interface information interfaces wwan diff --git a/op-mode-definitions/wireguard.xml.in b/op-mode-definitions/wireguard.xml.in index 22b08002d..e2bc8a590 100644 --- a/op-mode-definitions/wireguard.xml.in +++ b/op-mode-definitions/wireguard.xml.in @@ -116,59 +116,6 @@ - - - - - show wireguard interface information - - - - - sudo ${vyos_op_scripts_dir}/wireguard.py --showinterface "$4" - - - - show all allowed-ips 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/wireless.xml.in b/op-mode-definitions/wireless.xml.in index a3a9d1f55..5d9db1544 100644 --- a/op-mode-definitions/wireless.xml.in +++ b/op-mode-definitions/wireless.xml.in @@ -37,83 +37,4 @@ - - - - - - - Show wireless interface information - - ${vyos_op_scripts_dir}/show_interfaces.py --intf-type=wireless --action=show-brief - - - - Show detailed wireless interface information - - ${vyos_op_scripts_dir}/show_interfaces.py --intf-type=wireless --action=show - - - - Show wireless interface configuration - - ${vyos_op_scripts_dir}/show_wireless.py --brief - - - - - - Show specified wireless interface information - - - - - ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" - - - - Show summary of the specified wireless interface information - - ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" --action=show-brief - - - - Show summary of the specified wireless interface information - - sudo ${vyos_op_scripts_dir}/show_wireless.py --scan "$4" - - - - Show detailed scan results - - sudo /sbin/iw dev "$4" scan ap-force - - - - - - Show specified wireless interface information - - ${vyos_op_scripts_dir}/show_wireless.py --stations "$4" - - - - Show specified virtual network interface (vif) information - - ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4.$6" - - - - Show summary of specified virtual network interface (vif) information - - ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4.$6" --action=show-brief - - - - - - - - - -- cgit v1.2.3