From 41b3ecca0eb1676467fea343ff4490ab02d77cb3 Mon Sep 17 00:00:00 2001 From: Sander Klein Date: Sat, 7 Jan 2023 22:32:37 +0100 Subject: T4918: op_mode interfaces: Fix show interfaces `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-sstpc.xml.in | 2 +- op-mode-definitions/show-interfaces-tunnel.xml.in | 4 ++-- op-mode-definitions/show-interfaces-virtual-ethernet.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 +- 18 files changed, 38 insertions(+), 38 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 6908153dd..c41e7bd5f 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}/interfaces.py show --intf_name="$4" + ${vyos_op_scripts_dir}/interfaces.py show --intf_name="$4" --intf_type=bonding Show summary of the specified bonding interface information - ${vyos_op_scripts_dir}/interfaces.py show_summary --intf_name="$4" + ${vyos_op_scripts_dir}/interfaces.py show_summary --intf_name="$4" --intf_type=bonding @@ -38,13 +38,13 @@ interfaces bonding ${COMP_WORDS[3]} vif - ${vyos_op_scripts_dir}/interfaces.py show --intf_name="$4.$6" + ${vyos_op_scripts_dir}/interfaces.py show --intf_name="$4.$6" --intf_type=bonding Show summary of specified virtual network interface (vif) information - ${vyos_op_scripts_dir}/interfaces.py show_summary --intf_name="$4.$6" + ${vyos_op_scripts_dir}/interfaces.py show_summary --intf_name="$4.$6" --intf_type=bonding diff --git a/op-mode-definitions/show-interfaces-bridge.xml.in b/op-mode-definitions/show-interfaces-bridge.xml.in index b950c3a17..22cd3ee67 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}/interfaces.py show --intf_name="$4" + ${vyos_op_scripts_dir}/interfaces.py show --intf_name="$4" --intf_type=bridge Show summary of the specified bridge interface information - ${vyos_op_scripts_dir}/interfaces.py show_summary --intf_name="$4" + ${vyos_op_scripts_dir}/interfaces.py show_summary --intf_name="$4" --intf_type=bridge diff --git a/op-mode-definitions/show-interfaces-dummy.xml.in b/op-mode-definitions/show-interfaces-dummy.xml.in index 398e00636..958d3483d 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}/interfaces.py show --intf_name="$4" + ${vyos_op_scripts_dir}/interfaces.py show --intf_name="$4" --intf_type=dummy Show summary of the specified dummy interface information - ${vyos_op_scripts_dir}/interfaces.py show_summary --intf_name="$4" + ${vyos_op_scripts_dir}/interfaces.py show_summary --intf_name="$4" --intf_type=dummy diff --git a/op-mode-definitions/show-interfaces-ethernet.xml.in b/op-mode-definitions/show-interfaces-ethernet.xml.in index 40d4adbb2..81759c2b6 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}/interfaces.py show --intf_name="$4" + ${vyos_op_scripts_dir}/interfaces.py show --intf_name="$4" --intf_type=ethernet Show summary of the specified ethernet interface information - ${vyos_op_scripts_dir}/interfaces.py show_summary --intf_name="$4" + ${vyos_op_scripts_dir}/interfaces.py show_summary --intf_name="$4" --intf_type=ethernet @@ -58,13 +58,13 @@ interfaces ethernet ${COMP_WORDS[3]} vif - ${vyos_op_scripts_dir}/interfaces.py show --intf_name="$4.$6" + ${vyos_op_scripts_dir}/interfaces.py show --intf_name="$4.$6" --intf_type=ethernet Show summary of specified virtual network interface (vif) information - ${vyos_op_scripts_dir}/interfaces.py show_summary --intf_name="$4.$6" + ${vyos_op_scripts_dir}/interfaces.py show_summary --intf_name="$4.$6" --intf_type=ethernet diff --git a/op-mode-definitions/show-interfaces-geneve.xml.in b/op-mode-definitions/show-interfaces-geneve.xml.in index be3084af3..3cf45878d 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}/interfaces.py show --intf_name="$4" + ${vyos_op_scripts_dir}/interfaces.py show --intf_name="$4" --intf_type=geneve Show summary of the specified GENEVE interface information - ${vyos_op_scripts_dir}/interfaces.py show_summary --intf_name="$4" + ${vyos_op_scripts_dir}/interfaces.py show_summary --intf_name="$4" --intf_type=geneve diff --git a/op-mode-definitions/show-interfaces-input.xml.in b/op-mode-definitions/show-interfaces-input.xml.in index 1f8505160..5d93dcee6 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}/interfaces.py show --intf_name="$4" + ${vyos_op_scripts_dir}/interfaces.py show --intf_name="$4" --intf_type=input Show summary of the specified input interface information - ${vyos_op_scripts_dir}/interfaces.py show_summary --intf_name="$4" + ${vyos_op_scripts_dir}/interfaces.py show_summary --intf_name="$4" --intf_type=input diff --git a/op-mode-definitions/show-interfaces-l2tpv3.xml.in b/op-mode-definitions/show-interfaces-l2tpv3.xml.in index ff08b8266..713e36dac 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}/interfaces.py show --intf_name="$4" + ${vyos_op_scripts_dir}/interfaces.py show --intf_name="$4" --intf_type=l2tpv3 Show summary of the specified L2TPv3 interface information - ${vyos_op_scripts_dir}/interfaces.py show_summary --intf_name="$4" + ${vyos_op_scripts_dir}/interfaces.py show_summary --intf_name="$4" --intf_type=l2tpv3 diff --git a/op-mode-definitions/show-interfaces-loopback.xml.in b/op-mode-definitions/show-interfaces-loopback.xml.in index 9919bf32b..a24151cc3 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}/interfaces.py show --intf_name="$4" + ${vyos_op_scripts_dir}/interfaces.py show --intf_name="$4" --intf_type=loopback Show summary of the specified Loopback interface information - ${vyos_op_scripts_dir}/interfaces.py show_summary --intf_name="$4" + ${vyos_op_scripts_dir}/interfaces.py show_summary --intf_name="$4" --intf_type=loopback diff --git a/op-mode-definitions/show-interfaces-pppoe.xml.in b/op-mode-definitions/show-interfaces-pppoe.xml.in index 80bfd00ff..a34473148 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}/interfaces.py show --intf_name="$4" + ${vyos_op_scripts_dir}/interfaces.py show --intf_name="$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 0c00dbdd0..cb62639ee 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}/interfaces.py show --intf_name="$4" + ${vyos_op_scripts_dir}/interfaces.py show --intf_name="$4" --intf_type=pseudo-ethernet Show summary of the specified pseudo-ethernet/MACvlan interface information - ${vyos_op_scripts_dir}/interfaces.py show_summary --intf_name="$4" + ${vyos_op_scripts_dir}/interfaces.py show_summary --intf_name="$4" --intf_type=pseudo-ethernet diff --git a/op-mode-definitions/show-interfaces-sstpc.xml.in b/op-mode-definitions/show-interfaces-sstpc.xml.in index c473f9822..a619a9fd2 100644 --- a/op-mode-definitions/show-interfaces-sstpc.xml.in +++ b/op-mode-definitions/show-interfaces-sstpc.xml.in @@ -11,7 +11,7 @@ interfaces sstpc - ${vyos_op_scripts_dir}/interfaces.py show --intf_name="$4" + ${vyos_op_scripts_dir}/interfaces.py show --intf_name="$4" --intf_type=sstpc diff --git a/op-mode-definitions/show-interfaces-tunnel.xml.in b/op-mode-definitions/show-interfaces-tunnel.xml.in index 4af90b813..10e10e655 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}/interfaces.py show --intf_name="$4" + ${vyos_op_scripts_dir}/interfaces.py show --intf_name="$4" --intf_type=tunnel Show summary of the specified tunnel interface information - ${vyos_op_scripts_dir}/interfaces.py show_summary --intf_name="$4" + ${vyos_op_scripts_dir}/interfaces.py show_summary --intf_name="$4" --intf_type=tunnel diff --git a/op-mode-definitions/show-interfaces-virtual-ethernet.xml.in b/op-mode-definitions/show-interfaces-virtual-ethernet.xml.in index 2aa71c687..c743492fb 100644 --- a/op-mode-definitions/show-interfaces-virtual-ethernet.xml.in +++ b/op-mode-definitions/show-interfaces-virtual-ethernet.xml.in @@ -11,13 +11,13 @@ interfaces virtual-ethernet - ${vyos_op_scripts_dir}/interfaces.py show --intf_name="$4" + ${vyos_op_scripts_dir}/interfaces.py show --intf_name="$4" --intf_type=virtual-ethernet Show summary of the specified virtual-ethernet interface information - ${vyos_op_scripts_dir}/interfaces.py show_summary --intf_name="$4" + ${vyos_op_scripts_dir}/interfaces.py show_summary --intf_name="$4" --intf_type=virtual-ethernet diff --git a/op-mode-definitions/show-interfaces-vti.xml.in b/op-mode-definitions/show-interfaces-vti.xml.in index 195e1d5da..d532894b7 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}/interfaces.py show --intf_name="$4" + ${vyos_op_scripts_dir}/interfaces.py show --intf_name="$4" --intf_type=vti Show summary of the specified vti interface information - ${vyos_op_scripts_dir}/interfaces.py show_summary --intf_name="$4" + ${vyos_op_scripts_dir}/interfaces.py show_summary --intf_name="$4" --intf_type=vti diff --git a/op-mode-definitions/show-interfaces-vxlan.xml.in b/op-mode-definitions/show-interfaces-vxlan.xml.in index a1d01a6af..fde832551 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}/interfaces.py show --intf_name="$4" + ${vyos_op_scripts_dir}/interfaces.py show --intf_name="$4" --intf_type=vxlan Show summary of the specified VXLAN interface information - ${vyos_op_scripts_dir}/interfaces.py show_summary --intf_name="$4" + ${vyos_op_scripts_dir}/interfaces.py show_summary --intf_name="$4" --intf_type=vxlan diff --git a/op-mode-definitions/show-interfaces-wireguard.xml.in b/op-mode-definitions/show-interfaces-wireguard.xml.in index 55879cfff..eba8de568 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}/interfaces.py show --intf_name="$4" + ${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 7ae2c8ce4..b0a272225 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}/interfaces.py show --intf_name="$4" + ${vyos_op_scripts_dir}/interfaces.py show --intf_name="$4" --intf_type=wireless Show summary of the specified wireless interface information - ${vyos_op_scripts_dir}/interfaces.py show_summary --intf_name="$4" + ${vyos_op_scripts_dir}/interfaces.py show_summary --intf_name="$4" --intf_type=wireless @@ -63,13 +63,13 @@ Show specified virtual network interface (vif) information - ${vyos_op_scripts_dir}/interfaces.py show --intf_name="$4.$6" + ${vyos_op_scripts_dir}/interfaces.py show --intf_name="$4.$6" --intf_type=wireless Show summary of specified virtual network interface (vif) information - ${vyos_op_scripts_dir}/interfaces.py show_summary --intf_name="$4.$6" + ${vyos_op_scripts_dir}/interfaces.py show_summary --intf_name="$4.$6" --intf_type=wireless diff --git a/op-mode-definitions/show-interfaces-wwan.xml.in b/op-mode-definitions/show-interfaces-wwan.xml.in index 8ac5933a2..17d4111a9 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}/interfaces.py show --intf_name="$4" + ${vyos_op_scripts_dir}/interfaces.py show --intf_name="$4" --intf_type=wirelessmodem -- cgit v1.2.3