summaryrefslogtreecommitdiff
path: root/op-mode-definitions/show-interfaces-ethernet.xml.in
diff options
context:
space:
mode:
authorSander Klein <github@roedie.nl>2023-01-11 20:01:17 +0100
committerSander Klein <github@roedie.nl>2023-01-11 20:01:17 +0100
commit0cdd2740f300a8b4ebfde931feb82610bcfd7f78 (patch)
tree2af9ea1cec296aef4e250523704146b44e41a239 /op-mode-definitions/show-interfaces-ethernet.xml.in
parentde1fa852c38b8eff22cf0c1a34abd13379c0705c (diff)
downloadvyos-1x-0cdd2740f300a8b4ebfde931feb82610bcfd7f78.tar.gz
vyos-1x-0cdd2740f300a8b4ebfde931feb82610bcfd7f78.zip
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.
Diffstat (limited to 'op-mode-definitions/show-interfaces-ethernet.xml.in')
-rw-r--r--op-mode-definitions/show-interfaces-ethernet.xml.in8
1 files changed, 4 insertions, 4 deletions
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 @@
<path>interfaces ethernet</path>
</completionHelp>
</properties>
- <command>${vyos_op_scripts_dir}/show_interfaces.py --intf="$4"</command>
+ <command>${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" --intf-type=ethernet</command>
<children>
<leafNode name="brief">
<properties>
<help>Show summary of the specified ethernet interface information</help>
</properties>
- <command>${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" --action=show-brief</command>
+ <command>${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" --action=show-brief --intf-type=ethernet</command>
</leafNode>
<leafNode name="identify">
<properties>
@@ -58,13 +58,13 @@
<path>interfaces ethernet ${COMP_WORDS[3]} vif</path>
</completionHelp>
</properties>
- <command>${vyos_op_scripts_dir}/show_interfaces.py --intf="$4.$6"</command>
+ <command>${vyos_op_scripts_dir}/show_interfaces.py --intf="$4.$6" --intf-type=ethernet</command>
<children>
<leafNode name="brief">
<properties>
<help>Show summary of specified virtual network interface (vif) information</help>
</properties>
- <command>${vyos_op_scripts_dir}/show_interfaces.py --intf="$4.$6" --action=show-brief</command>
+ <command>${vyos_op_scripts_dir}/show_interfaces.py --intf="$4.$6" --action=show-brief --intf-type=ethernet</command>
</leafNode>
</children>
</tagNode>