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-ethernet.xml.in | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'op-mode-definitions/show-interfaces-ethernet.xml.in') 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 -- cgit v1.2.3