From 36adc975316b8511c53c813b7542196e3d2779a8 Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Mon, 23 Jan 2023 17:45:20 +0100 Subject: op-mode: T4952: improve interface completion helper CLI experience There are currently two ways to generate the interface name completion helper list (we use openvpn in this example) - - interfaces openvpn The first one using + interfaces openvpn diff --git a/op-mode-definitions/generate-wireguard.xml.in b/op-mode-definitions/generate-wireguard.xml.in index 0ef983cd2..6c01619be 100644 --- a/op-mode-definitions/generate-wireguard.xml.in +++ b/op-mode-definitions/generate-wireguard.xml.in @@ -19,7 +19,7 @@ Local interface used for connection - + interfaces wireguard diff --git a/op-mode-definitions/ipv6-route.xml.in b/op-mode-definitions/ipv6-route.xml.in index d75caf308..46e416a8a 100644 --- a/op-mode-definitions/ipv6-route.xml.in +++ b/op-mode-definitions/ipv6-route.xml.in @@ -26,7 +26,7 @@ Show IPv6 neighbor table for specified interface - + ${vyos_op_scripts_dir}/neighbor.py show --family inet6 --interface "$5" diff --git a/op-mode-definitions/openvpn.xml.in b/op-mode-definitions/openvpn.xml.in index b2763da81..0a2657398 100644 --- a/op-mode-definitions/openvpn.xml.in +++ b/op-mode-definitions/openvpn.xml.in @@ -20,7 +20,7 @@ Reset OpenVPN process on interface - + interfaces openvpn sudo ${vyos_op_scripts_dir}/openvpn.py reset --interface $4 @@ -51,7 +51,7 @@ Show OpenVPN interface information - + interfaces openvpn ${vyos_op_scripts_dir}/interfaces.py show --intf_name=$4 diff --git a/op-mode-definitions/show-arp.xml.in b/op-mode-definitions/show-arp.xml.in index 8662549fc..3680c20c6 100644 --- a/op-mode-definitions/show-arp.xml.in +++ b/op-mode-definitions/show-arp.xml.in @@ -12,7 +12,7 @@ Show Address Resolution Protocol (ARP) cache for specified interface - + ${vyos_op_scripts_dir}/neighbor.py show --family inet --interface "$4" diff --git a/op-mode-definitions/show-bridge.xml.in b/op-mode-definitions/show-bridge.xml.in index dd2a28931..e7a646fdc 100644 --- a/op-mode-definitions/show-bridge.xml.in +++ b/op-mode-definitions/show-bridge.xml.in @@ -25,7 +25,7 @@ Show bridge information for a given bridge interface - + interfaces bridge bridge -c link show | grep "master $3" diff --git a/op-mode-definitions/show-interfaces-wireguard.xml.in b/op-mode-definitions/show-interfaces-wireguard.xml.in index eba8de568..75b0cc88e 100644 --- a/op-mode-definitions/show-interfaces-wireguard.xml.in +++ b/op-mode-definitions/show-interfaces-wireguard.xml.in @@ -8,7 +8,7 @@ Show specified WireGuard interface information - + interfaces wireguard ${vyos_op_scripts_dir}/interfaces.py show --intf_name="$4" --intf_type=wireguard diff --git a/op-mode-definitions/show-interfaces-wireless.xml.in b/op-mode-definitions/show-interfaces-wireless.xml.in index b0a272225..cdd591f82 100644 --- a/op-mode-definitions/show-interfaces-wireless.xml.in +++ b/op-mode-definitions/show-interfaces-wireless.xml.in @@ -28,7 +28,7 @@ Show specified wireless interface information - + interfaces wireless ${vyos_op_scripts_dir}/interfaces.py show --intf_name="$4" --intf_type=wireless diff --git a/op-mode-definitions/show-ip.xml.in b/op-mode-definitions/show-ip.xml.in index 0751c50cb..a710e33d2 100644 --- a/op-mode-definitions/show-ip.xml.in +++ b/op-mode-definitions/show-ip.xml.in @@ -17,7 +17,7 @@ Show IPv4 neighbor table for specified interface - + ${vyos_op_scripts_dir}/neighbor.py show --family inet --interface "$5" diff --git a/op-mode-definitions/show-protocols.xml.in b/op-mode-definitions/show-protocols.xml.in index 698001b76..27146f90d 100644 --- a/op-mode-definitions/show-protocols.xml.in +++ b/op-mode-definitions/show-protocols.xml.in @@ -22,7 +22,7 @@ Show Address Resolution Protocol (ARP) cache for specified interface - + /usr/sbin/arp -e -n -i "$6" diff --git a/op-mode-definitions/wireless.xml.in b/op-mode-definitions/wireless.xml.in index 5d9db1544..f8e53ad21 100644 --- a/op-mode-definitions/wireless.xml.in +++ b/op-mode-definitions/wireless.xml.in @@ -21,7 +21,7 @@ Clear interface information for a given wireless interface - + interfaces wireless -- cgit v1.2.3