From 0cdd2740f300a8b4ebfde931feb82610bcfd7f78 Mon Sep 17 00:00:00 2001 From: Sander Klein Date: Wed, 11 Jan 2023 20:01:17 +0100 Subject: Backport: T4918: op_mode interfaces: Fix show int `show interfaces ethernet eth0` and `show interface bonding eth0` produces the same output. While this is not a big problem it does make usage a bit odd sometimes. This commit adds the --intf_type option to all instances of interfaces.py to make output consistent. --- op-mode-definitions/show-interfaces-bonding.xml.in | 8 ++++---- op-mode-definitions/show-interfaces-bridge.xml.in | 4 ++-- op-mode-definitions/show-interfaces-dummy.xml.in | 4 ++-- op-mode-definitions/show-interfaces-ethernet.xml.in | 8 ++++---- op-mode-definitions/show-interfaces-geneve.xml.in | 4 ++-- op-mode-definitions/show-interfaces-input.xml.in | 4 ++-- op-mode-definitions/show-interfaces-l2tpv3.xml.in | 4 ++-- op-mode-definitions/show-interfaces-loopback.xml.in | 4 ++-- op-mode-definitions/show-interfaces-pppoe.xml.in | 2 +- op-mode-definitions/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 | 4 ++-- op-mode-definitions/show-interfaces-wireguard.xml.in | 2 +- op-mode-definitions/show-interfaces-wireless.xml.in | 8 ++++---- op-mode-definitions/show-interfaces-wwan.xml.in | 2 +- 16 files changed, 35 insertions(+), 35 deletions(-) (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 d4e737d5b..c3cf91992 100644 --- a/op-mode-definitions/show-interfaces-bonding.xml.in +++ b/op-mode-definitions/show-interfaces-bonding.xml.in @@ -11,13 +11,13 @@ interfaces bonding - ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" + ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" --intf-type=bonding Show summary of the specified bonding interface information - ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" --action=show-brief + ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" --action=show-brief --intf-type=bonding @@ -32,13 +32,13 @@ interfaces bonding ${COMP_WORDS[3]} vif - ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4.$6" + ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4.$6" --intf-type=bonding Show summary of specified virtual network interface (vif) information - ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4.$6" --action=show-brief + ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4.$6" --action=show-brief --intf-type=bonding diff --git a/op-mode-definitions/show-interfaces-bridge.xml.in b/op-mode-definitions/show-interfaces-bridge.xml.in index d4908b341..67b7c3125 100644 --- a/op-mode-definitions/show-interfaces-bridge.xml.in +++ b/op-mode-definitions/show-interfaces-bridge.xml.in @@ -11,13 +11,13 @@ interfaces bridge - ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" + ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" --intf-type=bridge Show summary of the specified bridge interface information - ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" --action=show-brief + ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" --action=show-brief --intf-type=bridge diff --git a/op-mode-definitions/show-interfaces-dummy.xml.in b/op-mode-definitions/show-interfaces-dummy.xml.in index 52d2cc7ee..eb8e4bf80 100644 --- a/op-mode-definitions/show-interfaces-dummy.xml.in +++ b/op-mode-definitions/show-interfaces-dummy.xml.in @@ -11,13 +11,13 @@ interfaces dummy - ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" + ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" --intf-type=dummy Show summary of the specified dummy interface information - ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" --action=show-brief + ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" --action=show-brief --intf-type=dummy diff --git a/op-mode-definitions/show-interfaces-ethernet.xml.in b/op-mode-definitions/show-interfaces-ethernet.xml.in index e414291d1..c1461939c 100644 --- a/op-mode-definitions/show-interfaces-ethernet.xml.in +++ b/op-mode-definitions/show-interfaces-ethernet.xml.in @@ -11,13 +11,13 @@ interfaces ethernet - ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" + ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" --intf-type=ethernet Show summary of the specified ethernet interface information - ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" --action=show-brief + ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" --action=show-brief --intf-type=ethernet @@ -58,13 +58,13 @@ interfaces ethernet ${COMP_WORDS[3]} vif - ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4.$6" + ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4.$6" --intf-type=ethernet Show summary of specified virtual network interface (vif) information - ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4.$6" --action=show-brief + ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4.$6" --action=show-brief --intf-type=ethernet diff --git a/op-mode-definitions/show-interfaces-geneve.xml.in b/op-mode-definitions/show-interfaces-geneve.xml.in index a47933315..5cb6f6dbf 100644 --- a/op-mode-definitions/show-interfaces-geneve.xml.in +++ b/op-mode-definitions/show-interfaces-geneve.xml.in @@ -11,13 +11,13 @@ interfaces geneve - ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" + ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" --intf-type=geneve Show summary of the specified GENEVE interface information - ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" --action=show-brief + ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" --action=show-brief --intf-type=geneve diff --git a/op-mode-definitions/show-interfaces-input.xml.in b/op-mode-definitions/show-interfaces-input.xml.in index 9ae3828c8..0753195e5 100644 --- a/op-mode-definitions/show-interfaces-input.xml.in +++ b/op-mode-definitions/show-interfaces-input.xml.in @@ -11,13 +11,13 @@ interfaces input - ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" + ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" --intf-type=input Show summary of the specified input interface information - ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" --action=show-brief + ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" --action=show-brief --intf-type=input diff --git a/op-mode-definitions/show-interfaces-l2tpv3.xml.in b/op-mode-definitions/show-interfaces-l2tpv3.xml.in index 2a1d6a1c6..f8483a368 100644 --- a/op-mode-definitions/show-interfaces-l2tpv3.xml.in +++ b/op-mode-definitions/show-interfaces-l2tpv3.xml.in @@ -11,13 +11,13 @@ interfaces l2tpv3 - ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" + ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" --intf-type=l2tpv3 Show summary of the specified L2TPv3 interface information - ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" --action=show-brief + ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" --action=show-brief --intf-type=l2tpv3 diff --git a/op-mode-definitions/show-interfaces-loopback.xml.in b/op-mode-definitions/show-interfaces-loopback.xml.in index 25a75ffff..eb86d5ece 100644 --- a/op-mode-definitions/show-interfaces-loopback.xml.in +++ b/op-mode-definitions/show-interfaces-loopback.xml.in @@ -11,13 +11,13 @@ interfaces loopback - ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" + ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" --intf-type=loopback Show summary of the specified dummy interface information - ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" --action=show-brief + ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" --action=show-brief --intf-type=dummy diff --git a/op-mode-definitions/show-interfaces-pppoe.xml.in b/op-mode-definitions/show-interfaces-pppoe.xml.in index 767836abf..3840cbdca 100644 --- a/op-mode-definitions/show-interfaces-pppoe.xml.in +++ b/op-mode-definitions/show-interfaces-pppoe.xml.in @@ -11,7 +11,7 @@ interfaces pppoe - ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" + ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" --intf-type=pppoe diff --git a/op-mode-definitions/show-interfaces-pseudo-ethernet.xml.in b/op-mode-definitions/show-interfaces-pseudo-ethernet.xml.in index 2ae4b5a9e..add6e67fd 100644 --- a/op-mode-definitions/show-interfaces-pseudo-ethernet.xml.in +++ b/op-mode-definitions/show-interfaces-pseudo-ethernet.xml.in @@ -11,13 +11,13 @@ interfaces pseudo-ethernet - ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" + ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" --intf-type=pseudo-ethernet Show summary of the specified pseudo-ethernet/MACvlan interface information - ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" --action=show-brief + ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" --action=show-brief --intf-type=pseudo-ethernet diff --git a/op-mode-definitions/show-interfaces-tunnel.xml.in b/op-mode-definitions/show-interfaces-tunnel.xml.in index 51b25efd9..b3c1318e9 100644 --- a/op-mode-definitions/show-interfaces-tunnel.xml.in +++ b/op-mode-definitions/show-interfaces-tunnel.xml.in @@ -11,13 +11,13 @@ interfaces tunnel - ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" + ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" --intf-type=tunnel Show summary of the specified tunnel interface information - ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" --action=show-brief + ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" --action=show-brief --intf-type=tunnel diff --git a/op-mode-definitions/show-interfaces-vti.xml.in b/op-mode-definitions/show-interfaces-vti.xml.in index b436b8414..4d193ef59 100644 --- a/op-mode-definitions/show-interfaces-vti.xml.in +++ b/op-mode-definitions/show-interfaces-vti.xml.in @@ -11,13 +11,13 @@ interfaces vti - ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" + ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" --intf-type=vti Show summary of the specified vti interface information - ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" --action=show-brief + ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" --action=show-brief --intf-type=vti diff --git a/op-mode-definitions/show-interfaces-vxlan.xml.in b/op-mode-definitions/show-interfaces-vxlan.xml.in index 1befd428c..6600a312b 100644 --- a/op-mode-definitions/show-interfaces-vxlan.xml.in +++ b/op-mode-definitions/show-interfaces-vxlan.xml.in @@ -11,13 +11,13 @@ interfaces vxlan - ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" + ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" --intf-type=vxlan Show summary of the specified VXLAN interface information - ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" --action=show-brief + ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" --action=show-brief --intf-type=vxlan diff --git a/op-mode-definitions/show-interfaces-wireguard.xml.in b/op-mode-definitions/show-interfaces-wireguard.xml.in index c9b754dcd..c6ca71ab7 100644 --- a/op-mode-definitions/show-interfaces-wireguard.xml.in +++ b/op-mode-definitions/show-interfaces-wireguard.xml.in @@ -11,7 +11,7 @@ - ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" + ${vyos_op_scripts_dir}/show_interfaces.py --intf="$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 4a37417aa..9a63f1629 100644 --- a/op-mode-definitions/show-interfaces-wireless.xml.in +++ b/op-mode-definitions/show-interfaces-wireless.xml.in @@ -31,13 +31,13 @@ - ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" + ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" --intf-type=wireless Show summary of the specified wireless interface information - ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" --action=show-brief + ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" --action=show-brief --intf-type=wireless @@ -63,13 +63,13 @@ Show specified virtual network interface (vif) information - ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4.$6" + ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4.$6" --intf-type=wireless Show summary of specified virtual network interface (vif) information - ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4.$6" --action=show-brief + ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4.$6" --action=show-brief --intf-type=wireless diff --git a/op-mode-definitions/show-interfaces-wwan.xml.in b/op-mode-definitions/show-interfaces-wwan.xml.in index 3cd29b38a..013668f68 100644 --- a/op-mode-definitions/show-interfaces-wwan.xml.in +++ b/op-mode-definitions/show-interfaces-wwan.xml.in @@ -12,7 +12,7 @@ - ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" + ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" --intf-type=wirelessmodem -- cgit v1.2.3