From 72a704d2e2b06bfedc4f1ee841814f983fc34baa Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Sun, 30 Jun 2024 07:35:25 +0200 Subject: T6527: add legacy Vyatta interpreter files still in use --- op-mode-definitions/clear-interfaces.xml.in | 614 ++++++++++++++++++++++++++++ op-mode-definitions/configure.xml.in | 6 +- op-mode-definitions/connect.xml.in | 2 +- op-mode-definitions/counters.xml.in | 598 --------------------------- op-mode-definitions/disconnect.xml.in | 2 +- 5 files changed, 619 insertions(+), 603 deletions(-) create mode 100644 op-mode-definitions/clear-interfaces.xml.in delete mode 100644 op-mode-definitions/counters.xml.in (limited to 'op-mode-definitions') diff --git a/op-mode-definitions/clear-interfaces.xml.in b/op-mode-definitions/clear-interfaces.xml.in new file mode 100644 index 000000000..de2c3443e --- /dev/null +++ b/op-mode-definitions/clear-interfaces.xml.in @@ -0,0 +1,614 @@ + + + + + Clear system information + + + + + Clear interface information + + + + + Clear interface counters for all interfaces + + sudo ${vyos_op_scripts_dir}/interfaces.py clear_counters + + + + Bring connection-oriented network interface down and up + + interfaces pppoe + interfaces sstpc + interfaces wwan + + + sudo ${vyos_op_scripts_dir}/connect_disconnect.py --connect --disconnect --interface "$3" + + + + 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" + + + + + + + + diff --git a/op-mode-definitions/configure.xml.in b/op-mode-definitions/configure.xml.in index a711fa4a9..d7657289b 100644 --- a/op-mode-definitions/configure.xml.in +++ b/op-mode-definitions/configure.xml.in @@ -11,11 +11,11 @@ echo "Please do it as an administrator level VyOS user instead." else if grep -q -e '^overlay.*/filesystem.squashfs' /proc/mounts; then - echo "WARNING: You are currently configuring a live-ISO environment, changes will not persist until installed" + echo "WARNING: You are currently configuring a live-ISO environment, changes will not persist until installed" else if grep -q -s '1' /tmp/vyos-config-status; then - echo "WARNING: There was a config error on boot: saving the configuration now could overwrite data." - echo "You may want to check and reload the boot config" + echo "WARNING: There was a config error on boot: saving the configuration now could overwrite data." + echo "You may want to check and reload the boot config" fi fi history -w diff --git a/op-mode-definitions/connect.xml.in b/op-mode-definitions/connect.xml.in index 116cd6231..9027056a6 100644 --- a/op-mode-definitions/connect.xml.in +++ b/op-mode-definitions/connect.xml.in @@ -24,7 +24,7 @@ interfaces wwan - sudo ${vyos_op_scripts_dir}/connect_disconnect.py --connect "$3" + sudo ${vyos_op_scripts_dir}/connect_disconnect.py --connect --interface "$3" diff --git a/op-mode-definitions/counters.xml.in b/op-mode-definitions/counters.xml.in deleted file mode 100644 index f563cb9a0..000000000 --- a/op-mode-definitions/counters.xml.in +++ /dev/null @@ -1,598 +0,0 @@ - - - - - - - - - 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" - - - - - - - - - diff --git a/op-mode-definitions/disconnect.xml.in b/op-mode-definitions/disconnect.xml.in index 843998c4f..f0523d9b9 100644 --- a/op-mode-definitions/disconnect.xml.in +++ b/op-mode-definitions/disconnect.xml.in @@ -14,7 +14,7 @@ interfaces wwan - sudo ${vyos_op_scripts_dir}/connect_disconnect.py --disconnect "$3" + sudo ${vyos_op_scripts_dir}/connect_disconnect.py --disconnect --interface "$3" -- cgit v1.2.3