From a1c9c36c917a23d4cc3d5a9bbdd92c18829679b7 Mon Sep 17 00:00:00 2001 From: John Estabrook Date: Tue, 28 Mar 2023 13:55:08 -0500 Subject: interfaces: T4885: add op-mode-defs for clear interfaces counters --- op-mode-definitions/counters.xml.in | 598 ++++++++++++++++++++++++++++++++++++ 1 file changed, 598 insertions(+) create mode 100644 op-mode-definitions/counters.xml.in (limited to 'op-mode-definitions/counters.xml.in') diff --git a/op-mode-definitions/counters.xml.in b/op-mode-definitions/counters.xml.in new file mode 100644 index 000000000..4bf08d201 --- /dev/null +++ b/op-mode-definitions/counters.xml.in @@ -0,0 +1,598 @@ + + + + + + + + + Clear interface counters for all interfaces + + sudo ${vyos_op_scripts_dir}/interfaces.py clear_counters + + + + Clear Bonding interface information + + + + + Clear all bonding interface counters + + sudo ${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 + + sudo ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf_name "$4" + + + + + + Clear Bridge interface information + + + + + Clear all bridge interface counters + + sudo ${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 + + sudo ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf_name "$4" + + + + + + Clear Dummy interface information + + + + + Clear all dummy interface counters + + sudo ${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 + + sudo ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf_name "$4" + + + + + + Clear Ethernet interface information + + + + + Clear all ethernet interface counters + + sudo ${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 + + sudo ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf_name "$4" + + + + + + Clear GENEVE interface information + + + + + Clear all GENEVE interface counters + + sudo ${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 + + sudo ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf_name "$4" + + + + + + Clear Input (ifb) interface information + + + + + Clear all Input interface counters + + sudo ${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 + + sudo ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf_name "$4" + + + + + + Clear L2TPv3 interface information + + + + + Clear all L2TPv3 interface counters + + sudo ${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 + + sudo ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf_name "$4" + + + + + + Clear Loopback interface information + + + + + Clear all loopback interface counters + + sudo ${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 + + sudo ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf_name "$4" + + + + + + Clear MACsec interface information + + + + + Clear all MACsec interface counters + + sudo ${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 + + sudo ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf_name "$4" + + + + + + Clear OpenVPN interface information + + + + + Clear all OpenVPN interface counters + + sudo ${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 + + sudo ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf_name "$4" + + + + + + Clear PPPoE interface information + + + + + Clear all PPPoE interface counters + + sudo ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf_type "$3" + + + + + + Clear interface information for a given PPPoE interface + + + + + + + + Clear interface counters for a given PPPoE interface + + sudo ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf_name "$4" + + + + + + Clear Pseudo-Ethernet/MACvlan interface information + + + + + Clear all Pseudo-Ethernet interface counters + + sudo ${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 + + sudo ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf_name "$4" + + + + + + Clear SSTP interface information + + + + + Clear all SSTP interface counters + + sudo ${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 + + sudo ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf_name "$4" + + + + + + Clear Tunnel interface information + + + + + Clear all tunnel interface counters + + sudo ${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 + + sudo ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf_name "$4" + + + + + + Clear virtual-ethernet interface information + + + + + Clear all virtual-ethernet interface counters + + sudo ${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 + + sudo ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf_name "$4" + + + + + + Clear VTI interface information + + + + + Clear all VTI interface counters + + sudo ${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 + + sudo ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf_name "$4" + + + + + + Clear VXLAN interface information + + + + + Clear all VXLAN interface counters + + sudo ${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 + + sudo ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf_name "$4" + + + + + + Clear Wireguard interface information + + + + + Clear all Wireguard interface counters + + sudo ${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 + + sudo ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf_name "$4" + + + + + + Clear Wireless (WLAN) interface information + + + + + Clear all wireless interface counters + + sudo ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf_type "$3" + + + + + + Clear interface information for a given wireless interface + + + + + + + + Clear counters for a given wireless interface + + sudo ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf_name "$4" + + + + + + Clear Wireless Modem (WWAN) interface information + + + + + Clear all WWAN interface counters + + sudo ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf_type "$3" + + + + + + Clear interface information for a given WWAN interface + + + + + + + + Clear counters for a given WWAN interface + + sudo ${vyos_op_scripts_dir}/interfaces.py clear_counters --intf_name "$4" + + + + + + + + + -- cgit v1.2.3