From d1a05494ac672cf03fff7ebd20310a04e36ab6cd Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Wed, 11 Jun 2025 22:03:35 +0100 Subject: op-mode: T7543: move "clear interfaces [name] counters" to "clear interfaces counters [type] [name]" --- op-mode-definitions/clear-interfaces.xml.in | 825 +++++++++------------------- 1 file changed, 251 insertions(+), 574 deletions(-) diff --git a/op-mode-definitions/clear-interfaces.xml.in b/op-mode-definitions/clear-interfaces.xml.in index 31348808a..4b4362add 100644 --- a/op-mode-definitions/clear-interfaces.xml.in +++ b/op-mode-definitions/clear-interfaces.xml.in @@ -12,590 +12,267 @@ - Clear interface counters for all interfaces + Clear interface counters ${vyos_op_scripts_dir}/interfaces.py clear_counters - - - - Clear Bonding interface information - - - - - Clear all bonding interface counters - - ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-type "$3" - - - - - - Clear interface information for a given bonding interface - - - - - - - - Clear interface counters for a given bonding interface - - ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-name "$4" - - - - - - Clear Bridge interface information - - - - - Clear all bridge interface counters - - ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-type "$3" - - - - - - Clear interface information for a given bridge interface - - - - - - - - Clear interface counters for a given bridge interface - - ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-name "$4" - - - - - - Clear Dummy interface information - - - - - Clear all dummy interface counters - - ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-type "$3" - - - - - - Clear interface information for a given dummy interface - - - - - - - - Clear interface counters for a given dummy interface - - ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-name "$4" - - - - - - Clear Ethernet interface information - - - - - Clear all ethernet interface counters - - ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-type "$3" - - - - - - Clear interface information for a given ethernet interface - - - - - - - - Clear interface counters for a given ethernet interface - - ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-name "$4" - - - - - - Clear GENEVE interface information - - - - - Clear all GENEVE interface counters - - ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-type "$3" - - - - - - Clear interface information for a given GENEVE interface - - - - - - - - Clear interface counters for a given GENEVE interface - - ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-name "$4" - - - - - - Clear Input (ifb) interface information - - - - - Clear all Input interface counters - - ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-type "$3" - - - - - - Clear interface information for a given Input interface - - - - - - - - Clear interface counters for a given Input interface - - ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-name "$4" - - - - - - Clear L2TPv3 interface information - - - - - Clear all L2TPv3 interface counters - - ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-type "$3" - - - - - - Clear interface information for a given L2TPv3 interface - - - - - - - - Clear interface counters for a given L2TPv3 interface - - ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-name "$4" - - - - - - Clear Loopback interface information - - - - - Clear all loopback interface counters - - ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-type "$3" - - - - - - Clear interface information for a given loopback interface - - - - - - - - Clear interface counters for a given loopback interface - - ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-name "$4" - - - - - - Clear MACsec interface information - - - - - Clear all MACsec interface counters - - ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-type "$3" - - - - - - Clear interface information for a given MACsec interface - - - - - - - - Clear interface counters for a given MACsec interface - - ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-name "$4" - - - - - - Clear OpenVPN interface information - - - - - Clear all OpenVPN interface counters - - ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-type "$3" - - - - - - Clear interface information for a given OpenVPN interface - - - - - - - Clear interface counters for a given OpenVPN interface - - ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-name "$4" - - - - - - Clear PPPoE interface information - - - - - Clear all PPPoE interface counters - - ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-type "$3" + + + Clear counters for a given bonding interface + + + + + ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-name "$5" + + Clear bonding interface counters + ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-type bonding + + + + + Clear counters for a given bridge interface + + + + + ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-name "$5" + + Clear bridge interface counters + ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-type bridge + + + + + Clear counters for a given dummy interface + + + + + ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-name "$5" + + Clear dummy interface counters + ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-type dummy + + + + + Clear counters for a given ethernet interface + + + + + ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-name "$5" + + Clear ethernet interface counters + ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-type ethernet + + + + + Clear counters for a given GENEVE interface + + + + + ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-name "$5" + + Clear GENEVE interface counters + ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-type geneve + + + + + Clear counters for a given Input interface + + + + + ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-name "$5" + + Clear input interface counters + ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-type input + + + + + Clear counters for a given L2TPv3 interface + + + + + ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-name "$5" + + Clear L2TPv3 interface counters + ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-type l2tpeth + + + + + + Clear loopback interface counters + + ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-name lo - - - - - Clear interface information for a given PPPoE interface - - - - - - - - Clear interface counters for a given PPPoE interface - - ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-name "$4" - - - - - - Clear Pseudo-Ethernet/MACvlan interface information - - - - - Clear all Pseudo-Ethernet interface counters - - ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-type "$3" - - - - - - Clear interface information for a given Pseudo-Ethernet interface - - - - - - - - Clear interface counters for a given Pseudo-Ethernet interface - - ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-name "$4" - - - - - - Clear SSTP interface information - - - - - Clear all SSTP interface counters - - ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-type "$3" - - - - - - Clear interface information for a given SSTP interface - - - - - - - - Clear interface counters for a given SSTP interface - - ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-name "$4" - - - - - - Clear Tunnel interface information - - - - - Clear all tunnel interface counters - - ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-type "$3" - - - - - - Clear interface information for a given tunnel interface - - - - - - - - Clear interface counters for a given tunnel interface - - ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-name "$4" - - - - - - Clear virtual-ethernet interface information - - - - - Clear all virtual-ethernet interface counters - - ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-type "$3" - - - - - - Clear interface information for a given virtual-ethernet interface - - - - - - - - Clear interface counters for a given virtual-ethernet interface - - ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-name "$4" - - - - - - Clear VTI interface information - - - - - Clear all VTI interface counters - - ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-type "$3" - - - - - - Clear interface information for a given VTI interface - - - - - - - - Clear interface counters for a given VTI interface - - ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-name "$4" - - - - - - Clear VXLAN interface information - - - - - Clear all VXLAN interface counters - - ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-type "$3" - - - - - - Clear interface information for a given VXLAN interface - - - - - - - - Clear interface counters for a given VXLAN interface - - ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-name "$4" - - - - - - Clear Wireguard interface information - - - - - Clear all Wireguard interface counters - - ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-type "$3" - - - - - - Clear interface information for a given Wireguard interface - - - - - - - - Clear interface counters for a given Wireguard interface - - ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-name "$4" - - - - - - Clear Wireless (WLAN) interface information - - - - - Clear all wireless interface counters - - ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-type "$3" - - - - - - Clear interface information for a given wireless interface - - - - - - + + + Clear counters for a given MACsec interface + + + + + ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-name "$5" + + Clear MACsec interface counters + ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-type macsec + + + + + Clear counters for a given OpenVPN interface + + + + + ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-name "$5" + + Clear OpenVPN interface counters + ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-type openvpn + + + + + Clear counters for a given PPPoE interface + + + + + ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-name "$5" + + Clear PPPoE interface counters + ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-type pppoe + + + + + Clear counters for a given pseudo-ethernet interface + + + + + ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-name "$5" + + Clear pseudo-ethernet interface counters + ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-type pseudo-ethernet + + + + + Clear counters for a given SSTP interface + + + + + ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-name "$5" + + Clear SSTP interface counters + ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-type sstp + + + + + Clear counters for a given tunnel interface + + + + + ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-name "$5" + + Clear tunnel interface counters + ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-type tunnel + + + + + Clear counters for a given virtual-ethernet interface + + + + + ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-name "$5" + + Clear virtual-ethernet interface counters + ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-type virtual-ethernet + + + + + Clear counters for a given VTI interface + + + + + ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-name "$5" + + Clear VTI interface counters + ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-type vti + + + + + Clear counters for a given VXLAN interface + + + + + ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-name "$5" + + Clear VXLAN interface counters + ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-type vxlan + + + + + Clear counters for a given WireGuard interface + + + + + ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-name "$5" + + Clear WireGuard interface counters + ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-type wireguard + + + Clear counters for a given wireless interface - - ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-name "$4" - - - - - - Clear Wireless Modem (WWAN) interface information - - - - - Clear all WWAN interface counters - - ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-type "$3" - - - - - - Clear interface information for a given WWAN interface - - - - - - + + + + + ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-name "$5" + + Clear wireless interface counters + ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-type wireless + + + Clear counters for a given WWAN interface + + + - ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-name "$4" - + ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-name "$5" + + Clear wireless wide area network interface counters + ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-type wwan + + - + -- cgit v1.2.3